Customizing the dialog image and banner image in WIX installer - wix

I had Created wix installer project to my C# windows forms application.
I am new in using wix Toolset. I am wondering if there is anything like theme file, from which I can change the dialog image and banner image, as I need to distribute this installer for different customers, and I should set the look and feel of their logo. I want them to feel like this installer is customized specially for them.
I mean, I don't want to change the dialog image and the banner image each time from inside .wxs file. I imagine that there may be something like a .theme file from which I can set the images every time I need to change it.

In order to change the image and the banner you should use:
<WixVariable Id="WixUIBannerBmp" Value="$(var.ResourcesDir)bannrbmp.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="$(var.ResourcesDir)BackgroundImage.bmp" />
Different files for different customers.
There is no theme file you can change every time you need to change.

Related

Can I increase the size of the feature selection window of `WixUI_Mondo`?

WiX. I use WixUI_Mondo. Can I increase this Window size?
Short answer is yes.
Long answer is that you will need to grab the wix source for the dialogs used within the WixUI_Mondo UI and modify the sizes of all the windows.
Here is the link to the WixUI_Mondo wxs file. You can see the DialogRefs used for this UI set. You can go up one level in git to look at the wixlib files and see that each DialogRef has its own wxs file defining the dialog itself. You'll need to copy the contents of each dialog ref into their own wxs files within your wixproj installer project and then you can modify the sizes of each dialog and realign some UI elements if needed. If you still need the WixUIExtension, you'll need to change the names of each dialog and the UI to not conflict with the defined UI and dialogs in the extension.
You can use localization files to change the dimensions of a control or dialog.

How to include hyperlink license in Wix's Product.wxs

How to put the license's hyperlink in the Product.wxs?
I only notice that there are these code below:
<WixVariable Id="WixUILicenseRtf" Value="path\License.rtf" />
for including the license from the rtf document.
It does not appear that this is possible
WiX custom license file: setup shows links with < >
MSI does not support hyperlinks. You can modify the text to look like a link but it won't actually work.
That said, the WiX Standard Bootstrapper does support hyperlinks
http://wixtoolset.org/documentation/manual/v3/bundle/wixstdba/wixstdba_license.html

WiX Minimal UI shows first lines empty with Arabic text

I'm using WiX 3.7 I managed to get WiX Minimal UI to work properly following the instructions from http://wixtoolset.org/documentation/manual/v3/wixui/wixui_dialog_library.html
When I used Arabic Licence file is shown incorrectly (first lines are blank), unless user scrolls the text area in which case the text starts to look as expected.
I already tried the advice from the page http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html
Open your RTF file in WordPad and save it from there in order to remove the complex RTF content from the file. After saving it, rebuild your MSI.
My current approach is to write a Custom EULA Dialog, but I would prefer to stay with WiX UI Minimal builtin Dialog... Have you experienced this problem? Do you know how to overcome it?

Can I change all my installer dialogs' dimensions in one spot, using WiX?

I'm building an installer using WiX and I want all my installer's dialogs to be larger than the default dimensions. Is there a central spot where I can set a width and height for all dialogs in my installer? If not, is there at least a way to change the built-in dialogs' dimensions?
In WiX v3.6 you can use localization files to change size and location of dialogs and controls. See my blog post for details. It's still a lot of work to change everything.

wix specify licence shows nothing

I'm trying to specify the licence for my wix setup project.
I have created a rtf with a few dummy lines in wordpad/notepad/vs tried a few different ways as I read there was an issue with ones created in word but I dont think that should apply here, in any case I also opened it up in notepad++ and verified there is no funky characters hidden in it.
I am specifying the file like so
<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\Resources\test.rtf" />
And the file exists under the project\Resources directory.
When I run the installer all that is shown in the licence area is a blank text box with no scroll bars etc.
Is there something else I should be doing?
Save the license.rtf from WordPad. See this webpage (http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html), specifically this section:
There is a known issue with the rich
text control used to display the text
of the license file that can cause the
text to appear blank until the user
scrolls down in the control. This is
typically caused by complex RTF
content (such as the RTF generated
when saving an RTF file in Microsoft
Word). If you run into this behavior
in your setup UI, one of the following
workarounds will fix it in most cases:
Open your RTF file in WordPad and save
it from there in order to remove the
complex RTF content from the file.
After saving it, rebuild your MSI. Use
a dialog set other than the
WixUI_Minimal set. This problem
typically only occurs when the license
agreement screen is the first one
displayed during setup, which only
happens with the WixUI_Minimal dialog
set.
Thanks to #Daniel Powell's decision
Open WordPad
Write your text
Save by default(rtf)
Rebuild your msi
Profit.
Open trf file in wordpad instead of md-word, It will solve the scroll issue
<WixVariable Id="WixUILicenseRtf" Value="test.rtf" />
and include your test.rtf in the Setup project.