Did you add the Execute="immediate" to the CustomAction "PropCA"?

-----Original Message-----
From: wixtester [mailto:sangee...@hotmail.com] 
Sent: Tuesday, December 16, 2014 12:51 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] CustomAction to run powershell script


Thanks for pointing out the missing quote. After fixing that, I am still not 
able to run the ps script. Also, I am now enclosing the quotes around the file 
path like this - -File "C:\Program Files (x86)\XXXX\Bridge
Server\Bridges\Exchange\UpdateIdentity.ps1 " testhub\ericd pwd1 

Why is WixCA not happy with the command? I can manually run the command without 
any errors.


CustomActionSchedule(Action=UpdateIdentityCA,ActionType=3073,Source=BinaryData,Target=CAQuietExec,CustomActionData="C:\Windows\WindowsPowerShell\v1.0\powershell.exe
-Version 2.0 -NoProfile -NonInteractive -InputFormat None -ExecutionPolicy 
Bypass -File "C:\Program Files (x86)\XXXX\Bridge
Server\Bridges\Exchange\UpdateIdentity.ps1 " testhub\ericd pwd1 ) MSI (s) 
(8C:BC) [15:43:22:575]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSI156D.tmp, Entrypoint: CAQuietExec MSI (s) (8C:FC) 
[15:43:22:575]: Generating random cookie.
MSI (s) (8C:FC) [15:43:22:617]: Created Custom Action Server with PID 3620 
(0xE24).
MSI (s) (8C:9C) [15:43:23:663]: Running as a service.
MSI (s) (8C:9C) [15:43:23:696]: Hello, I'm your 32bit Elevated custom action 
server.
CAQuietExec:  Error 0x80070002: Command failed to execute.
CAQuietExec:  Error 0x80070002: CAQuietExec Failed CustomAction 
UpdateIdentityCA returned actual error code 1603 (note this may not be 100% 
accurate if translation happened inside sandbox)


Thanks,
sangeeta




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAction-to-run-powershell-script-tp7598607p7598610.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! 
Instantly Supercharge Your Business Reports and Dashboards with Interactivity, 
Sharing, Native Excel Exports, App Integration & more Get technology previously 
reserved for billion-dollar corporations, FREE 
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to