Loading
How do I access Path Variable Overrides values at runtime from within InstallScript?

I am building an installscript project and attempting to use the same project with multiple releases. To help with that, I'm trying to override some Path Variables and Registry Path Variables at build time, so I don't have to rewrite as many variables in the script each time we build a new release. However, we need our script to do some custom checks based on these values, and I can't figure out how to access the variables within the script. Is it just not possible at all?

 

For example, we have a "Distribution" value we want to add to the registry. For releases for the USA, I can set a Registry Path Variable "DISTRO" and override that with "USA" for the USA release and that's great. However, when doing an update, we want to make sure that the underlying install is "USA" and not some other country before we install the "USA" code.

 

With InstallScript I can access and read the installed "Distribution" value in the registry before the update runs, but I can't figure out how to compare it to the <DISTRO> Registry Path Variable using InstallScript. I tried referring to it like <DISTRO> or DISTRO, but the code won't compile successfully. Is there any way to do this, or will I have to go back to hard coding release-specific variables in the script?


Loading
How do I access Path Variable Overrides values at runtime from within InstallScript?