Hello,
I have been trying to create what should be a really simple powershell command from this current cmd line command:
C:\Install\PkgSrc\ExPutty\3.0\Scripts\setup.vbs inst=4
This command will run the setup.vbs, with the inst=4 switch making the .vbs uninstall the ExPutty program.
I can't get the inst=4 switch to work in powershell.
I have tried:
param ([string]$value1 = 'inst=4') cmd.exe /c C:\Install\PkgSrc\ExPutty\3.0\Scripts\setup.vbs $value1
The setup.vbs ran, but didn't uninstall the program. I then tried the following:
cscript C:\Install\PkgSrc\ExPutty\3.0\Scripts\setup.vbs inst=4
This also ran without error, but it didn't uninstall the program. I just need to pass this static inst=4 switch to the .vbs program, but am not sure what I am doing wrong. I was reading about wscript as well, but that seemed like overkill for
this non changing switch I am trying to pass.
Thanks, Eli