chocolatey / chocolatey/choco

Passing the /s /v"MSI Parameters" To Setup.exe with --params

Open
#2,415 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

I am currently having an issue with trying to pass parameters over to an InstallShield setup.exe
Here is my script:
NOTE: First part of script downloads a zip file and extracts to c:\Software

$packageArgs = @{
packageName = 'isspackage'
softwareName = 'Install Shield Package'
fileType = 'exe'
file64 = "C:\Software\isspackage\setup.exe"
silentArgs = "/s /v"
validExitCodes = @(0, 3010, 1641)
}

$additionalArgs = Get-PackageParameters
if($additionalArgs['SETUPTYPE']) {
$packageArgs['silentArgs'] += " SETUPTYPE=$($additionalArgs['SETUPTYPE'])"
}

Install-ChocolateyPackage @packageArgs

So trying to do this:
choco install isspackage --params "/SETUPTYPE=Scanning" -y

The install returns back as successful, but I never even see setup.exe load.
So I know I am missing something.
Any Ideas?

Contributor guide

Open the contributing guide

Research direction

Start with the package script's file64 and silentArgs values, then compare the generated command line with the InstallShield setup.exe parameters described in the issue. Reproduce the choco install isspackage --params invocation and determine whether setup.exe launches and receives SETUPTYPE; no repository file or test is identified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.