http://www.joyofsetup.com/2007/07/01/semi-custom-actions/
Why are you copying the files that the patch will be replacing? MSI already
does that for you.
> From: jacob.hoo...@greenheck.com
> To: srinu_...@yahoo.com; wix-users@lists.sourceforge.net
> Date: Fri, 19 Jul 2013 14:34:07 +0000
> Subject: Re: [WiX-users] Cannot install the patch by double clicking on msp
>
> One option would be to use an immediate custom action that copies the
> existing files to the temp folder, and then a semi-custom action which copies
> those files to your "backup folder".
>
> -----Original Message-----
> From: Srinu ..., [mailto:srinu_...@yahoo.com]
> Sent: Friday, July 19, 2013 9:29 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Cannot install the patch by double clicking on msp
>
> Hi Blair,
> Issue resolved by changing the customaction to diferred and return=ignore.
> Thank you very much for help.
> And I have a doubt regarding CopyFile. If I use copy file element then it
> copying the patch files instead of copying base file because my base files
> was overiden by patch files before calling this copyfile element.
> Can you please let me know how to execute copyfile before InstallFiles. I
> tried to use different components one for installing patch file and another
> for copying base file, but still not resolved.
> I never heard about semi-custom action, if possible could you please share
> any links. It would be very helpfull to learn more about the tool.
> Regards,
> Srinu.
>
> ________________________________
> From: Blair Murri <os...@live.com>
> To: "wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>
> Sent: Friday, 19 July 2013 2:38 AM
> Subject: Re: [WiX-users] Cannot install the patch by double clicking on msp
>
>
> Look in your log. It will reveal all.
>
> I assume one of two things has happened: 1) the folder you are copying to
> requires admin rights, which immediate actions only have if you launch the
> MSP already elevated (which doesn't happen when double-clicking with UAC
> turned on), or 2) that folder doesn't actually exist yet, because it is
> created when the deferred actions are run (and you are attempting to copy the
> "base" files while the deferred script is still being written).
>
> Either way this is further proof that immediate actions are not supposed to
> ever be used to change machine state.
>
> Since you seem to be intent on writing a custom action: change that action to
> add rows to the MoveFile table (search for "semi-custom action" from Bob's
> blog). Or much better yet, see if WiX's CopyFile element will do the trick
> and you eliminate the custom action all together.
>
> Blair
>
> Date: Fri, 19 Jul 2013 02:52:56 +0800
> From: srinu_...@yahoo.com
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Cannot install the patch by double clicking on msp
>
> Hi,
>
> Installing the patch from a cmd prompt (or explorer) that has been started
> with admin rights however succeeds(there is no Run As Administrator from the
> context menu). But while double clicking the .msp throwing the
> exception(attached) and install get abort.
>
> For more information:
> The exception is because of failing my C# custom action(CopyBinFiles) which
> is execute as Immediate, return check and sequenced after PublishingProduct.
> The script behind the custom action is just copying the existing Base
> files(.msi files) into the newfolder for backup. And it has only one public
> property INSTALLDIR which is secured.
>
> Please let me know if any one have idea about this issue(why double click is
> not working even though I am admin on the machine).
>
> Regards,
> Srini
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users