![]() OPTIONAL - This disables logging of the extracted items. Installers or explicitly only a 64-bit installer (which will cause a package ![]() Provide this when you want to provide both 32-bit and 64-bit "$(Split-Path -parent $MyInvocation.M圜ommand.Definition)\\INSTALLER_FILE" If embedding in the package, you can get it to the path with OPTIONAL - This will facilitate logging unzip activity for subsequentįull file path to a 64-bit native installer to run. Theįolder and its contents will be extracted to the destination. OPTIONAL - This is a specific directory within zip file to extract. If it does not exist, it will be created. This is a directory where you would like the unzipped files to end up. Of Chocolatey, but optional if FileFullPath64 has been provided. In 0.10.1 , File is an alias for FileFullPath. ![]() "$(Split-Path -Parent $MyInvocation.M圜ommand.Definition)\\file.zip" Next to the install script, the path will be like Get-ChocolateyUnzip -FileFullPath "c:\someFile.zip" -Destination $toolsDir $toolsDir = (Split-Path -parent $MyInvocation.M圜ommand.Definition) # Path to the folder where the script is executing Set the package exit code based on 7-zip's exit code. Starting in 0.9.10, will automatically call Set-PowerShellExitCode to Install-ChocolateyZipPackage to download those resources from their Rights to redistribute those files if you are sharing this package If you are embedding files into a package, ensure that you have the If extraction fails, an exception is thrown. Supported archive formats forħza.exe are: 7z, lzma, cab, zip, gzip, bzip2, and tar. This unzips files using the 7-zip command line tool 7z.exe. Unzips an archive file and returns the location for further processing.
0 Comments
Leave a Reply. |