I'm trying to execute a powershell script as custom action and I see the 
powershell.exe process starts but then it appears to be doing nothing. Here's 
an example:

<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="CACmd" 
Value="&quot;[POWERSHELLEXE]&quot; -Command Get-Location" />
<CustomAction Id="CACmd" BinaryKey="WixCA" DllEntry="CAQuietExec" 
Return="check" Execute="deferred" />

<InstallExecuteSequence>
      <Custom Action="CACmdLine" Before="ProcessComponents">Installed AND NOT 
REINSTALL</Custom>
      <Custom Action="CACmd" After="CACmdLine">Installed AND NOT 
REINSTALL</Custom>
</InstallExecuteSequence>

I would expect powershell to print a value to its console and exit quickly. 
Instead, powershell.exe appears to hang until terminated manually. Am I doing 
something wrong?

--
Edwin
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to