Clarification: CAs need to be scheduled in InstallUISequence and Execute attribute should be set to "immediate".
-----Original Message----- From: Alex Shevchuk [mailto:shevc...@live.com] Sent: Monday, July 20, 2009 2:24 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to sequence VBScript a in-script custom action Hi Jirong, Schedule custom CAs in InstallUISequence. Regarding ICE warning - it looks like setting Execute attribute to "firstSequence" also adds behind the scene deferred (msidbCustomActionTypeInScript) flag as well. You can verify it be checking the value of Type column in CustomAction table. If that's the case, it does not present problem for you because you need these CAs in UI phase only anyway, but that might create problem in other cases when somebody might want immediate/firstSequence custom action. Regards, Alex -----Original Message----- From: Jirong Hu [mailto:jirong...@gov.ab.ca] Sent: Monday, July 20, 2009 1:24 PM To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users] How to sequence VBScript a in-script custom action I want to modify the msi table (update the ComboBox) during the installation, using the approach found here: http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg20032.html The CustomAction is written in VBScript, now I don't know how to sequence the CustomAction. I put as below, but got an error. If I queue it after InstallInitialize, it's too late, the Dialog contains the ComboBox is already created. I have to update the msi database before Welcome/any dialog is created, right? <Binary Id="GetSitesBin" SourceFile="C:\Dev\DisplaySite\GetSites.vbs" /> <CustomAction Id="caGetWebSites" BinaryKey="GetSitesBin" VBScriptCall="GetSites" Execute="firstSequence" Return="check" /> <Binary Id="DisplaySitesBin" SourceFile="C:\Dev\DisplaySite\DisplaySites.vbs" /> <CustomAction Id="caDisplayWebSites" BinaryKey="DisplaySitesBin" VBScriptCall="GetSites" Execute="firstSequence" Return="check" /> <InstallExecuteSequence> <Custom Action="caGetWebSites" Before="CostFinalize">Not Installed</Custom> <Custom Action="caDisplayWebSites" After="CostFinalize">Not Installed</Custom> </InstallExecuteSequence> C:\Dev\DisplaySite\Install.wxs(29) : error LGHT0204 : ICE77: caGetWebSites is a in-script custom act ion. It must be sequenced in between the InstallInitialize action and the InstallFinalize action in the InstallExecuteSequence table C:\Dev\DisplaySite\Install.wxs(30) : error LGHT0204 : ICE77: caDisplayWebSites is a in-script custom action. It must be sequenced in between the InstallInitialize action and the InstallFinalize actio n in the InstallExecuteSequence table Thanks Jirong Hu Build Master 780-644-5488 This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. ---------------------------------------------------------------------------- -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users