I’m trying to setup a base level .exe and .msi scripts then define $arguments using parameters. This way we can just use the same two scripts for almost everything we need then just modify the parameters in the deployment with what the $argument field should be.
Example install script " $Process = Start-Process $InstallerFile -ArgumentList $arguments -PassThru -Wait"
I wanted to take it a step further and setup parameters to highlight the parts of the $argument that need changing, then build the $argument in a hidden parameter
Example:
Using just an ‘argument’ parameter the field would have “/silent Token=1234567890 Server=192.168.1.1 Protocol=HTTPS”
What i would like to have is :
Parameter: tokenkey
Value: 1234567890
Parameter: server
Value: 192.168.1.1
Parameter: arguments
Value: “/silent Token=$tokenkey Server=$server Protocol=HTTPS”
Property: Hidden
While doing the debugging, when i write-host $arguments i get “/silent Token= Server= Protocol=HTTPS” but if I write-host $tokenkey and $server i get the proper values “1234567890” and “192.168.1.1.”