DigitalParticipantJanuary 8, 2016 at 11:44 pmPost count: 2
In Example 5 of PSAppDeploymentToolkitAdminGuide.docx there’s an example I’m having trouble following for replicating to deploy one of my own applications:
Execute-Process -Path ‘setup.exe’ -Parameters “/s /v”ALLUSERS=1 /qn /L* \”$configToolkitLogDir\$installName.log`””
Launch InstallShield “setup.exe” with embedded MSI and force log files to the logging folder.
I tried putting it in Notepad++ but is greys out all text below it.
It seems there is a quote or something missing from the example?
Execute-Process -Path 'setup.exe' -Parameters "/s /v“ALLUSERS=1 /qn /L*
I need a good example because I have a setup.exe that uses the following parameters in a .cmd file:
Setup.exe /S /v”/qn REBOOT=”ReallySuppress” /L*v \”C:\app.log\” SETUPFILE=\”\\Sccm.domain.com\source$\Packages\software\parameters.dat\”
but i’m not sure what quotes go where. it works fine in a .cmd file, but not appended to the -parameters part of the execute-process cmdlet
BrianParticipantJanuary 9, 2016 at 2:44 amPost count: 42
Would be something like this:
<pre class=”brush: text; gutter: true; first-line: 1; highlight: ; html-script: false”>Execute-Process -Path "setup.exe" -Parameters "/s /v
"ALLUSERS=1 /qn /L*"$configToolkitLogDir\$installName.log
Anytime you want to pass a quote mark, prefix it with a tick mark.
Muhammad MashwaniKeymasterJanuary 9, 2016 at 3:04 amPost count: 118
Thanks for reporting that. I updated the incorrect example in the documentation and the comments for the function.
Execute-Process -Path 'setup.exe' -Parameters "/s /v
"ALLUSERS=1 /qn /L* \"$configToolkitLogDir\$installName.log
""" < \pre>
You must be logged in to reply to this topic.