InstallShield using xml file for silent install

Hi Team
I’m trying to deploy an app using toolkit V4 which comes with a setup.exe and msi file in the source folder. For silent install an xml file is provided to customize with parameters e.g server name , port etc.. and then run the command setup.exe /v" /qn". although I believe they may have omitted the ?s for silent install by mistake.

I am using PSADT v4 and have tried the following install command
Start-ADTProcess -FilePath "setup.exe" with different ArgumentList permutations:
“/S /v”/qn””
’/S /v`”/qn’”’
’/S /v /qn’
but the application fails to install generating the error below.:

Message               : Execution failed with exit code \[1639\].

FullyQualifiedErrorId : ProcessExitCodeError,Start-ADTProcess
ScriptStackTrace      : at Start-ADTProcess, C:\\WorkDir\\Notr\\PSAppDeployToolkit\\PSAppDeployToolkit.psm1: line 20256
at Install-ADTDeployment, C:\\WorkDir\\Notr\\Invoke-AppDeployToolkit.ps1: line 149
at , C:\\WorkDir\\Notr\\Invoke-AppDeployToolkit.ps1: line 265
at , : line 1

PositionMessage       : At C:\\WorkDir\\Notr\\Invoke-AppDeployToolkit.ps1:149 char:2
+     Start-ADTProcess -FilePath “setup.exe” -ArgumentList '/S /v\`“/qn” …

Be grateful if someone could advise how I could resolve this issue.
Thanks in advance..

I have a post on how to set InstallSheild parameters in PSADT v3. (Not v4…yet)

While the v3 function and parameter names are different, what needs to go in v4’s -ArgumentList is the same as what is shown for -parameters in PSADT v3.

Because of this v3/v4 issue, I’m going to guess:

#To Use " in the log path, InstallShield needs \" but PowerShell needs to escape the " so we end up with \`"
# NOTE: -SMS switch is for InstallShield Setup.exe to suppress error popups if an issue occurs. Otherwise InstallShield will hang
#		waiting for the user to click a OK button that is not displayed because Setup.exe is running as SYSTEM!
Start-ADTProcess -FilePath "setup.exe"  -ArgumentList "/s /v`"ALLUSERS=1 /qn`" -SMS"
1 Like

I tested the App install via the command prompt using setup /v” /qn” and it does install, however those same parameters fails when used in the toolkit, presumably for those double quotes reason you stated above, but I can’t seem to figure out the correct format

Please post the Start-ADTProcess line you are trying to use.
Then you’ll have a bunch of eyes on it.

I’ve tried Start-ADTProcess -FilePath “setup.exe” -ArgumentList ‘/S /v`” /qn`”’ and
Start-ADTProcess -FilePath “setup.exe” -ArgumentList ‘/S /v`”/qn`”’ also
Start-ADTProcess -FilePath “setup.exe” -ArgumentList ’ /v“ /qn"
just trying different options in the argumentlist, all giving error code 1603,.
As stated before the setup.exe, msi and xml files are all located in the Files folder in the toolkit.

I’ve managed to fix the issue by using the following parameter
Start-ADTProcess -FilePath “setup.exe” -ArgumentList ‘/v"/qn`"’

The second escape is not required.

-ArgumentList ‘/v"/qn"‘

Should work fine.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.