rncox73
Posts: 18
Joined: Thu Jun 17, 2010 11:39 pm

Uninstalling another program

I have to change the drivers/RTE for a particular device I am using. I know the msiexec.exe command to run to uninstall the old program as well as the commands to install the new program. So I have embedded the new install program in my aip script. I first have it run a batch file to uninstall the old version and then another batch file to install the new stuff. I am using custom actions, but it doesn't seem to work. I have tested both batch files individually on a test target machine and they both work properly.

Is there a better way to do this? I also don't want anything to show up under "Add/Remove Programs" and don't want to create any shortcut menus in the start menu, but it won't let me leave that blank.

Thanks...
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstalling another program

Hello,

You can try to add the old .MSI in the Upgrades page of your new package's project( Upgrades group -> New... ). This way the old package will be automatically uninstalled when you install the new one.
For more information please follow our user guide tutorial.

If the custom actions that execute the command lines don't work as intended you can try to set them with "Deferred, with no impersonation"( this will elevate the custom action ). If this is not the case, please give us more details and exemplify the issue so we can assist you further.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”