Install chocolatey powershell6/25/2023 ![]() See here for more information on Chocolatey environment variables. This variable only exists in the context of a Chocolatey package install. Install-ChocolateyInstallPackage your setup.exe is embedded inside the package, you can reference the current package folder directory with the following environment variable: $env:chocolateyPackageFolder. ValidExitCodes = 0, 1638 # array of acceptable return codes for the installer SilentArgs = '/q /someOtherArguments' # This line is going to be installer specific, and is just a sample hereįile = 'C:\Path\to\installer' # can be a relative path too ![]() ![]() A sample of how you would do this in chocolateyInstall.ps1 for a setup exe would be: $packageInstallArgs = 'package-name' You don't want to set up a shim for the installer - you want to invoke the installer from chocolateyInstall.ps1 to install the program.
0 Comments
Leave a Reply. |