简体   繁体   中英

How to get .msi running location in wix installer?

在wix对话框中,我有上载按钮来上载公司徽标...我需要在单击下一步按钮后在下一个对话框中显示此图像。

I am not sure if you are using the default wix ui dialogs or you have customized the UI dialogs.

If you are using the default dialogs then you can set any of the below two variables:

  • WixUIBannerBmp this is wixvariable for Top banner. Size: 493 × 58

  • WixUIDialogBmp this us wixvariable for Background bitmap used on the welcome and completion dialogs
    Size:493 × 312

Syntax :

<WixVariable Id="WixUIBannerBmp" Value="..\images\banner.bmp" />

You can get path of image from custom action and then that path can be set while setting wix variable.

Eg if your path propery name is BrowsedFilePath, then the syntax would be

Syntax :

<WixVariable Id="WixUIBannerBmp" Value="[BrowsedFilePath]" />

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM