How to access session custom action data (properties) during install and uninstall in Wix? -
Can you please tell me what is wrong with the following code? I am able to access custom action data during installs and I add my value custom action collection session. However, during the uninstallation, I added the price pairs to the collection.
Public category custom action {// This action is only called app install [custom action] during the public stable operation. CreateToolbar CreateToolbar (session session) {// This works fine; wix scripts are sent appropriately from // / Expected Value string toolbar name = session ["VSTOCustomAction_ToolbarName"]; // Save the value for the Uninstaller session. CustomActionData.Add ("VSTOCustomAction_ToolbarName", Toolbar name); ...} // This action is only called during the application uninstall [custom action] Public Static Action Routal DotToolbar (session session) {// Get the toolbar name and remove it // Why does the following call return empty? String toolbarname = session. Custom section data ["VSTOCustomAction_ToolbarName"]; ...}} is the WIX part below which calls the above custom action. - Include VSTO custom actions - & gt; & Lt; Binary ID = "VSTOCustomAction" sourcefile = "CustomAction.CA.dll" /> & Lt; Custom Action ID = "CreateToolbar" BinaryKey = "VSTOCustomAction" DllEntry = "CreateToolbar" Execute = "Instant" /> & lt; Custom Action ID = "RemoveToolbar" BinaryKey = "VSTOCustomAction" DllEntry = "RemoveToolbar" Execute = "Instant" /> ... & lt; Custom Action ID = "PropertyAssignin.org name" property = "VSTOCustomAction_ToolbarName" value = "muteuburnname" /> ... & lt ;! - Modify the install sequence to call our custom action - & gt; & Lt; InstallExecuteSequence & gt; & Lt; Custom Action = "PropertyAssignLoginName" = Before "CreateToolbar" & gt; & Lt ;! [CDATA [(& ToolbarComponent = 3) No more! (ToolbarComponent = 3)]] & gt; & Lt; / Custom & gt; & Lt; Custom action = "CreateToolbar" = "InstallFinalize" followed by & gt; & Lt ;! [CDATA [(& ToolbarComponent = 3) and No (! ToolbarComponent = 3)]] & gt; & Lt; / Custom & gt; & Lt; Custom Action = "RemoveToolbar" = "InstallFinalize" & gt; & Lt ;! [CDATA [(& ToolbarComponent = 2) and No (! ToolbarComponent = 2)]] & gt; & Lt; / Custom & gt; & Lt; / InstallExecuteSequence & gt;
Following the installation of MSI does not continue to have a good solution for the following Read.
"Property of YX ToolsSet" property "pattern."
Comments
Post a Comment