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!

netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Change File and Folder Source

I have a working folder, lets call it Folder Alpha. This folder houses the working copy of the projects and any necessary files. When the changes are completed I want to make a copy of everything to an archive folder where I can do a clean rebuild of that version whenever I need. Lets call this archive folder Folder Bravo.

I noticed that the project in Folder Bravo still points to the files in Folder Alpha even after everything is copied over. Is there anyway to quickly mass 'point' it to the new location? Or have it set as some dynamic path in the project? Presently the project works based on the absolute path of the files and folders. Converting it to a variable does not help as it still points to the original source.

Please advise! Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Change File and Folder Source

Hello,

Paths are stored (in AIP) by default as *relative* to the project file (AIP), if they reside on the same logical drive as the AIP.
Otherwise, they are stored in absolute form.

Check available options here:
http://www.advancedinstaller.com/user-g ... s-tab.html

Also, be aware, that if you use project app paths (symbolic variable paths), they may be subject to environment changes (dependent on the machine where you open the project) - this being the intended behavior.

http://www.advancedinstaller.com/user-g ... ables.html
http://www.advancedinstaller.com/user-g ... h-var.html

Project resource files policy:
http://www.advancedinstaller.com/user-g ... ables.html

Please let me know if you have any questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Re: Change File and Folder Source

Hi Dan,

You are right, the file paths are indeed stored as relative values. The reason why it wasnt working for me is because I had converted my file paths to variables. E.g. C:\Users\<My User Name>\Documents\<Project Folder> to <Personal Folder>\Documents\<Project Folder> while I was attempting to find a solution to this question. This resulted in the files continuing to use the path variable like an absolute value instead of referring to the files in the relative format. After I have re added all my files (Painfully.) it is now referring to the files in the relative format.

One more thing, this does not seem to apply for the JRE bundles? Namely when I copy the project file to the new folder the JRE bundles will use a totally new value instead of the previous set value. E.g. previously set as C:\Program Files\Java\jre7 but after opening in new folder it shows C:\Users\<My User Name>\Program Files\Java\jre7.

The result was that I have to re add the JRE bundle, which is a minor inconvenience. Not sure if this had something to do with the file path to variable conversion that I had done before.

Return to “Building Installers”