Thanks!  That solved it.

Jeff

> If you want it to run during the UI you need to sequence it in
> InstallUISequence not InstallExecuteSequence. From that code it's not
> running at the end of installation, it's running at the start of the
> InstallExecuteSequence which is when Windows Installer actually does
> your installation. See ->
> http://msdn.microsoft.com/en-us/library/aa369543.aspx &
> http://msdn.microsoft.com/en-us/library/aa369500.aspx
>
> You should fully test running in basic/none UI modes if you implement
> custom actions like yours in the InstallUISequence & also test your
> uninstall using full & basic/none UI too.
>
>
> Palbinder Sandher
> Software Deployment & IT Administrator
> T: +44 (0) 141 945 8500
> F: +44 (0) 141 945 8501
>
> http://www.iesve.com
> **Design, Simulate + Innovate with the <Virtual Environment>**
> Integrated Environmental Solutions Limited. Registered in Scotland No.
> SC151456
> Registered Office - Helix Building, West Of Scotland Science Park,
> Glasgow G20 0SP
> Email Disclaimer
>
>
> -----Original Message-----
> From: s...@pacaccess.com [mailto:s...@pacaccess.com]
> Sent: 16 March 2010 02:13
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Call custom action at beginning of installation?
>
> I'm new to WiX and am still getting my feet wet.  I've build a custom
> action.  The action runs after the installation has finished, but I'd
> like ti to run at the beginning.  Here's what I currently have:
>
> <Product ...>
>       <Package InstallerVersion="200" Compressed="yes" />
>       <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
>
>       <InstallExecuteSequence>
>               <Custom Action="Action1_CheckIfAppIsRunning"
> Before="InstallInitialize" />
>       </InstallExecuteSequence>
>
>       <Binary Id="Action1_CheckIfAppIsRunning_File"
> SourceFile="CheckIfAppIsRunningCustomAction.CA.dll" />
>
>       <CustomAction
>               Id="Action1_CheckIfAppIsRunning"
>               BinaryKey="Action1_CheckIfAppIsRunning_File"
>               DllEntry="CheckIfAppIsRunning"
>               Impersonate="yes"
>               Execute="immediate"
>               Return="check"
>       />
>
>
>
> The custom action runs fine, just at the wrong time.  Any suggestions as
> to what to do?
>
> Thanks,
>
> Jeff
>
>
> ------------------------------------------------------------------------
> ------
> Download Intel&#174; Parallel Studio Eval Try the new software tools for
> yourself. Speed compiling, find bugs proactively, and fine-tune
> applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to