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

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

Related

Customizing the dialog image and banner image in WIX installer

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.

How to set Uninstall Successful message in WixStdBA

In WiX 3.9 and earlier, there was no way to customize the message that WixStdBA shows when the operation completed. I see that bugs 4149 and 4604 have been resolved as fixed. Which version of WiX are these fixes available in, and how do I use this new functionality?
In WiX v3.10.0.1403, support was added for specifying different strings for success/failure of install/repair/uninstall. If you're using the builtin theme and localization file, then you get the new strings automatically. Otherwise, look at the pull request to see what was added to the builtin themes and localization files and put them in your customized files.
In WiX v4.0.2603.0, breaking changes were made to the schema of theme files. As part of that change, the Text element was renamed to Label and the new Text element allows conditionally setting the text of a control. In WiX v4.0.2926.0, the builtin themes and localization files were updated to show the same text as v3.10 does. Take a look at that commit to see how that functionality was added.

How can I change the text in the Wix installer dialog?

My text message is stuck to "Install My Product to:"
How can I change this?
("My Product" is the name of my product and the string above is resolved based on the Name attribute in my Product.wxs).
I have 2 dialogs and the second requires a different message.
Some text on the built-in dialogs can be changed with variables specified in the localization file for your language. This is a simpler task than if you are trying to change text that is not kept in a variable.
This process is documented here.
However, if that's the case, the recommended way to change the dialog on the install page is to make a copy of and change the template file(s) provided with the WiX installation.
Copy the relevant .wxs files from your WiX dialog extension set (you will need to make sure you installed the WiX source) you want to modify and copy the file that specifies the UI extension name. Modify it to suit your needs and change the names.
When you compile your installer, you will use your new extension name (referring to your modified dialog set) and tell candle/light where your modified .wxs files are.
This process has some good documentation here and here.
Following the entire tutorial at the second link should get you pretty far.
Good luck

Why is my license not showing up?

In my <Product> I have:
<WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
LICENSE.rtf exists, and is an rtf file (I've tried saving with a few different programs in case it was a problem with one of them).
The file contains text (a whole license!), and the text is sensibly formatted.
Why then, is the License field of my installer blank?
It turns out you basically must generate your rtf with Wordpad, or make a perfect replica. Since mine are generated by scripts, I adjusted my script to insert the Wordpad header to the rtf file, and this fixed it.

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.