How can i change the size of the BitmapBmp for the FilesInUse Dialog in WiX Toolset - wix

i will change the Size of the BitmapBmp for the FilesInUse Dialog. Wrong size from this to this the size for the Bitmap i have added to all other Dialogs
The Problem is that if i change it in my WiX UI section, i get this Warning: Change of the FilesInUse Dialog
I changed it so: change in FilesInUse Dialog
Next I tryed to rename it in MyFilesInUse and changed the DialogRef too: change in the DialogRef from FilesInUse to MyFilesInUse and Renamed FilesInUseDialog
But here I get this Warning: warning when i change FilesInUse to MyFilesInUse
Someone knows, where WiX needs the FileInUse reference also? Its the only Bitmap size i cant change on this way.
Thanks for Help :)

Related

Wix Installer - Customize MsiRMFilesInUse dialog box

I was trying to change the default MsiRMFilesInUse dialog box provided by restart manager used in wix toolset. Basically I want to localize the default message in the dialog box since it is not getting localized by windows.
I found this answer (https://stackoverflow.com/a/46462452/14162315) which explains the steps of making the custom dialog box instead of normal one. A custom dialog box could help me in localizing the message.
I tried the above steps but I am getting the error - Duplicate symbol 'Property:WixUIRMOption' found. This typically means that an Id is duplicated. Check to make sure all your identifiers of a given type (File, Component, Feature) are unique.
I thought that I have to change the property id of WixUIRMOption also to some custom value to mitigate the error, so I changed it to Custom_WixUIRMOption. It compiled successfully after this change but the dialog box is not coming at all after this change.
link to source code of default MsiRMFilesInUse.wxs - https://github.com/AnalogJ/Wix3.6Toolset/blob/master/RC0-source/wix36-sources/src/ext/UIExtension/wixlib/MsiRMFilesInUse.wxs
you should be fine if you provide a localization for MsiRMFilesInUseText.
<String Id="MsiRMFilesInUseText" Overridable="yes">Translated text</String>
See how the dialog is implemented:
https://github.com/wixtoolset/wix3/blob/develop/src/ext/UIExtension/wixlib/MsiRMFilesInUse.wxs
See how wix ui is translated:
https://github.com/wixtoolset/wix3/blob/develop/src/ext/UIExtension/wixlib/WixUI_en-us.wxl

Attempt to install earlier version of the installed application causes error

I have created a custom UI and provided the standard dialog boxes as required to avoid ICE20 errors. I have included the following line as required:
If I use a WIX UI this works fine. But now I've created my own custom UI I get an "unexpected error" message with error code 2814 and then one with 2869. Does anyone know how to catch the attempted downgrade to produce a dialog box with the correct message?
I am not an MSI dialog expert, but there are a few things I can point out:
You can customize the internal GUI built into an MSI.
You can also make your own GUI for Burn setup.exe launchers.
Burn GUIs can be more modern than the rather ancient MSI GUI.
A Burn launcher can hide the built-in MSI GUI during installation.
I am not sure what GUI you have customized?
Error 2814: The error code 2814: "On the dialog [2] the control [3] names a nonexistent control [4] as the next control." - this seems to indicate that a control on your dialog points to a non-existent control as the next one to go to for the TAB order of the dialog. You need to point to a valid control that exists and it should be visible too.
Custom MSI GUI: Making your own MSI GUI is rarely advisable unless you need something very specific and unusual. You can use existing dialog sets and just inject a new dialog (which might be what you have done). Due to the lack of flexibility for MSI dialogs I would recommend that you make a Burn setup.exe GUI if you really need a lot of flexibility. I have not looked at this a great deal.
WiX MSI Dialog Sample: There is a sample, modified WiX MSI dialog set here: https://github.com/glytzhkof/WiXCustomDialog
Links: I have a few links on MSI dialogs and Burn GUI. This is quite overlapping, please just skim and see what makes sense to you:
WIX Installer with modern look and feel
Changing text color to Wix dialogs
Wix default folder dialog
Removing Default dialogs from MSI
Other Links:
A very clever effort from Stefan Kruger to work around the MSI GUI dialog limitations: http://www.installsite.org/pages/en/msi/articles/MultiListBox/index.htm
Dynamically changing RTF content in the EndDialog after success
https://github.com/frederiksen/Classic-WiX-Burn-Theme
How to add image background to custom MSI dialog?

WiX Toolset - Alt Text to the CancelDlg's Icon

I'm trying to make my app accessible (based on WCAG 2.1 guidelines).
I discovered that the default CancelDlg of WiX Toolset, which is the confirmation dialog that pops when the user tries to cancel the installation, is not accessible.
There is a yellow warning icon beside the text, but it has no Alt text or Name.
That makes narrators say "Image" instead of something along the line of "Warning icon" and confuse who is blind.
I didn't find a way to add an Alt text to that dialog that not include creating a custom dialog (which doesn't feel like the right way).
P.S. Using WiX version 3.10.
Any ideas?
Thanks!

Pinned taskbar icon turns to default icon after update using msi file created by WiX

I have a program that is built using a WiX project. When the application is installed the first time, I am able to pin it to the taskbar just fine. When an update is installed, the application still works, but the icon in the taskbar turns into the default icon (the file icon), not my program's icon.
While I go into the pinned icon's shortcut properties and click "Change Icon", it gives an error message stating the path can't be found. The path to the icon looks something like this:
"%SystemRoot%\installer{LONG GUID HERE}\ICON.EXE"
That long guid will change with each update release (and by update, I mean changing from version 4.5.5 to 4.5.6). The GUID corresponds to the Product ID in my Product element of the schema, which will never be the same, and updating doesn't update the icon path for icons pinned to the taskbar.
How do I get the icon pinned to the taskbar to update with future updates?
Also, How can I set the icon path to point to the location of my executable, which is how other programs like Firefox set their icons? Is this available in WiX?
By the way, I was able to solve this issue by removing the Icon element in my Product.wxs file:

FilesInUse cannot be modified and CloseApplications does nothing

I've googled this to death and cannot find a solution that works.
We need to prevent the user from re-installing our app while it's still running. The standard FilesInUse dialog works but it still allows the user to continue while the app is running and we dont want to force them to reboot - ie, they have to shutdown the app manually.
We tried to create a custom FilesInUse dialog:
We include the FilesInUse source and remove the Ignore option
Rename the ID of the dialog
Change the DialogRef in the Mondo UI
Add an suppress for ICE20 because it complains the FilesInUse doesnt exist if we dont do this.
The new dialoag is never used.
If I leave the id of FileInUse unmodified then I get an error about a duplicate dialog.
Ive also tried using utils:CloseApplications but this never does anything.
So: What is the current thinking on how to do this?
Thanks
PS, I love Wix but it does frustrate me at times :) Much like the wife...
Looking to achieve the same thing, I discovered the answer in the related question: Including modified FilesInUse dialog in WIX project.
Remove the DialogRef entry of FilesInUse from the UI file, and replace it with the custom Dialog for FilesInUse directly in the UI file.