Hello,
I'm looking to use/access existing user variables to install a file to.
We tell users to set the the user environment variable PYTHONHOME to a path for our install.
I would like to then use PYTHONHOME in my Advanced Installer project to know to install a file there.
I tried following #3 of these steps: https://www.advancedinstaller.com/user- ... er-profile
Under the Files and Folder, I created a new Folder, property based. I set the "Name" to "PYTHONHOME". The article then says to leave the "Default Value" as none, but that's not an option. I've tried specifying it to "PYTHONHOME", "%PYTHONHOME%", "[%PYTHONHOME]","none", etc.
I added my file to the PYTHONHOME directory in the Files and Folders section.
I went on to also do the following steps under "Custom Actions":
"Set installer property"
Property: PYTHONHOME
Value: [%PYTHONHOME]
But regardless whatever I set the the "Default value" to when specifying the property, I get "Could not access network location PYTHONHOME" during the install (while computing space requirements). How can I access an existing environment variable on install?
I've also got a powershell script and if there's a programmatic way to do it there, I'd be happy to try.
Thanks,