lionelsiu
Posts: 19
Joined: Fri Jul 26, 2013 4:11 am

Creating Upgrade that moving existing files

I am doing an upgrade for my application. The upgrade will move some existing files into a new destination folder.
The location value of the existing files are stored in Registry, Classpath and INI files.
I want to know how can I update the corresponding location value during the upgrade.
Please help, thank you.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Creating Upgrade that moving existing files

Hi,

In order to achieve what you want you can create property-based folders for the source and the destination location of your files and use the "File Copy/Move" operation to move them.

The path of the source folders can be updated through the "Set installer property" predefined custom action.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lionelsiu
Posts: 19
Joined: Fri Jul 26, 2013 4:11 am

Re: Creating Upgrade that moving existing files

Thank you for your reply.
How about moving the whole existing folder? Since the INI file stores the relative existing folder location value, I have to move the whole folder into the a new destination.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Creating Upgrade that moving existing files

Hi,

To achieve this you can use the approach described in the Change and Move folder contents on reinstall thread.

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

Return to “Building Installers”