Overwrite package - 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!

colinng
Posts: 13
Joined: Wed Mar 31, 2010 7:07 pm

Overwrite package

Hi all,

How can I force the ms installation which the msi installer have the same version but different content?

Thanks.

Colin
colinng
Posts: 13
Joined: Wed Mar 31, 2010 7:07 pm

Re: Overwrite package

What is the difference between running in msi within Advanced installer gui environment and using msiexec?
I aint able to install the package using msiexec without uninstall the package. But, I can do that under advanced installer gui environment.

Thanks.

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

Re: Overwrite package

Hi Colin,
How can I force the ms installation which the msi installer have the same version but different content?
Unfortunately this type of updates cannot be made automatically. The recommended approach is to increase the version when modifying the package content. If you need this for testing purposes, you can manually uninstall the old version before installing the new one.
What is the difference between running in msi within Advanced installer gui environment and using msiexec?
I aint able to install the package using msiexec without uninstall the package. But, I can do that under advanced installer gui environment.
When running the package from Advanced Installer older instances are automatically detected and removed. This way you can test your new package without manually uninstalling older instances with the same version. Note that this is an Advanced Installer feature, Windows Installer doesn't support it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
colinng
Posts: 13
Joined: Wed Mar 31, 2010 7:07 pm

Re: Overwrite package

How can we simulate what Advanced Installer GUI app does, i.e. like script/executable in InstallExecuteSequence to uninstall the package if same version is found.

Colin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Overwrite package

Hello Colin,

I'm not sure about the behavior you are seeking.
Could you describe this in more detail?

Thanks,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
colinng
Posts: 13
Joined: Wed Mar 31, 2010 7:07 pm

Re: Overwrite package

Gabriel,

Here is my problem:

Installer A1 and Installer A2 are built from identical source having some minor difference but have the same version #.

Currently, we requires to uninstall A1 manually before A2 can be installed. Are there any ways to hide this procedure when installing A2 by using calling script/executable in InstallExecuteSequence to uninstall A1? This is a nice feature provided by Advanced Installer GUI app.

Thanks.

Colin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Overwrite package

Hi Colin,

It is highly unrecommended to have two installers with the same version built from the same .aip.
I recommend you read the following article on Product Identification and suggest you find another aproach instead of using the same version.

By "Advanced Installer GUI app" are you referring to Advanced Installer's installer? I am afraid I still can not understand which feature you are referring to.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
colinng
Posts: 13
Joined: Wed Mar 31, 2010 7:07 pm

Re: Overwrite package

Gabriel,

I am referring to Advanced installer GUI DEV Environment. Under the DEV environment, the old installer is automatically uninstalled before the new one is installed (even both have the same version). I understand that we should have different version if the content is different. But, having the automatic uninstallation will save time for our QA to test build after build.

What is the limitation for the number of version?

Colin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Overwrite package

Hi Colin,

I now understand.
Well, the uninstall behavior is achieved by invoking msiexec.exe like this:

Code: Select all

msiexec.exe /x <ProductCode>
Where <ProductCode> is your installer's product code. Your QA team can use a bat that launches msiexec with those parameters and automatically uninstalls that product.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”