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