The general problem with shelling out to the command line type of
program/bat file is that you also shell out the error messages. If you
can write code to do it you can get a real error result. Otherwise
you're guessing like we are now. Assuming that the command is actually
correct and the files are in the expected location, you're running in
immediate mode in the UI sequence so on UAC systems you might be
running limited and unable to access the log file to copy it.
---------------
Phil Wilson


On Wed, Mar 26, 2014 at 5:23 PM, Pavan Konduru
<pavan.kond...@accelrys.com> wrote:
> Or try this:
>
> http://wix.tramontana.co.hu/tutorial/standard-libraries/silence-please
>
> --Pavan
>
> -----Original Message-----
> From: Pavan Konduru [mailto:pavan.kond...@accelrys.com]
> Sent: Wednesday, March 26, 2014 5:15 PM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] Custom action from ControlEvent fails
>
> You should probably use CAQuietExec rather than ExeCommand, that way the cmd 
> window doesn't pop-up during installation.
> This is how I run batch commands in my installer:
>
> <CustomAction Id="RunPostBatTask" BinaryKey="WixCA" DllEntry="CAQuietExec" 
> Execute="deferred" Return="ignore" Impersonate="no"/>
>     <CustomAction Id="RunPostBatTask_Cmd" Property="RunPostBatTask"
>                   Value="&quot;[SystemFolder]cmd.exe&quot; /C 
> &quot;[INSTALLLOCATION]Server\bin\post-install.bat&quot;"
>                   Execute="immediate"
>                   />
>
> You would have to call 2 custom actions though in the control element.
>
> --Pavan
>
> -----Original Message-----
> From: wixard [mailto:amit.mo...@citrix.com]
> Sent: Wednesday, March 26, 2014 3:51 PM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Custom action from ControlEvent fails
>
> Thanks Pavan.
> "Execute" is set to "immediate" if not specified. I explicitly set it to 
> "immediate". Still get the same error. Setting to "deferred" generates the
> error:
> DEBUG: Error 2762:  Unable to schedule operation. The action must be 
> scheduled between InstallInitialize and InstallFinalize.
>
>
>
>
> --
> View this message in context: 
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-action-from-ControlEvent-fails-tp7593782p7593785.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to