Skip to content

Commit

Permalink
- для устранения ошибки при установке через Install-Package 'Файлы эт…
Browse files Browse the repository at this point in the history
…ого архивного типа не поддерживаются' использованы параметры командной строки DSig.exe (#9)
  • Loading branch information
sergey-s-betke committed Aug 8, 2016
1 parent c7d5208 commit 441fe55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,14 @@ $toolsDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition);
$DSigUrl = 'http://download.microsoft.com/download/4/7/e/47e8e7fb-9441-4887-988f-e259a443052d/Dsig.EXE';
$signcodePwdUrl = 'http://www.stephan-brenner.com/downloads/signcode-pwd/signcode-pwd_1_02.zip';

$chocTempDir = $env:TEMP;
$tempDir = Join-Path -Path $chocTempDir -ChildPath $env:chocolateyPackageName;
if ( $env:chocolateyPackageVersion -ne $null ) {
$tempDir = Join-Path -Path $tempDir -ChildPath $env:chocolateyPackageVersion;
};
if ( ![System.IO.Directory]::Exists($tempDir) ) { [System.IO.Directory]::CreateDirectory($tempDir) | Out-Null; };
$filePath = Join-Path -Path $tempDir -ChildPath 'Dsig.zip';

Get-ChocolateyWebFile `
-packageName $packageName `
-fileFullPath $filePath `
Install-ChocolateyPackage `
-packageName 'DSig' `
-url $DSigUrl `
;
Get-ChocolateyUnzip `
-packageName $packageName `
-fileFullPath $filePath `
-destination $toolsDir `
-silentArgs "/Q /T:`"$toolsDir`"" `
;

Install-ChocolateyZipPackage `
-packageName $packageName `
-packageName 'signcode-pwd' `
-unzipLocation $toolsDir `
-url $signcodePwdUrl `
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ Uninstall-BinFile `

$packageArgs = @{
packageName = $packageName;
zipFileName = 'Dsig.EXE';
zipFileName = 'signcode-pwd_1_02.zip';
}
#Uninstall-ChocolateyZipPackage @packageArgs;

$packageArgs.zipFileName = 'signcode-pwd_1_02.zip';
#Uninstall-ChocolateyZipPackage @packageArgs;

0 comments on commit 441fe55

Please sign in to comment.