开发者

Dynamically Set WixUIBannerBmp Location Based on Property

开发者 https://www.devze.com 2023-02-05 12:57 出处:网络
I have the following: <WixVariable Id=\"WixUIBannerBmp\" Value=\"FirstBanner.jpg\" /> I want to be able to set the value of this WixVariable using a property that gets passed in when the insta

I have the following:

<WixVariable Id="WixUIBannerBmp" Value="FirstBanner.jpg" />

I want to be able to set the value of this WixVariable using a property that gets passed in when the installer is kicked off:

msiexec.exe /i MyInstaller.msi /l* install.log MYPROPERTY=SomeValue

So, based on the the value of MYPROPERTY, I set the value of the WixVariable to one of two (or more) values.

My initial stab at this proved unsuccessful:

<Property Id="BANNERLOCATION" Value="FirstBanner.jpg" />
<WixVariable Id="WixUIBannerBmp" Value="[BANNERLOCATION]" />

I get the following build error:

error LGHT0103: The system cannot find the file '[BANNERLOCATION]'.

Is what I am trying to achieve p开发者_StackOverflowossible? This is simply branding the install based on a passed-in property, after all ...


No, what you are trying to accomplish is not supported by the Windows Installer. Sorry.

0

精彩评论

暂无评论...
验证码 换一张
取 消