The error tells you exactly what you are doing wrong. It says you must schedule the custom action *between* InstallInitialize and InstallFinalize. You are scheduling them *after* InstallFinalize.
Edwin G. Castro Software Developer - Staff Electronic Banking Services Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com Please consider the environment before printing this e-mail > -----Original Message----- > From: Vasu Chakkera [mailto:vas...@gmail.com] > Sent: Thursday, November 04, 2010 8:46 AM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Running Third Party Installer as a part of installation > > Dear All, > I am new to WIX and trying certain things.. I have successfully finished > writing > an installer that does most of the things.. > I now have a situation where as a part of installation , i need to check the > presence of MathPlayer.exe in the system, and if it doesnt exist, then i need > to install the Mathplayer.exe > > i also have another H2Reg.exe that i need to run anyway everytime with - u > command while installing and the same exe should be run with -r command > while un installing.. It all worked fine with wix 2.0 .. > > I am using wix3.0 now. > > I tried this > > > <CustomAction Id="MATHPLAYEREXECUSTOM" Return="check" > Execute="deferred" FileKey="file_MathPlayerSetupexe" > ExeCommand="/Install"/> > <CustomAction Id="H2REGCUSTOMINSTALL" Return="check" > Execute="deferred" FileKey="file_H2Regexe" ExeCommand="-r"/> > <CustomAction Id="H2REGCUSTOMUNINSTALL" Return="check" > Execute="deferred" FileKey="file_H2Regexe" ExeCommand="-u"/> > <!-- <CustomAction Id="LaunchApplication" FileKey="FoobarEXE" > ExeCommand="" Execute="immediate" Impersonate="yes" > Return="asyncNoWait"></CustomAction>--> > <CustomAction Id="LAUNCHREADMECUSTOM" Property="NOTEPAD" > ExeCommand="[INSTALLDIR]\Readme.txt" Execute="deferred" > Return="asyncNoWait"></CustomAction> > > > > <InstallExecuteSequence> > > <Custom Action="MATHPLAYEREXECUSTOM" > After="InstallFinalize">(not MATHPLAYERFOUND) AND INSTALLMATHPLAYER > AND $comp_MathPlayerSetupexe>2</Custom> > <Custom Action="H2REGCUSTOMINSTALL" > After="InstallFinalize"> $comp_H2Regexe>2 AND ( ( SEARCHFORVS7) OR > (SEARCHFORVS8) OR (SEARCHFORVS9) ) </Custom> > <Custom Action="H2REGCUSTOMUNINSTALL" > After="InstallFinalize"> $comp_H2Regexe=2 AND ( ( SEARCHFORVS7) OR > (SEARCHFORVS8) OR (SEARCHFORVS9) ) </Custom> > > > <RemoveExistingProducts After="InstallFinalize"/> > </InstallExecuteSequence> > > > > I ran and got the following error > > C:\Installer.wxs(1462) : error LGHT0204 : ICE77: MATHPLAYEREXECUSTOM is a > in-script custom action. It must be sequenced in between the > InstallInitialize > action and the InstallFinalize action in the InstallExecuteSequence table > C:\Installer.wxs(1463) : error LGHT0204 : ICE77: H2REGCUSTOMINSTALL is a > in-script custom action. It must be sequenced in between the > InstallInitialize > action and the InstallFinalize action in the InstallExecuteSequence table > C:\Installer.wxs(1464) : error LGHT0204 : ICE77: H2REGCUSTOMUNINSTALL is > a in-script custom action. It must be sequenced in between the > InstallInitialize action and the InstallFinalize action in the > InstallExecuteSequence table > > > > > > any pointers or help regarding this will be highly appreciated. thanks ]Vasu[ > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a Billion" > shares his insights and actions to help propel your business during the next > growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users