I want to pass something similar to the below
"&{$xml = [xml] $(get-content C:\temp\test.xml); $xml.Root.Element1=
'c:\newpath; $xml.Root.Element1; $xml.save('C:\temp\test.xml');}" as a
single line parameter to powershell as a custom action.
I tried defining a variable
<?define PShellCmd=""&{$xml = [xml] $(get-content C:\temp\test.xml);
$xml.Root.OCSTracePath = 'c:\ttttt'; $xml.Root.OCSTracePath;
$xml.save('C:\temp\test.xml');}"" ?>
still it parses my strings as command. How do i pass a special symbols as
strings / parameter in custom actions ?
Thanks,
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Action-run-powershell-with-complex-parameters-tp5512798p5512798.html
Sent from the wix-devs mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs