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

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.

Related

Is there a built in way to hide a file in Wix?

The company I work for has recently taken to generating MSI files with Wix. We're at the tail end of the process, but there's one more thing they need me to do.
We have an XML file with a snapshot of what binaries have gone into the install. However, the customers we deliver to will get somewhat confused about an extra useless file in the install.
Most everything that comes up when I search for 'Wix' and 'hide file' is focused on removing or deleting the files after install. I just need to hide this sucker though.
Is there a way to hide the file through HEAT or something? I can modify the file element in the WXS using XSL or Powershell if need be. Or do I need to resort to a custom action that calls cmd.exe to hide it?
You can try setting the file element's hidden attribute to yes. Taken from here:
Set to yes in order to have the file's hidden attribute set when it is installed on the target machine.

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

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.