Set Environment Variable does not take a dynamic value?

Got a problem you cannot solve? Try here.
Dame1701
Posts: 27
Joined: Tue Jan 05, 2016 10:33 am

Set Environment Variable does not take a dynamic value?

Postby Dame1701 » 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

Dame1701
Posts: 27
Joined: Tue Jan 05, 2016 10:33 am

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

Postby Dame1701 » Fri Nov 03, 2017 9:16 am

I changed $PROGRAMFILES_X86$ to $PROGRAMFILES$and now it's working - seems the installer was not in 64bit mode.


Return to “Technical Support”

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 17 guests