fuhrj
Posts: 13
Joined: Fri Jul 25, 2014 6:44 pm

Restore file after applying update

It's a been awhile since I used this function, but a couple of our projects are doing this.

We have a file called CustomerSettings.config that needs to be replaced after a customer applies an update. There used to be a menu function in AI that allowed you to preserve the file or something like that. When you selected it, it would change the project Order to Uninstall First and then Install New Version.

With this ribbon UI, I can't find that feature.

Can somebody point me to where it is?

FYI, it was not File Duplicate or Copy.
fuhrj
Posts: 13
Joined: Fri Jul 25, 2014 6:44 pm

Re: Restore file after applying update

I found the function name in an old post (http://198.154.230.79/forums/viewtopic. ... 741#p50739)

"If you need to preserve any resources during an upgrade, a simple solution is to use the Persistent User Data wizard( menu bar -> Resources -> Persistent User Data... )"

It was called the Persistent User Data Wizard.

Where is this in the new UI? version 11.5.1 Enterprise?
GhostProtocol
Posts: 8
Joined: Thu Feb 05, 2015 7:57 pm

Re: Restore file after applying update

I think I need this as well, I an trying to keep a config file as the original during a patch.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Restore file after applying update

Hi,

In order to preserve a file during an upgrade you can go in the "Files and Folders" page, right-click on that file, select "Properties" then check the "Do not overwrite existing file" option from the "Operations" tab.

For more details, you can take a look on the "How do I prevent a file or registry entry from being uninstalled or repaired" article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fuhrj
Posts: 13
Joined: Fri Jul 25, 2014 6:44 pm

Re: Restore file after applying update

Eusebiu wrote:Hi,

In order to preserve a file during an upgrade you can go in the "Files and Folders" page, right-click on that file, select "Properties" then check the "Do not overwrite existing file" option from the "Operations" tab.

For more details, you can take a look on the "How do I prevent a file or registry entry from being uninstalled or repaired" article.

Best regards,
Eusebiu
Did this replace the Persistent User Data Wizard?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Restore file after applying update

Hi,

Yes, this is now the option that prevents a file from being updated.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GhostProtocol
Posts: 8
Joined: Thu Feb 05, 2015 7:57 pm

Re: Restore file after applying update

Okay, my issue is actually slightly different, I have a text file (type: TXT Update Set) It create a text file then replaces some text depending on installation parameters and then renames the file to a .config I need it to only make this file at first install and then never update it during patches/upgrades.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Restore file after applying update

Hi,

To achieve this, you can go in the "Organization" page, select the component related to your "Text Update" operation and set a condition like follows for it: NOT Installed AND NOT OLDPRODUCTS

If you want that component to not be installed during the patches too, then you need to also set the "Transitive" flag for it, otherwise its condition will not be reevaluated during the installation of the patch.

For more details you can read the Using Transitive Components article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”