PDA

View Full Version : How do I uninstall a InstallScript app with InstallScript MSI



neal007
05-27-2005, 08:09 AM
I acquired a company and they used InstallScript projects for their app. I rebuilt the installers using InstallScript MSI. When my installation is run, how can I uninstall the InstallScript version in the process so the user doesn't have two of the same application? It only has a Product code and not all the codes of MSI as you know.

Any tips would be appreciated. I don't know a lot about straight InstallScript projects.

chrishein
05-27-2005, 09:06 AM
Take a look at the UninstallApplication function in InstallScript. You should be able to run this at the beginning of your IS/MSI project to remove the old project.

http://helpnet.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/InstallShield11LangRef/UninstallApplication.htm

Hope that helps,
Chris

neal007
05-27-2005, 09:16 AM
Thanks Chris, I'll take a look.

neal007
05-27-2005, 10:14 AM
Chris,

Works great. One more question. When I call the Uninstall, the old application shows the MODIFY, REPAIR, REMOVE dialog. I just want it removed. How can I configure the uninstall call to do that?

thanks!!

Perucho
05-27-2005, 12:36 PM
syntax: UninstallApplication ( szUninstallKey, szAdditionalCmdLine, nOptions );

Setup.exe and Update.exe Command-Line Parameters
/x : Uninstall mode
/s : Silent mode

Try this:
UninstallApplication(szUninstallKey, " /x", nOptions);
UninstallApplication(szUninstallKey, " /x /s", nOptions);
UninstallApplication(szUninstallKey, " -l0x9 -uninst -removeonly", nOptions);


Uninstall String
http://community.installshield.com/showthread.php?t=148270

Setup.exe and Update.exe Command-Line Parameters
http://helpnet.installshield.com/robo/projects/helplibdevstudio9/IHelpSetup_EXECmdLine.htm

MsiExec.exe Command-Line Parameters
http://helpnet.installshield.com/robo/projects/helplibdevstudio9/IHelpCmdLineMSI.htm

neal007
05-27-2005, 12:43 PM
Keep in mind these are not MSI installs but instead they are straight InstallScript applications. I just prompted the user to click REMOVE when they see the app uninstall dialog, I think I'm set. Thanks for the help!

chrishein
05-27-2005, 03:50 PM
One other option for you Neal is to run the uninstall silently. You'd need to make an .iss file first (ie run the uninstall with the /r parameter) and then call it with a /s and a /f1 which would point to the setup.iss. But if you're happy with the Remove option just run with that.

Chris