A condition of REMOVE="ALL" should be fine for uninstall CAs. Rob
Dane Anderson wrote: > I have an install package that I am attempting to put together. In the > process of installing > > I have it run an executable, CabInstaller.exe, that installs the dll > contained in the .cab > > and sets some registry entries (explicitly). Some OTHER registry entries > are set > > automagically (and in a completely blackbox way) by some 3^rd party > executables > > that CabInstaller calls during it’s execution. . After being executed > CabInstaller.exe is > > deleted from the target machine. I have this much working perfectly > > The problem I am encountering is, during an uninstall (msiexec /x …) I > need the installer > > to execute CabInstaller with an UNinstall option (CabInstaller > <cabfilename> to install > > and CabInstaller –u <cabfilename> to uninstall). So that it can call > those 3^rd party > > executables with THEIR uninstall options. The target is to produce ONE > install > > package that can be used to install or uninstall. HOW do I get the FOOL > installer > > to execute a custom action ONLY when uninstalling. My wxs file has: > > <Directory Id="TARGETDIR" Name="SourceDir"> > > <Directory Id="TempFolder" Name="TempDir"> > > <Component Id="INTAVADLLS" DiskId="1" Guid="$(env.INTAVADLSGUID)"> > > <File Id="IntavaDL.cab" Name="IntavaDL.cab" > src="C:\intava\source\Intavadl\IntavaDL.cab" Vital="yes" /> > > <File Id="CabInstaller.exe" Name="INSTALLR.EXE" > LongName="CabInstaller.exe" > > > src="C:\Intava\Source\tools\CabInstaller\Debug\CabInstaller.exe" > Vital="yes" /> > > <File Id="CabUninstallerInstall.bat" Name="CabIns.bat" > LongName="CabUninstallerInstall.bat" > > src="C:\trials\SprintKioskSetup\CabUninstallerUninstall.bat" > Vital="yes" /> > > <File Id="CabUninstallerUninstall.bat" Name="CabUnins.bat" > LongName="CabUninstallerUninstall.bat" > > src="C:\trials\SprintKioskSetup\CabUninstallerUninstall.bat" > Vital="yes" /> > > > <!-- For the install action --> > > <CustomAction Id="InstallIntavaDl.Dll" FileKey="CabInstaller.exe" > ExeCommand="[TempFolder]IntavaDL.cab" > > Return="check" /> > > <!-- For the uninstall action --> > > <CustomAction Id="DeleteCabs" FileKey="CabUninstallerUninstall.bat" > ExeCommand="" Return="check" /> > > <!-- CabUninstallerUninstall.bat wraps “%temp%\CabInstaller -u > %temp%\IntavaDL.cab” because for > > some unknown reason CabInstaller throws an exception when doing an > uninstall if it is being run > > directly by msiexec. It does NOT throw when run from the command line. --> > > <InstallExecuteSequence> <!-- I haven’t found any > “UninstallExecuteSequence” documented so I presume this > > is the right place to put both --> > > <Custom Action="InstallIntavaDl.Dll" After="InstallFinalize">NOT > Installed</Custom> > > <Custom Action="DeleteCabs" Sequence="3490">Installed</Custom> > > <!-- I’ve found the hard way, that the CabInstaller must be run > BEFORE InstallFinalize on an > > uninstall. AFTER InstallFinalize the CabInstaller no longer > exists on the target machine --> > > The problem is, my DeleteCabs CustomAction NEVER gets executed, EVER. I > have verified that the bat file > > executes correctly when run manually. Now I need it to be run by > msiexec. I know for a fact that msiexec > > CAN run bat files, because I have another one that deletes the .cab and > .exe files after they’ve been > > used in the install. That has been verified to work, so I know it can be > done. Just HOW to get it to > > run during an uninstall is what I’m beating my head against. > > > If you have any suggestions: Please send me an E-Mail > ([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>), as I haven’t noticed > any links to > > join your mail list. > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users