Hi, we are running an Inline Powershell Script and passing in parameters, but when a user passes in empty parameters on the command line the values are
munged together in an unusual way.
Command:
Code: Select all
msiexec.exe /i installer.msi /qn HP_URL="" IDS="123456"
Powershell Inline Script:
Code: Select all
Parameter values:
-cfPath "[APPDIR]/Config.json" -tkURL [TK_URL] -hpURL [HP_URL] -ids [IDS]
Params (cfPath and tkURL are calculated from other scripts): :
Code: Select all
Param($cfPath , $tkURL , $hpURL , $ids )
$hpURL = "IDS=123456" <-- This has been munged together
$ids = ""
However if HP_URL is provided a value other then empty string it works fine.