Execute-Process passing MSI properties Newbie Question

Topics: Archive - General
Mar 10, 2014 at 10:17 AM
Hi,
I am trying to do a silent install of Pinnacle Studio 17.
Using the old cmd command line this works:

setup.exe /v"PTY_SERIAL=XXXXX-YYYYY-XXXXX-XXXXX-XXXXX /qb" /L1053

But i can not get the PTY_SERIAL="XXX-XXX-XXX-XXX" part to work when using the toolkit.

Execute-Process -FilePath "$dirFiles\Studio\setup.exe" -Arguments "/v PTY_SERIAL=XXXXX-YYYYY-FFFFF-AAAAA-XXXXX /qb /L1053" -WindowStyle Hiden

How do i define the MSI properties? I guess there are some"" or '' i am missing somewhere?
Coordinator
Mar 10, 2014 at 2:20 PM
Hi.

To open quotes inside quotes, prefix the quote (") with an apostraphe ('). So your line should look as follows:
Execute-Process -FilePath "$dirFiles\Studio\setup.exe" -Arguments "/v'"PTY_SERIAL=XXXXX-YYYYY-FFFFF-AAAAA-XXXXX /qb'" /L1053" -WindowStyle Hiden 
Hope this helps. Dan
Mar 11, 2014 at 1:56 PM
Edited Mar 12, 2014 at 7:52 AM
Hi,

Now it works!
The escape character was requiered.
Execute-Process -FilePath "$dirFiles\Studio\setup.exe" -Arguments "/S /v`"PTY_SERIAL=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /qb`" /L1053" -WindowStyle Hidden
Thanks for the help. (And the great toolkit!)

Stelu.
Marked as answer by SteLu on 3/12/2014 at 12:52 AM