Overriding files: when yes, and when not - 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!

Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Overriding files: when yes, and when not

Using AI 7.7:
I have a project that has an XML file which is a configuration of ours.
When having the "upgrades" with "Install new version first and then uninstall old version" I noticed that if I changed the file for say version 1.0.0, and then I do an upgrade to say version 1.0.1: then this xml file is NOT overridden, which is _EXACTLY_ what I want!

So this has been working okay for a few days, and then suddenly today the installer started to override the file! which is NOT what I want! I want a config file that I have modified to REMAIN untouched!
So what's happening? What's changed? How can I rely on this? I need to know this is STABLE.

Or am I doing something wrong?
In other words (considering I'm doing something wrong): what should I do that if I install msi version 1.0.0, I have an XML file that I later modify, and I then want to upgrade to msi version 1.0.1: that the upgrade will NOT override my modified xml file?

Thanks again, Dashut.
Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Re: Overriding files: when yes, and when not

Going to the "Organization"->"Features And Components", I found that I added some more files to my config folder (that have the extension: *.ir) and they all are grouped to ONE component/GUID! (together with my xml config file - my xml config file is NOT Windows Installer file).
So maybe this caused them to be overridden?
How can I ungroup these files?
For example, every dll file in my Feature has ONE GUID, but some files are grouped to ONE GUID.
To be completely open, I have some dll's like I said with one guid, and then I have some file: BluefishFilter.tlb that is a component/guid and it's grouped with IconNew.ico and VMNCodec.ax.
And then I have my xml file called: components.xml which is grouped with other files ending with extension "ir" (AuoraUIRT.ir and hot.ir).

Does this information help (understand why the installer now chooses to override my xml file although it didn't before)?
Dashut
.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Overriding files: when yes, and when not

Hi Dashut,

Most likely, Windows Installer decides to reinstall the component since it has changed (new resources added to it). You should not rely on Windows Installer's decision to keep the file or not. Instead, you should use the Persistent User Data wizard to preserve your XML file during upgrades. The wizard can be found from the Wizards top menu in Advanced Installer.

Let me know if this helped.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Re: Overriding files: when yes, and when not

Seems like this solved the problem, thanks.
Dashut.

Return to “Common Problems”