Hello and welcome to Advanced Installer forums,
What is the file format of the file referenced by path_variables_file_path?
In order to obtain a file that will contain custom path variables the following steps must be taken:
1. Using Advanced Installer GUI go to "Options -> Path Variables".
2. In the
Path Variables Editor declare your custom path variable.
3. Press "OK" button.
This is important!!
4. Open again the Path Variables Editor and select "Operations-> Save To..." option and save your file to a location where you have writing permissions. Ex: D:\ (otherwise the file might not be created)
Once you have obtained the XML file you can use it with "/loadpathvars" cli option. For future use it is highly recommended not to manually edit the XML file but make the necessary changes using Advanced Installer GUI and export the file again.
BTW, I've tried the following as suggested by a previous post, but Convert Paths still uses <WindowsVolume> instead of my new variable.
I also tested the "Convert Path" wizard and I could not reproduce the behaviour you encountered. Are you using Advanced Installer 8.1.3?
The steps I followed in order to to successfully use "Convert Paths" wizard are:
1. Go to "Files & Folders" page and add your files. (Ex: C:\Foo\Foo.txt)
2. Go to "Options -> Path Variables" and add a new path variable. (Ex: Name: DIR_PATH ; Value: C:\Foo)
3. Go to "Project -> Convert Path" and run the wizard. (In the Summary Dialog you will see: Original Path: C:\Foo\Foo.txt -> Converted Path: <DIR_PATH>foo.txt)
If you have any other question, please don't hesitate to contact us.
Best Regards,
Octavian
_______________________________________________________________________________________________________________________________________________
Octavian Vasilovici
Advanced Installer Team
http://www.advancedinstaller.com/