Trying to figure out quotes for parameters, example isn't helping.

//Trying to figure out quotes for parameters, example isn't helping.
Trying to figure out quotes for parameters, example isn't helping.2016-01-08T23:45:26+00:00

The Toolkit Forums General Trying to figure out quotes for parameters, example isn't helping.

  • Author
    Posts
  • Digital
    Participant
    Post 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* \“$configToolkitLogDir\$installName.log`””

    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

    • This topic was modified 2 years, 6 months ago by  Digital.
    • This topic was modified 2 years, 6 months ago by  Digital.
  • Brian
    Participant
    Post 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&quot;ALLUSERS=1 /qn /L*"$configToolkitLogDir\$installName.log&quot;""

    Anytime you want to pass a quote mark, prefix it with a tick mark.

    • This reply was modified 2 years, 6 months ago by  Brian. Reason: Code tag didn't work
    • This reply was modified 2 years, 6 months ago by  Brian.
  • Brian
    Participant
    Post count: 42

    View post on imgur.com

    <script async src=”//s.imgur.com/min/embed.js” charset=”utf-8″></script>

  • Muhammad Mashwani
    Keymaster
    Post 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>
  • Digital
    Participant
    Post count: 2

    thanks sorry for delay couldn’t find my own thread, lol

You must be logged in to reply to this topic.