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: Silent Uninstall from another install
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
‎Jul 25, 2008
04:00 PM
Silent Uninstall from another install
I have a install that I want to uninstall from an updated version. Let me try to explain.
I have a computer with program A 1.0 install. We are changing the way we do things so I now need to install program B 1.0 and I want to uninstall A 1.0 without the enduser seeing it go. If I use UninstallApplication(GUID) it will pop up the are you sure you want to uninstall question. How can I avoid that? Are there any switches I can use? Could I drop an updated version of the program A script down before calling the uninstall? Ideas?
Thanks
Brandon
I have a computer with program A 1.0 install. We are changing the way we do things so I now need to install program B 1.0 and I want to uninstall A 1.0 without the enduser seeing it go. If I use UninstallApplication(GUID) it will pop up the are you sure you want to uninstall question. How can I avoid that? Are there any switches I can use? Could I drop an updated version of the program A script down before calling the uninstall? Ideas?
Thanks
Brandon
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 28, 2008
12:38 PM
Does nobody have any ideas?
I have modified the original script and copied it over then laun the uninstall but I have 2 problems still. It shows the first screen when installshield is loading and the other problem is that the launching app does not wait for the uninstall to finish.
I have modified the original script and copied it over then laun the uninstall but I have 2 problems still. It shows the first screen when installshield is loading and the other problem is that the launching app does not wait for the uninstall to finish.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 28, 2008
02:36 PM
Not sure how your uninstall works, but if it's a command line you can use the following parameters:
setup.exe /SMS /s
I use the /SMS in one of my testing scripts; it holds the machine until the installer is finished.
The /s hides the "Installshield Wizard" window that will "guide you through the rest of the setup process."
setup.exe /SMS /s
I use the /SMS in one of my testing scripts; it holds the machine until the installer is finished.
The /s hides the "Installshield Wizard" window that will "guide you through the rest of the setup process."
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 29, 2008
04:29 AM
Regardig to the 2 problems that you still have:
1) The first screen is impossible to avoid. The only "solution" for that is show a "small screen". Go to Releases->Release->Setup.exe and set "Small Initialization Dialog" to Yes.
2) To launch and application and wait for it, use the function: LaunchAppAndWait (sLaunchPath, "", WAIT)
Good luck!
1) The first screen is impossible to avoid. The only "solution" for that is show a "small screen". Go to Releases->Release->Setup.exe and set "Small Initialization Dialog" to Yes.
2) To launch and application and wait for it, use the function: LaunchAppAndWait (sLaunchPath, "", WAIT)
Good luck!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 31, 2008
12:49 PM
Well, you can get the product code of the app and do this:
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szRegKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}";
if(RegDBKeyExist(szRegKey) = 1) then
szApp = "MsiExec.exe" ;
szCmdLine = "/qn /X{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}";
LaunchAppAndWait(szApp, szCmdLine, LAAW_OPTION_WAIT |
LAAW_OPTION_SHOW_HOURGLASS);
endif;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 31, 2008
01:15 PM
lest we forget
LAAW_OPTION_HIDDEN as another option
LAAW_OPTION_HIDDEN as another option