Right you are! I added the Impersonate='no' and the error 5 issues went 
away! Thank you! :)

On 3/1/2013 7:46 PM, Rob Mensching wrote:
> Two things:
> 1. Running batch files is generally frowned upon. <smile/>
> 2. That said, I think you need to add Impersonate='no'.
> Bonus: commit actions are kinda' special. Are you sure you don't want 
> to just run the action deferred and really late in the sequence instead?
>
>
> On Fri, Mar 1, 2013 at 9:02 AM, Vern Graner <v...@txis.com 
> <mailto:v...@txis.com>> wrote:
>
>     I was wondering if someone might be able to point me in the right
>     direction here-
>
>     I have a Custom Action that triggers a small batch file to update
>     a log
>     file when the MSI completes. Here's the WiX source snippet:
>
>     <CustomAction Id="RunLogUpdate"
>                    Directory="Workstation_1"
>                   ExeCommand="cmd.exe /c
>     &quot;[Workstation_1]LogUpdate.bat&quot;"
>                       Return="ignore"
>                      Execute="commit" />
>
>     This has worked well for me on my Windows XP machines and on Windows 7
>     machines - with the UAC disabled.
>
>     However, recently one of my customers noted these batch-file created
>     logs on his systems were not getting updated. Looking a bit deeper we
>     saw the log file was getting "Error 5 -access denied" when it is
>     invoked
>     by the MSI on a machine where UAC is enabled.
>
>     Based on this observation, I am theorizing that, though the MSI itself
>     has sufficient rights to perform its actions, it is *not* endowing the
>     child process (the batch file) with the same permission levels. :(
>
>     If this is the case, is there a way to make sure the spawned
>     script runs
>     with the same permissions as the MSI?
>
>     TIA!
>
>     Vern
>
>     --
>     Vern Graner CNE/CNA/SSE    | "If the network is down, then you're
>     Senior Systems Engineer    | obviously incompetent so why are we
>     Texas Information Services | paying you? Of course, if the network
>     http://www.txis.com        | is up, then we obviously don't need
>     Austin Office 512 328-8947 <tel:512%20328-8947> | you, so why are
>     we paying you?" ©VLG
>
>     
> ------------------------------------------------------------------------------
>     Everyone hates slow websites. So do we.
>     Make your web apps faster with AppDynamics
>     Download AppDynamics Lite for free today:
>     http://p.sf.net/sfu/appdyn_d2d_feb
>     _______________________________________________
>     WiX-users mailing list
>     WiX-users@lists.sourceforge.net
>     <mailto:WiX-users@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wix-users
>
>

-- 
Vern Graner CNE/CNA/SSE    | "If the network is down, then you're
Senior Systems Engineer    | obviously incompetent so why are we
Texas Information Services | paying you? Of course, if the network
http://www.txis.com        | is up, then we obviously don't need
Austin Office 512 328-8947 | you, so why are we paying you?" ©VLG

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to