by Markus
2. November 2009 21:40
Defining the UI for your package
This is pretty simple in WiX. Consult the WiX Documentation to see more UI Options!!!
Step 1 (Setting the Language)
See also: http://wix.sourceforge.net/manual-wix3/WixUI_localization.htm
Under Project - Properties - Build Tab – Cultures to build: You can set the UI Languages to be build. Enter de-DE for a German UI.
Hint: You have to Reference the WixUiExtentions for this to work.
Step 2 (Settings the Language)
Set the Language Attribute in Product and Package Tag in the Product.wxs like this:
Language="1031"
List of LCIDs can be found here: http://msdn.microsoft.com/en-us/library/0h88fahh(VS.85).aspx
Step 3 (Defining the UI)
Place the following code in your product.wxs file.
<UI>
<Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONROOTDIRECTORY" />
<UIRef Id="WixUI_InstallDir" />
<!--Part 1 of: This would be to show a Check Box in the Finisch Dialog to start The Application-->
<!--<Publish Dialog="ExitDialog"
Control="Finish"
Event="DoAction"
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>-->
</UI>
<!--Part 2 of: This would be to show a Check Box in the Finisch Dialog to start The Application-->
<!--<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Start TheTester Application now" />
<Property Id="WixShellExecTarget" Value="[#TheTester.exe]" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />—>
Notes:
- Uncomment the Part 1 and Part 2 Code to get a Checkbox at the finish page to start your installaed product right away. Be aware that the background of the checkbox is gray. So if you have designed a nice Dialog Background Image, this will look a little strange. (If somebody finds a Workaround, please let me know!!!)
<= Back to Content
bcfb80a1-bf6d-4079-99f2-21dcbbc6523a|0|.0
Tags: