[wix-users] Platform variable value for Suffix in IIS Custom Action

Ven H venh.123 at gmail.com
Tue Feb 5 09:42:32 PST 2019


Thanks a lot, Blair. It seems to help as of now. I got rid of the hard
coded value for $(var.platform) from x86 to $(sys.BUILDARCH)


On Sat, Jan 26, 2019 at 12:55 AM Blair Murri <osito at live.com> wrote:

> Try $(sys.BUILDARCH)
>
> Get Outlook for Android <https://aka.ms/ghei36>
>
> ------------------------------
> *From:* Ven H <venh.123 at gmail.com>
> *Sent:* Friday, January 25, 2019 9:24:25 AM
> *To:* Blair Murri
> *Cc:* WiX Toolset Users Mailing List
> *Subject:* Re: [wix-users] Platform variable value for Suffix in IIS
> Custom Action
>
> Hi Blair,
>
> I am calling that custom action inside InstallExecute sequence with a
> condition to make sure it gets executed only when my App feature is getting
> installed and not during the DB feature execution, because it was slowing
> things down otherwise and it was showing confusing status messages during
> DB feature installation. However, I had to hard code the value of Platform
> variable in the .wxi file, since I don't know how to set it otherwise.
>
>
>
> On Thu, Jan 24, 2019 at 5:21 AM Blair Murri <osito at live.com> wrote:
>
>> What are you trying to do? The supported way to use the IIS custom action
>> is to use the WiX IIS extension, which will schedule it for you.
>>
>> If you are trying to reference the custom action (to change its location
>> in the installation sequence, or to schedule other actions relative to this
>> one) the name of the custom action depends on the platform of the MSI, not
>> the platform of the machine it's run on.
>>
>> var.platform will be set in your WiX sources for you, based on the
>> command-line switches/project settings you build with.
>>
>> Get Outlook for Android <https://aka.ms/ghei36>
>>
>> ------------------------------
>> *From:* wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of
>> Ven H via wix-users <wix-users at lists.wixtoolset.org>
>> *Sent:* Friday, January 18, 2019 9:18:23 AM
>> *To:* WiX Toolset Users Mailing List
>> *Cc:* Ven H
>> *Subject:* [wix-users] Platform variable value for Suffix in IIS Custom
>> Action
>>
>> For IIS Custom Action (Built-in), there is a following line of code.
>>
>> <Custom Action="ConfigureIIs$(var.Suffix)" Before="RegisterUser"></Custom>
>>
>> In the above line there is a variable $(var.Suffix), which is defined as
>> follows.
>>
>>  <?if $(var.platform)="x86" ?>
>>   <?define Suffix="" ?>
>>   <?define DeferredSuffix="" ?>
>>   <?endif ?>
>>
>>   <?if $(var.platform)="x64" ?>
>>   <?define Suffix="_x64" ?>
>>   <?define DeferredSuffix="_64" ?>
>>   <?endif ?>
>>
>> I am not sure how to get the value of platform variable for Windows 2012
>> or
>> Windows 2014 or Windows 2016 Server OS in my MSI? Can anyone please help?
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>


More information about the wix-users mailing list