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!

Sofa
Posts: 3
Joined: Tue Apr 22, 2014 4:27 pm

AI absolute paths and path variables

In my AI project I have many files with path <Windows Volume>Projects\Current\Installation\somefile.ext (C:\Projects\Current\Installation\somefile.ext).
To avoid references to a hard-coded location I add path variable Current_Dir to the folder Current (C:\Projects\Current\).

So, I want see all paths to my files as <Current_Dir>Installation\somefile.ext instead of <Windows Volume>Projects\Current\Installation\somefile.ext. How can I get it without re-adding files in AI project?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: AI absolute paths and path variables

Hi and welcome to Advanced Installer forums.

In order to achieve what you want you can go in the "Files and Folders" page, create a property-based folder (i.e. Current_Dir), then move your files from the "<Windows Volume>Projects\Current\Installation\" folder to the "<Current_Dir>Installation\" folder.

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
Sofa
Posts: 3
Joined: Tue Apr 22, 2014 4:27 pm

Re: AI absolute paths and path variables

Eusebiu wrote:...create a property-based folder (i.e. Current_Dir), then move your files from the "<Windows Volume>Projects\Current\Installation\" folder to the "<Current_Dir>Installation\" folder.
How can I do that if it's the same folder?
"Property based folders will be resolved at install time to the values from the respective property." Hmmm... how could it help me?

Well, may be my example is not very good. I just want to move AI project to another computer and I don't want to save folders structure. I want move ONLY folder "Current" with subfolders. So I want relative path in my project - relative to folder "Current" not for "<Windows Volume>" as I have now.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: AI absolute paths and path variables

Hi,

Sorry, but it seems that I misunderstood your scenario. A similar problem was discussed on the AIP project file and rebuild folder structure thread were you can find all the possibilities available for your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Sofa
Posts: 3
Joined: Tue Apr 22, 2014 4:27 pm

Re: AI absolute paths and path variables

Ok, I've found built-in ability to have needed relative paths without re-adding files (sinchronize all folders, manually change sourcepaths etc.)... You didn't suggest it.
Just need to use Convert Paths Wizard twice.

Best regards
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: AI absolute paths and path variables

Hi,

Sorry for missing that option. I'm glad you got your project working using it.

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

Return to “Building Installers”