Hi all, 

  I want to invoke a powershell script from my installer to setup a AD LDS
database and the script requires a set of input arguments. I dont want to
show the console during installation, so I am using CAQuietExec custom
action. But here, I unable to pass multiple parameters to a powershell
script file. I tried embedding parameters within quotes as shown below but
had no success. 

Any idea what i am missing here? 


    <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="RunPSScript"
Value=""[POWERSHELLEXE]" -ExecutionPolicy RemoteSigned -File
"[INSTALLLOCATION]psscript.ps1" "[INSTALLLOCATION]" "[LDAPPORT]" "[ANSWERS]"
"[USERNAME]" "[DOMAIN]" "[USERLDIF]" "[LOGS]"" /> 

    <CustomAction Id="RunPSScript"  Execute="deferred" BinaryKey="WixCA"
DllEntry="CAQuietExec" Return="check" Impersonate="no"/> 

thanks!





-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CAQuietExec-pass-multiple-parameters-to-script-tp5778264p5778264.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

Reply via email to