Phantom Shockwave Installs

Comments

7 comments

  • TonsOFun

    Hi John, 

    You'll need to save the powershell commands as .ps1 then call the .ps1 file within the batch file. (Powershell.exe -)

    Maybe someone else will chime in, but i'm not sure if you can use a ps1 directly from PDQDeploy. 

    Source: http://social.technet.microsoft.com/Forums/systemcenter/en-US/33d0ee92-2c1d-4f2d-a656-834877de565d/how-do-run-powershell-from-a-batchfile

    0
    Comment actions Permalink
  • John Wood

    Thanks TonsOFun.  I've actually done this in my own setting here to make it easy bring up powershell scripts.  I guess I was more curious on if you could use a ps1 directly from pdqDeploy (Perhaps if you ran something like this as a command: "powershell.exe -ExecutionPolicy Unrestricted Start-Process "$psHome\powershell.exe" -Verb Runas '-file c:\scripts\myscript.ps1"')

    0
    Comment actions Permalink
  • John Wood

    But back to my original question - how would you get rid of those phantom installs?  Delete registry keys?  Do most of you do an uninstall before an install?  It appears that Shockwave 12.0.3.133 installs without removing 12.0.2.122 also.  Is there a way to verify duplicate installs with the same name?  because in my cause it is showing multiple versions, but I think only the highest version is valid.

     

    0
    Comment actions Permalink
  • Shane Corellian

    John, yes, delete the offending registry entry. You can deploy a powershell script directly from PDQ Deploy. Use an Install step and select the .ps1 file as your Install File. (see attachment)

    If your script needs to run any arguments (parameters) place them in the Parameters field and they will automatically be appended to the Command Line.

    CallPowershellScriptDeploy.png

    0
    Comment actions Permalink
  • John Wood

    Shane, wonderful to know, thanks!

     

    0
    Comment actions Permalink
  • Lex Hansen

    I made a video to show the different types of files and installers that you can use/deploy in an install step.Check it out!!

    http://www.youtube.com/watch?v=xinwVm6qu9A

     

    0
    Comment actions Permalink
  • John Wood

    Thanks Lex!

    0
    Comment actions Permalink

Please sign in to leave a comment.