Page 1 of 1

Set Environment Variable does not take a dynamic value?

Posted: Fri Nov 03, 2017 9:09 am
by Dame1701
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

Re: Set Environment Variable does not take a dynamic value?

Posted: Fri Nov 03, 2017 9:16 am
by Dame1701
I changed $PROGRAMFILES_X86$ to $PROGRAMFILES$and now it's working - seems the installer was not in 64bit mode.