In this case, using Before="InstallFinalize" will probably work.
Another option might be Execute="Immediate" and schedule 
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 4:14 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Running Third Party Installer as a part of
> installation
> 
> Custom Action MathPLay runs the Mathplayer.EXE from the design science
> 
> These can be installed anytime.. really  it could be after all the
> files are
> installed.
> 
> but i shall dig more into this , google probably
> 
> Vasu
> 
> 
> On 4 November 2010 22:37, Castro, Edwin G. (Hillsboro) <
> edwin.cas...@fiserv.com> wrote:
> 
> > Notice that the following CustomAction elements all have an After
> attribute
> > set to InstallFinalize.
> > You'll need to choose an appropriate point in the
> InstallExecuteSequence
> > between InstallInitialize and InstallFinalize.
> > Then you can use the After or Before attribute to specify when to run
> them.
> > I can't give more detailed advice without knowing what these custom
> actions
> > do nor when it is appropriate to run them.
> >
> > > > >            <InstallExecuteSequence>
> > > >
> > > > >                   <Custom Action="MATHPLAYEREXECUSTOM"
> > > > > After="InstallFinalize">(not MATHPLAYERFOUND) AND
> > > INSTALLMATHPLAYER
> > > > > AND $comp_MathPlayerSetupexe&gt;2</Custom>
> > > > >                   <Custom Action="H2REGCUSTOMINSTALL"
> > > > > After="InstallFinalize"> $comp_H2Regexe&gt;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>
> >
> > 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 1:41 PM
> > > To: General discussion for Windows Installer XML toolset.
> > > Subject: Re: [WiX-users] Running Third Party Installer as a part of
> > installation
> > >
> > > So assuming that I am a newby in this, please could you tell me
> what i
> > need
> > > to change in the code?
> > > Thanks
> > > Vasu
> > >
> > > On 4 November 2010 16:56, Castro, Edwin G. (Hillsboro) <
> > > edwin.cas...@fiserv.com> wrote:
> > >
> > > > 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
> > > > P 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&gt;2</Custom>
> > > > >                   <Custom Action="H2REGCUSTOMINSTALL"
> > > > > After="InstallFinalize"> $comp_H2Regexe&gt;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
> > > >
> > >
> > >
> > >
> > > --
> > > Vasu Chakkera
> > > Numerical Algorithms Group Ltd.
> > > Oxford
> > > www.vasucv.com
> > >
> > ---------------------------------------------------------------------
> ---------
> > > 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
> >
> 
> 
> 
> --
> Vasu Chakkera
> Numerical Algorithms Group Ltd.
> Oxford
> www.vasucv.com
> -----------------------------------------------------------------------
> -------
> 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

Reply via email to