Check the archives for this list. There were a series of messages earlier
this month about powershell not exiting when competing a script when called
in a custom action. I don't remember the resolution.

-----Original Message-----
From: wixNewbie [mailto:[email protected]] 
Sent: Friday, November 26, 2010 4:57 PM
To: [email protected]
Subject: [WiX-users] CAQuietExec hangs when running powershell script


Hi,

   CAQuietExec seems to hang when running a powershell script and does not
exit out of the custom action. How can I exit out of the custom action after
the script completes execution?
 Here is my custom action 

    <Property Id="POWERSHELLEXE">
      <RegistrySearch Id="POWERSHELLEXE" Root="HKLM"
Key="SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell"
Name="Path" Type="raw" />
    </Property>
    <CustomAction Id="CACmdLine"  Property="RunScript" Execute="immediate"
Return="check" Value="&quot;[POWERSHELLEXE]&quot; -ExecutionPolicy
RemoteSigned -File &quot;[INSTALLDIR]Setup.ps1&quot;
&quot;[INSTALLDIR]|[PORT]|[ANSWERS]|[USERNAME]|[DOMAIN]|[USERLDIF]|[LOGS]&qu
ot;"
/>    
    <CustomAction Id="RunPSScript"  Execute="deferred" BinaryKey="WixCA"
DllEntry="CAQuietExec" Return="check" Impersonate="yes"/>

thanks.


-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CAQuietExec-ha
ngs-when-running-powershell-script-tp5778807p5778807.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to