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

agoto
Posts: 9
Joined: Thu Jul 06, 2006 9:23 am

Force Overwrite

Hello,

I wish to overwrite some files even if the existing files are newer.

At this moment I delete the existing files and then install the files to ensure that the files in the installer overwrite the existing ones.

InstallShield has ALWAYS_OVERWRITE option and it can be applied to a file group. Can I make the setting easier like this?

I used to use InstallShield but Advanced Installer is much easier to use on most of areas! :)

Thank you.

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

Hi,

Currently Advanced Installer does not support this attribute for a file because windows installer does not support it.

By default on upgrade Advanced Installer uninstall older files before installing new ones so you don't need to create a custom action do this.

However if you want this attribute for all files in your package then you can manipulate the REINSTALLMODE property. Please take a look here:
http://msdn.microsoft.com/library/defau ... llmode.asp

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
micahsheets
Posts: 1
Joined: Tue Aug 08, 2006 8:24 pm

How do I set the reinstallmode in Advanced Installer?

I want all files in my patch to overwrite files with the same version numbers. I assume that setting "REINSTALLMODE = emus" somewhere would do the trick. However I don't know how or where to set this property. Do I have to edit the .pcp file with Orca or is there a way to do this in AI?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

In order to overwrite all the files you need to change the value of the REINSTALLMODE property from "omus" to "amus". You can do it like this:
1. Switch to "Install Parameters" page and add a new property with value of amus name it MY_PROP.
2. Switch to "Custom Actions" page and add a "Property Set With Formated" custom action under the "InstallExecuteSequence->Begin". In the "Property Name" field type REINSTALLMODE. In the "Formatted" field type: [MY_PROP]

Also you can change that property by runing your package with the following command line:
For a msi: msiexec /i package.msi REINSTALLMODE=amus
For a patch: msiexec /p patch.msp REINSTALLMODE=amus

Hope this help.

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

Return to “Common Problems”