I'm hitting some issues with localization. I created error 25001 as follows and called MsiProcessMessage from a custom action:
<UI> <Error Id="25001">"!(loc.Error_25001)"</Error> </UI> And created a file named wix_eng.wxl with the following content <?xml version="1.0" encoding="utf-8"?> <WixLocalization Culture="en-US" Codepage="1252" xmlns=" http://schemas.microsoft.com/wix/2006/localization" > <String Id="Error_25001" Overridable="yes">English - Error string 25001</String> </WixLocalization> Linked the wxl using light.exe -nologo -v -w1 -wx EP.wixobj wixui.wixlib -loc WixUI_en-us.wxl -loc ..\Package\wix_eng.wxl -out EP_English.msi Now when I run EP_English.msi, I get a message window as expected, but the error text displayed in it is !(loc.Error_25001) instead of the expected localized string. I tried following the steps mentioned in this site for localization, but I'm not sure why it is not working... http://www.tramontana.co.hu/wix/lesson2.php#2.6. How do I show localized custom error messages using MsiProcessMessage? Can you please help me with this? Thanks, Pratap. On Fri, Jun 4, 2010 at 10:46 AM, Blair <os...@live.com> wrote: > To use your new error 25001 you need to call (something in your custom > action that will eventually call) MsiProcessMessage passing it the > INSTALLMESSAGE_ERROR value and a record that includes your error number as > described in the page http://msdn.microsoft.com/library/aa371614.aspx. > > The custom action itself shouldn't return 25001. It should return the > documented return values for the type of custom action you created. > > -----Original Message----- > From: Pratapa Reddy Sanaga [mailto:pratap.san...@gmail.com] > Sent: Friday, June 04, 2010 10:28 AM > To: General discussion for Windows Installer XML toolset.; Pratap Sanaga > Subject: Re: [WiX-users] End dialog UI > > Thanks Nick! > > I want to end the installation(in case of failure) with a custom message > like "Installation failed with 0x80240437. Please check that your system > clock is showing the correct time and retry installation again." > > I created a localizable error table with error code 25001 for the above > message. I'm not able to figure out how to link this custom error 25001 to > the MSI UI so that the message pops up on the UI. > > This link http://msdn.microsoft.com/en-us/library/aa368554(VS.85).aspx, > talks about 25000 to 30000 error codes for authors of custom actions. So, > if > I return a specific 25001 error from my custom action that fails the > installation, what more should I do for the corresponding message to show > up > in the UI? > > Thanks, > Pratap. > > On Fri, May 21, 2010 at 2:47 PM, Nick Ramirez <nickra...@hotmail.com> > wrote: > > > > > You could get the WixUI_Minimal.wxs file from the WiX source code, save > it > > to > > your project under a different name, like "CustomWixUI_Minimal.wxs". Open > > it > > up and change the UI element's Id to "CustomWixUI_Minimal". > > > > <UI Id="CustomWixUI_Minimal"> > > > > Add a UIRef element to your main .wxs file with an Id that matches. > > > > <UIRef Id="CustomWixUI_Minimal" /> > > > > Going back to CustomWixUI_Minimal.wxs, comment out the Welcome dialog. > > > > <!--<DialogRef Id="WelcomeEulaDlg" />--> > > > > That should just leave you with the dialogs that show the progress bar, > the > > message at the end and handle any errors. > > > > <DialogRef Id="ErrorDlg" /> > > <DialogRef Id="FatalError" /> > > <DialogRef Id="FilesInUse" /> > > <DialogRef Id="MsiRMFilesInUse" /> > > <DialogRef Id="PrepareDlg" /> > > <DialogRef Id="ProgressDlg" /> > > <DialogRef Id="ResumeDlg" /> > > <DialogRef Id="UserExit" /> > > > > > > > > psanaga wrote: > > > > > > I'm trying to find out which UI library would be most suitable for my > > > project. Currently I use LimitUI property in the wix file and with this > > > property, I don't get an end dialog which informs the user about > > > success/failure of the installation. I want to add another modal dialog > > > which would inform the user about success or failure and also a help > text > > > to > > > the user in case of a failure. > > > > > > I tried using WixUI_Minimal dialog library, but it has lot of > unnecessary > > > dialogs that I don't need(start and license screens). I just want a > > simple > > > UI with which the user wouldn't have to interact at all, except for the > > > end > > > dialog. How can I do this? > > > > > > Thanks, > > > Pratap. > > > > > > > > > -- > > > Vote for loksatta = vote for a better future > > > > > > > ---------------------------------------------------------------------------- > -- > > > > > > _______________________________________________ > > > WiX-users mailing list > > > WiX-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > > > > -- > > View this message in context: > > > > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/End-dialog-UI- > tp5085685p5086435.html > > Sent from the wix-users mailing list archive at Nabble.com. > > > > > > > > ---------------------------------------------------------------------------- > -- > > > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > -- > Vote for loksatta = vote for a better future > > ---------------------------------------------------------------------------- > -- > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Vote for loksatta = vote for a better future ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users