Wondering if anyone has tried reversing a vsix install.

I have a custom action that runs on install, and the uninstall version which 
runs on uninstall.  The install works perfectly, but the uninstall fails for 
apparently no reason.

<CustomAction Id="InstallTemplates"
         Directory="VerDir"
         Execute="commit"
         Impersonate="yes"
         ExeCommand='"[...snip...]vsixinstaller.exe" 
"[INSTALLDIR]\DerpTemplates.vsix" /q'/>
<CustomAction Id="UninstallTemplates"
         Directory="VerDir"
         Execute="commit"
         Impersonate="yes"
         ExeCommand='"[...snip...]vsixinstaller.exe" 
/u:DerpTemplates.aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'/>

<InstallExecuteSequence>
         <Custom Action="InstallTemplates"
                          Before="InstallFinalize">
                 <![CDATA[NOT Installed]]>
         </Custom>
         <Custom Action="UninstallTemplates"
                          Before="InstallFinalize">
                 <![CDATA[Installed AND NOT UPGRADINGPRODUCTCODE]]>
         </Custom>
</InstallExecuteSequence>

(they've been shortened down a bit of course).


The weird this is that although the uninstall fails, I have confirmed that the 
command is 100% correct.  I ran the uninstall while logging.  In the log, I 
copied out the command that the custom action reported it was going to execute. 
 I then pasted that into a command shell and ran it.  It worked without any 
issue.

I tried to turn off error checking in the custom action by adding 
'Return="ignore"' but, while the uninstall didn't fail, the custom action still 
didn't uninstall my templates.

Has anyone experience in this?  Why would my custom action fail in the 
installer, however succeed when the command is executed outside of the MSI?

TIA.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to