How show version number in title of installation in WIX?

前端 未结 2 1962
Happy的楠姐
Happy的楠姐 2021-01-06 08:30

I need to display the version number in the title along with the application name.

Currently, it looks like

Here is my wix snippet:

         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-06 08:58

    Localization Override: You can try to add a localization file and then override the WelcomeDlgTitle string (the WiX GUI string list / list of string identifiers can be found here (for English):

    1. Note that this assumes the Mondo dialog set:
      • Add to WiX markup:
      • Add reference to %ProgramFiles(x86)%\WiX Toolset v3.11\bin\WixUIExtension.dll
      • WiX Hello World Sample in Visual Studio (WiX markup with comments towards bottom is usually enough for developers to get the gist of things)
    2. Right click your WiX project in Visual Studio => Add => New Item...
    3. Select WiX v3 in the left menu. Double click Localization file (very common to add a WiX v4 file instead, double check please)
    4. Add the string below to the localization file:

      
      
        {\WixUI_Font_Bigger}Welcome to the [ProductName] [ProductVersion] Setup Wizard
      
      
    5. Compile and test

    Sample Dialog:

    WiX GUI: I am quite confused myself with WiX GUI, hence I wrote this little overview and "check list" to remember better (uses a similar approach to change the style of a dialog entry): Changing text color to Wix dialogs.

    Links:

    • WiX UI Sources: (languages strings and dialog sources)
      • https://github.com/wixtoolset/wix3/tree/develop/src/ext/UIExtension/wixlib
    • WiX UI English Strings:
      • https://github.com/wixtoolset/wix3/blob/develop/src/ext/UIExtension/wixlib/WixUI_en-us.wxl
    • WiX UI Norwegian Strings:
      • https://github.com/wixtoolset/wix3/blob/develop/src/ext/UIExtension/wixlib/WixUI_nb-NO.wxl
    • There are many such language files, use above link for full list

提交回复
热议问题