I am using a deferred custom action that calls a function in a DLL that installs a device driver.
The application was installed, but everytime I run setup, it detects the presence of the application and I am only given the option to remove. When I atttempt to remove, the DLL returns an ERROR_INSTALL_FAILURE, which the installer interprets as a failure and attempts to rollback the uninstall, thus I am not able to uninstall (or reinstall) my application.
Rebuilding my installer and/or DLL does not seem to work as setup seems to always use the versions that were registered with the OS. Therefore I am stuck!
Does anyone know how to manually uninstall an application or have another workaround?
Thanks!
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Uninstall Failure -- Can't Uninstall
Started by
cmahood
, Mar 29 2004 20:19
5 replies to this topic
Posted 30 March 2004 - 04:17
Try grabbing the cached msi file out of %WINDIR%\installer, and editing it with orca or install shield so that your custom action does not run.
i.e. - give the action a condition of NEVER_RUN=1
i.e. - give the action a condition of NEVER_RUN=1
Posted 30 March 2004 - 08:53
Make sure you change the PackageCode with each new build. Now you can install the new version on top of the old version - either simply using setup.exe (in newer InstallShiled versions), or by setting REINSTALLMODE=vomus REINSTALL=ALL on the command line. This will replace the cahed (buggy) .msi file with the new one.
Stefan Krüger
InstallSite.org twitter facebook
Posted 30 March 2004 - 21:31
QUOTE (Stefan Krueger @ 2004-03-30 08:53) |
Make sure you change the PackageCode with each new build. Now you can install the new version on top of the old version - either simply using setup.exe (in newer InstallShiled versions), or by setting REINSTALLMODE=vomus REINSTALL=ALL on the command line. This will replace the cahed (buggy) .msi file with the new one. |
Stefan,
Thanks for your prompt advice. I have used the Releases view to specify that, Yes, I would like a new GUID for each build.
When I run setup.exe (Developer 7), I get an error message stating that "a previous version of this software is already installed", and that I need to use Control Panel --> add/remove programs to get rid of the old version.
When I try to use add/remove programs to uninstall, I still have the same problem of not being able to remove the application.
Any other ideas? Am I missing something.
cmahood
Posted 01 April 2004 - 07:53
You have to use the REINSTALLMODE command line to update the existing version with your new version.
Stefan Krüger
InstallSite.org twitter facebook