@@ -7,41 +7,8 @@ $url64 = $url # 64bit URL here or just use the same as $url
7
7
$silentArgs = ' ' # "/s /S /q /Q /quiet /silent /SILENT /VERYSILENT" # try any of these to get the silent installer #msi is always /quiet
8
8
$validExitCodes = @ (0 ) # please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx
9
9
10
- # main helpers - these have error handling tucked into them already
11
- # installer, will assert administrative rights
12
10
Install-ChocolateyPackage " $packageName " " $installerType " " $silentArgs " " $url " " $url64 " - validExitCodes $validExitCodes
13
- # download and unpack a zip file
14
- # Install-ChocolateyZipPackage "$packageName" "$url" "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" "$url64"
15
11
16
- # try { #error handling is only necessary if you need to do anything in addition to/instead of the main helpers
17
- # other helpers - using any of these means you want to uncomment the error handling up top and at bottom.
18
- # downloader that the main helpers use to download items
19
- # Get-ChocolateyWebFile "$packageName" 'DOWNLOAD_TO_FILE_FULL_PATH' "$url" "$url64"
20
- # installer, will assert administrative rights - used by Install-ChocolateyPackage
21
- # Install-ChocolateyInstallPackage "$packageName" "$installerType" "$silentArgs" '_FULLFILEPATH_' -validExitCodes $validExitCodes
22
- # unzips a file to the specified location - auto overwrites existing content
23
- # Get-ChocolateyUnzip "FULL_LOCATION_TO_ZIP.zip" "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
24
- # Runs processes asserting UAC, will assert administrative rights - used by Install-ChocolateyInstallPackage
25
- # Start-ChocolateyProcessAsAdmin 'STATEMENTS_TO_RUN' 'Optional_Application_If_Not_PowerShell' -validExitCodes $validExitCodes
26
- # add specific folders to the path - any executables found in the chocolatey package folder will already be on the path. This is used in addition to that or for cases when a native installer doesn't add things to the path.
27
- # Install-ChocolateyPath 'LOCATION_TO_ADD_TO_PATH' 'User_OR_Machine' # Machine will assert administrative rights
28
- # add specific files as shortcuts to the desktop
29
- # $target = Join-Path $MyInvocation.MyCommand.Definition "$($packageName).exe"
30
- # Install-ChocolateyDesktopLink $target
31
-
32
- # ------- ADDITIONAL SETUP -------#
33
- # make sure to uncomment the error handling if you have additional setup to do
34
-
35
- # $processor = Get-WmiObject Win32_Processor
36
- # $is64bit = $processor.AddressWidth -eq 64
37
-
38
-
39
- # the following is all part of error handling
40
- # Write-ChocolateySuccess "$packageName"
41
- # } catch {
42
- # Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
43
- # throw
44
- # }
45
12
46
13
47
14
0 commit comments