gridla.blogg.se

Install chocolatey powershell
Install chocolatey powershell












install chocolatey powershell

File: Relative or absolute path to the installer file.

install chocolatey powershell

  • SilentArgs: Any arguments required to perform a silent installation of the program.
  • FileType: Is this an 'exe' or an 'msi'?.
  • PackageName: This is the name (id) of the package.
  • install chocolatey powershell

    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.














    Install chocolatey powershell