Skip to content

Commit

Permalink
dowwload than install
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Jun 29, 2024
1 parent 4b31cfb commit ee67f30
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions automatic/winflector/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,25 @@ $validExitCodes = @(0, 3010, 1641)
$ahkExe = 'AutoHotKey'
$ahkFile = Join-Path $toolsDir "WinflectorInstall.ahk"

$packageArgs = @{
packageName = $packageName
url = $url
FileFullPath = "$toolsDir\winflector.exe"
checksum = $checksum
checksumType = $checksumType
}

Get-ChocolateyWebFile @packageArgs

Start-Process $ahkExe $ahkFile

$packageArgs = @{
packageName = $packageName
fileType = $installerType
url = $url
file = "$toolsDir\winflector.exe"
validExitCodes= $validExitCodes
silentArgs = $silentArgs
softwareName = $softwareName
checksum = $checksum
checksumType = $checksumType
}

Install-ChocolateyPackage @packageArgs
Install-ChocolateyInstallPackage @packageArgs
2 changes: 1 addition & 1 deletion automatic/winflector/winflector.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>winflector</id>
<version>4.0.1.0</version>
<version>4.0.0.0</version>
<title>Winflector (Install)</title>
<authors>OTC S.A.</authors>
<owners>tunisiano</owners>
Expand Down

0 comments on commit ee67f30

Please sign in to comment.