Path Variables - 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!

tgillitzer
Posts: 36
Joined: Tue Dec 13, 2011 12:12 am

Path Variables

Is it possible to use a path variable for only part of the path of a file?

For example, say I have a file in my project:
  • C:\TestProject\1.0.3\testprogram.exe
I want to use a Path Variable for just the 1.0.3 part.

So, I want the source path for the file to be:
  • C:\TestProject\<ENVVERSION>\testprogram.exe
where ENVVERSION is a Path Variable that is set by an Environment Variable called VERSION, which has a value of 1.0.3.

The convert path wizard won't convert them unless I set the VERSION Environment Variable to C:\TestProject\1.0.3

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

Re: Path Variables

Hi,

Please keep in mind that the intended functionality of the path variable is to store the whole path to a directory, not only the name of the directory.

Unfortunately, I'm afraid that what you want cannot be done.
Why do you want to use only the name of a folder?

It might help if you take a look on the Path Variables article.

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

Return to “Common Problems”