Silent Install asks for input (InstallShield Quotes issue)

This wont work in CMD.EXE because of the double quotes around Servername. (InstallShield gets confused):
HPDisplayService_v1.1.10.exe /s /v"/qn HPSERVER="Servername" SECURECONN=0"

This WILL work in CMD but NOT PowerShell (or PSADT):
HPDisplayService_v1.1.10.exe /s /v"/qn HPSERVER=\"Servername\" SECURECONN=0"

This WILL work in PowerShell but you will not get logging or error handling of PSADT:
HPDisplayService_v1.1.10.exe /s /v"/qn HPSERVER=\“Servername`” SECURECONN=0"`

This will work in PSADT:

Execute-Process -Path "$dirFiles\HPDisplayService_v1.1.10.exe" -Parameters "/s /v`"/qn HPSERVER=\`"Servername\`" SECURECONN=0`""

This will also work in PSADT and tell InstallShield to create a log file:

Execute-Process -Path "$dirFiles\HPDisplayService_v1.1.10.exe" -Parameters "/s /v`"ALLUSERS=1 /qn /L* \`"$configToolkitLogDir\HPDisplayService_v1.1.10.log\`"`""

And this tries to explain how all the escaping quotes non-sense:

3 Likes