2

I am new to Wix. My project uses the WixUI_Mode of InstallDir. I want the completion dialog to say "Installation completed" instead of "Installation successfully completed" . Is there a way to do that ?

Som Bhattacharyya
  • 3,972
  • 35
  • 54

1 Answers1

6

Is there a way to do that ?

Yes it is.

The WiX toolset defines the dialogs with XML. You can customize the GUI. But if you just want change a string you can add a .wxl file to your project:

<WixLocalization Culture="en-US" Codepage="1252" xmlns="http://schemas.microsoft.com/wix/2006/localization">
  <String Id="Error1707" Overridable="yes">Installation completed successfully.</String>
</WixLocalization>

Remove the completed as you like.

This overrides the localization that you find in %WIX%\SDK\wixui.


Edit: The Error32 identifier is not very obvious responsible for the string in that dialog. You find all strings in the file WixUI_en-us.wxl in the cited folder.
harper
  • 13,345
  • 8
  • 56
  • 105
  • Thank you . Can you please elaborate on how the error 32 is being mapped here ? please and thank you again. – Som Bhattacharyya Jul 11 '17 at 07:39
  • 1
    If you use a VS wixproj add the code in my answer to a .wxl file in your project, e.g. `theFile.wxl`. If you compile at the command line then you have also to specify the `-loc theFile.wxl` parameter. – harper Jul 11 '17 at 09:33
  • Yes i added the .wxl file to my VB wix project and rebuild the installer. I also checked that in 3.10 the Error1707 maps to this string so i changed that too. – Som Bhattacharyya Jul 11 '17 at 09:44
  • i am still not sure actually. I dont see any effect of the changes i made on the wxl on my installer. Do i need to do anything else ? – Som Bhattacharyya Jul 11 '17 at 10:14