Is there a way to force install? - Advanced Installer Community

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!

extraz
Posts: 4
Joined: Mon Jun 30, 2008 3:14 am

Is there a way to force install?

Hi,

Just wondering is there a way to force install the same version of application?

What I want to a achieve is, when I run the installer that I built, if the installer detects that there is an exisiting application with the same version in the computer, instead of popping up a message saying you cant install this cos your computer already has this version of application installed, can you auto remove the exisiting product and install the application in 1 go?

Just like when you press "RUN" to test your build, it runs the remover then it installs...

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

Re: Is there a way to force install?

Hi,
What I want to a achieve is, when I run the installer that I built, if the installer detects that there is an exisiting application with the same version in the computer, instead of popping up a message saying you cant install this cos your computer already has this version of application installed, can you auto remove the exisiting product and install the application in 1 go?
Note that this happens only on the developer machine when build and run a project that is already installed. With each build a new Package Code is generated witch uniquely identify a MSI package (this means that the new build is not the same package like the old one). Running it will lead to that message. On users machine this should never happen. When a user runs a package that is already installed (same Package Code) the Maintenance Dialogs will appear allowing it to modify or repair the package. This is the normal Windows Installer behavior.

What Advanced Installer does is to help the developer not manually removing the package with each build.

Kind Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
extraz
Posts: 4
Joined: Mon Jun 30, 2008 3:14 am

Re: Is there a way to force install?

Hi,

Thanks for the reply, I understand that it should never be happen on the user side, I m a software developer and I want to test the installer build nightly as well as the installation procedure. I am doing it through a .bat script everynight. Is there any way to get it to auto uninstall first and then install when I run my .msi installer?


Thank you
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Is there a way to force install?

Hi,
Is there any way to get it to auto uninstall first and then install when I run my .msi installer?
I'm afraid that Windows Installer does not support this for packages which have the same version. The auto-removal performed by Advanced Installer is a custom feature. Therefore, outside an Advanced Installer project the installed package will not be removed automatically.

However, Windows Installer supports this for different versions of a package. In order to use this feature you can follow the steps mentioned in the Upgrades page (the "Automatically upgrade older product versions" section).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”