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

Ven H venh.123 at gmail.com
Fri Jan 25 09:24:25 PST 2019


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