Execute-Process passing MSI properties Newbie Question

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


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?
Mar 10, 2014 at 3:20 PM

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 2:56 PM
Edited Mar 12, 2014 at 8:52 AM

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!)

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