We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

dindin0497
Posts: 4
Joined: Wed Feb 28, 2007 2:47 am

how to stop uninstall when install new version

Hello:

I create a msi with ver 1.0 in AI, it works fine. Then I create a msi with ver 1.1, when it install, it will uninstall old files, how to stop uninstall and directly install new files? :(

thanks
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

On upgrade the old version is automatically uninstalled. This is the normal behavior and you cannot change it. What you can do is to change the sequence of the "RemoveExistingProducts" standard action in oder to trigger the uninstall of the older version at the end of the installation of the new one.

To change the sequence of the "RemoveExistingProducts" standard action you need to open the MSI with ORCA (tool that comes with Platform SDK) and change the sequence (with a sequence before "InstallFinalize") of the "RemoveExistingProducts" action from "InstallExecuteSequence" table.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”