Set Environment Variable does not take a dynamic value?
Posted: Fri Nov 03, 2017 9:09 am
Hi there,
I have the following MSI code for setting a System Environment variable:
~InstallAware Clipboard Data~
~Apply Changes~
~{2AF1470C-39BB-4542-980C-E780D317E2DE}~
~progress~
~SUCCESS~
~TRUE~
~FALSE~
~Set Environment~
~{6F6162BD-7642-4D25-BCAA-483327E08CE6}~
~MXF_HOME~
~$PROGRAMFILES_X86$\Root6\Filters\~
~0~
~0~
~TRUE~
~TRUE~
The problem is that when I run the installer, the value "$PROGRAMFILES_X86$\Root6\Filters\" appears for MXF_HOME, not the value "C:\Program Files (x86)\Root6\Filters\" as I would expect. It would appear that InstallAware is ignoring the dynamic value. Ideally, we need this to be dynamic in cases where the C drive is not where the program files are residing.
Is this a bug or am I specifying the system variable improperly?
Many thanks,
Damien
I have the following MSI code for setting a System Environment variable:
~InstallAware Clipboard Data~
~Apply Changes~
~{2AF1470C-39BB-4542-980C-E780D317E2DE}~
~progress~
~SUCCESS~
~TRUE~
~FALSE~
~Set Environment~
~{6F6162BD-7642-4D25-BCAA-483327E08CE6}~
~MXF_HOME~
~$PROGRAMFILES_X86$\Root6\Filters\~
~0~
~0~
~TRUE~
~TRUE~
The problem is that when I run the installer, the value "$PROGRAMFILES_X86$\Root6\Filters\" appears for MXF_HOME, not the value "C:\Program Files (x86)\Root6\Filters\" as I would expect. It would appear that InstallAware is ignoring the dynamic value. Ideally, we need this to be dynamic in cases where the C drive is not where the program files are residing.
Is this a bug or am I specifying the system variable improperly?
Many thanks,
Damien