[wix-devs] Uninstalling components while invoking uninstall via Bootstrapper

ed209a at att.net ed209a at att.net
Tue Oct 6 12:37:26 PDT 2015


Sorry.  The format for the code wasn't very clear.  Reposting the code again
<Binary Id="CMDEXE" SourceFile ="C:\WINDOWS\SYSTEM32\cmd.exe" /> 

<CustomAction Id="ChangeDirectory" Directory="INSTALLLOCATION"                                                              Value="c:\windows\system32\"/> <CustomAction Id="echo_test"  BinaryKey="CMDEXE"                                                               ExeCommand= "/c c:\windows\system32\msiexec /X{9BE518E6-ECC6-35A9-88E4-87755C07200F}"                                                    Execute="immediate" Return="check"/> 
<InstallExecuteSequence>       <Custom Action="ChangeDirectory" After ="InstallFinalize"/>        REMOVE~="ALL"  </Custom> </InstallExecuteSequence>        
 


     On Tuesday, October 6, 2015 12:31 PM, "ed209a at att.net" <ed209a at att.net> wrote:
   

   Hello, I have a question regarding uninstalling components during an application uninstall.  My bootstrapper is tied to a setup.msi. When the uninstall button is pressed under the bootstrapper GUI, the bootstrapper uninstalls the application. How do I uninstall the plug ins when I invoke an uninstall of the application?Here is one of the plugins (It is a VC2008 redist plug in). I am trying to invoke it. I am running the command prompt box to see if it actually calls the msi exec to uninstall the plug in. I am using the Product ID GUID path from the registry to find the plug in. So far, it doesn't work. Any suggestions? <Binary Id="CMDEXE" SourceFile ="C:\WINDOWS\SYSTEM32\cmd.exe" /> <CustomAction Id="ChangeDirectory" Directory="INSTALLLOCATION" Value="c:\windows\system32\"/> <CustomAction Id="echo_test" BinaryKey="CMDEXE" ExeCommand= "/c c:\windows\system32\msiexec /X{9BE518E6-ECC6-35A9-88E4-87755C07200F}" Execute="immediate" Return="check"/> <InstallExecuteSequence>  <Custom Action="ChangeDirectory" After ="InstallFinalize"/> REMOVE~="ALL"  </Custom> </InstallExecuteSequence>

Thanks
____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant http://www.firegiant.com/


  


More information about the wix-devs mailing list