This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Uninstall using msiexec
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 06, 2007
07:25 PM
Uninstall using msiexec
When installing our application, two other Wise installers are called in the OnFirstUIAfter() function. The installs are completed successfully.
When uninstalling our application, the two Wise applications must also be uninstalled. The uninstall is called during OnMaintUIAfter().
The exact command I am using to uninstall the products is
If I call that command from a cmd prompt, the folder structure is renamed with a date/timestamp and all files are "backed up". so "C:\Myfolder" becomes "C:\MyFolder_DateTime". There is no longer any registry entry or reference to the files. The application has been removed.
When called from InstallShield uninstall, the aplpications are removed and there is no longer a registry entry. BUT, it is leaving behind a complete set of empty folder structure belonging to the application and not creating the datetimestamp backup copy of the folder.
Any ideas why ?
When uninstalling our application, the two Wise applications must also be uninstalled. The uninstall is called during OnMaintUIAfter().
The exact command I am using to uninstall the products is
RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE );
szProgram = WINSYSDIR ^ "MsiExec.exe";
szCmdLine = "/qb-! /I{F9F60A6B-98EA-47DE-9EE9-004C0D1E58C6} ALLUSERS=1 REMOVE=ALL";
LaunchAppAndWait(szProgram, szCmdLine, LAAW_OPTION_WAIT)
szCmdLine = "/qb-! /I{26759A39-1CC0-4E1F-A42C-C5CF517BFE57} REMOVE=ALL";
LaunchAppAndWait(szProgram, szCmdLine, LAAW_OPTION_WAIT)
If I call that command from a cmd prompt, the folder structure is renamed with a date/timestamp and all files are "backed up". so "C:\Myfolder" becomes "C:\MyFolder_DateTime". There is no longer any registry entry or reference to the files. The application has been removed.
When called from InstallShield uninstall, the aplpications are removed and there is no longer a registry entry. BUT, it is leaving behind a complete set of empty folder structure belonging to the application and not creating the datetimestamp backup copy of the folder.
Any ideas why ?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 07, 2007
02:06 PM
If nothing else, can you add /L to the msiexec command lines to generate a log file in each case, and compare the two pairs of them?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 09, 2007
06:15 PM
According to the log files, the custom action to rename the folder has execute with success and I should have a "C:\MyFolder_DateTime".
I'll attempt to just use a CustomAction call instead 😞
I'll attempt to just use a CustomAction call instead 😞