From 11ca8201230535e51db9ea0a69faa4f7fd31eb22 Mon Sep 17 00:00:00 2001 From: Chocolatey Date: Sat, 21 May 2016 05:12:52 -0700 Subject: [PATCH] updates prior to automatic run for 20160521_ 512 --- .../16.02/7zip.commandline.nuspec | 25 +++++++++++++++++++ .../16.02/tools/chocolateyInstall.ps1 | 21 ++++++++++++++++ .../7zip.install/16.02/7zip.install.nuspec | 25 +++++++++++++++++++ .../16.02/tools/chocolateyInstall.ps1 | 22 ++++++++++++++++ automatic/_output/7zip/16.02/7zip.nuspec | 25 +++++++++++++++++++ 5 files changed, 118 insertions(+) create mode 100644 automatic/_output/7zip.commandline/16.02/7zip.commandline.nuspec create mode 100644 automatic/_output/7zip.commandline/16.02/tools/chocolateyInstall.ps1 create mode 100644 automatic/_output/7zip.install/16.02/7zip.install.nuspec create mode 100644 automatic/_output/7zip.install/16.02/tools/chocolateyInstall.ps1 create mode 100644 automatic/_output/7zip/16.02/7zip.nuspec diff --git a/automatic/_output/7zip.commandline/16.02/7zip.commandline.nuspec b/automatic/_output/7zip.commandline/16.02/7zip.commandline.nuspec new file mode 100644 index 000000000..fd3f625af --- /dev/null +++ b/automatic/_output/7zip.commandline/16.02/7zip.commandline.nuspec @@ -0,0 +1,25 @@ + + + + + 7zip.commandline + 7-Zip (Portable, CommandLine) + 16.02 + Igor Pavlov + Rob Reynolds + 7-Zip is a file archiver with a high compression ratio. + 7-Zip is a file archiver with a high compression ratio. This brings the 7zip command line version to your system. + http://www.7-zip.org/ + https://github.com/ferventcoder/chocolatey-packages/tree/master/automatic/7zip.commandline + 7zip zip archiver + http://www.7-zip.org/license.txt + false + https://cdn.rawgit.com/ferventcoder/chocolatey-packages/02c21bebe5abb495a56747cbb9b4b5415c933fc0/icons/7zip.svg + http://www.7-zip.org/history.txt + 7zip + + + + + + diff --git a/automatic/_output/7zip.commandline/16.02/tools/chocolateyInstall.ps1 b/automatic/_output/7zip.commandline/16.02/tools/chocolateyInstall.ps1 new file mode 100644 index 000000000..ad0b517e4 --- /dev/null +++ b/automatic/_output/7zip.commandline/16.02/tools/chocolateyInstall.ps1 @@ -0,0 +1,21 @@ +$versionMinusDots = "16.02".Replace(".","") + +$packageName = '7zip.commandline' +$toolsDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition) +$extrasDir = Join-Path "$toolsDir" "7z-extra" +$url = "http://www.7-zip.org/a/7z$($versionMinusDots).exe" +$url64 = "http://www.7-zip.org/a/7z$($versionMinusDots)-x64.exe" +$extrasUrl = "http://www.7-zip.org/a/7z$($versionMinusDots)-extra.7z" + +Install-ChocolateyZipPackage $packageName $url $toolsDir $url64 +Install-ChocolateyZipPackage $packageName $extrasUrl $extrasDir + +Remove-Item -Path "$toolsDir\Uninstall.exe" + +if (Get-ProcessorBits 32) { + # generate ignore for x64\7za.exe + New-Item "$extrasDir\x64\7za.exe.ignore" -Type file -Force | Out-Null +} else { + #generate ignore for 7za.exe and let x64 version pick up and shim + New-Item "$extrasDir\7za.exe.ignore" -Type file -Force | Out-Null +} diff --git a/automatic/_output/7zip.install/16.02/7zip.install.nuspec b/automatic/_output/7zip.install/16.02/7zip.install.nuspec new file mode 100644 index 000000000..2615dedb8 --- /dev/null +++ b/automatic/_output/7zip.install/16.02/7zip.install.nuspec @@ -0,0 +1,25 @@ + + + + 7zip.install + 7-Zip (Install) + 16.02 + Igor Pavlov + Rob Reynolds + 7-Zip is a file archiver with a high compression ratio. + 7-Zip is a file archiver with a high compression ratio. + +### NOTE: The installer for 7-Zip is known to close the explorer process. +This means you may lose current work. If it doesn't automatically restart explorer, type `explorer` on the command shell to restart it. + + http://www.7-zip.org/ + 7zip zip archiver admin + http://www.7-zip.org/license.txt + false + https://cdn.rawgit.com/ferventcoder/chocolatey-packages/02c21bebe5abb495a56747cbb9b4b5415c933fc0/icons/7zip.svg + + + + + + diff --git a/automatic/_output/7zip.install/16.02/tools/chocolateyInstall.ps1 b/automatic/_output/7zip.install/16.02/tools/chocolateyInstall.ps1 new file mode 100644 index 000000000..bcbadc8e3 --- /dev/null +++ b/automatic/_output/7zip.install/16.02/tools/chocolateyInstall.ps1 @@ -0,0 +1,22 @@ +Function Get-ExplorerProcessCount +{ + $process = Get-Process explorer -ErrorAction SilentlyContinue + $processCount = ($process | Measure-Object).Count + return $processCount +} + +$initialProcessCount = Get-ExplorerProcessCount +Write-Warning "This installer is known to close the explorer process. This means `nyou may lose current work. `nIf it doesn't automatically restart explorer, type 'explorer' on the `ncommand shell to restart it." + +$versionMinusDots = "16.02".Replace(".","") +$packageId = '7zip.install' +$url = "http://www.7-zip.org/a/7z$($versionMinusDots).exe" +$url64 = "http://www.7-zip.org/a/7z$($versionMinusDots)-x64.exe" + +Install-ChocolateyPackage $packageId 'exe' '/S' $url $url64 + +$finalProcessCount = Get-ExplorerProcessCount +if($initialProcessCount -lt $finalProcessCount) +{ + Start-Process explorer.exe +} diff --git a/automatic/_output/7zip/16.02/7zip.nuspec b/automatic/_output/7zip/16.02/7zip.nuspec new file mode 100644 index 000000000..9988ef255 --- /dev/null +++ b/automatic/_output/7zip/16.02/7zip.nuspec @@ -0,0 +1,25 @@ + + + + 7zip + 7-Zip + 16.02 + Igor Pavlov + Rob Reynolds + 7-Zip is a file archiver with a high compression ratio. + 7-Zip is a file archiver with a high compression ratio. + +### NOTE: The installer for 7-Zip is known to close the explorer process. +This means you may lose current work. If it doesn't automatically restart explorer, type `explorer` on the command shell to restart it. + + http://www.7-zip.org/ + 7zip zip archiver admin + http://www.7-zip.org/license.txt + false + https://cdn.rawgit.com/ferventcoder/chocolatey-packages/02c21bebe5abb495a56747cbb9b4b5415c933fc0/icons/7zip.svg + + + + + +