Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing install behind proxy. Upgrade to version 150224a. #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ConEmu/ConEmu.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>ConEmu</id>
<version>14.9.23.0</version>
<version>15.02.24a</version>
<authors>Maximus5</authors>
<owners>Xavier Decoster, Ethan J. Brown</owners>
<licenseUrl>http://opensource.org/licenses/BSD-3-Clause</licenseUrl>
Expand Down
26 changes: 5 additions & 21 deletions ConEmu/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$package = 'ConEmu'
$version = '14.09.23'
$version = '15.02.24a'

try {

Expand All @@ -11,33 +11,17 @@ try {
# TODO: use github api to grab latest release?
$url = "https://github.com/Maximus5/ConEmu/releases/download/v$version/ConEmuSetup.$($version.replace('.','')).exe"

$chocTemp = Join-Path $Env:TEMP 'chocolatey'
$tempInstall = Join-Path $chocTemp "ConEmu\ConEmuSetup.$version.exe"
echo $url

Write-Host "Downloading from $url to $tempInstall"

# need a Referer, User-Agent and Accept to be able to download
# other headers not required
$client = New-Object Net.WebClient
$client.DownloadFile($url, $tempInstall)

Write-Host "Download from $url complete"

# If having problems with untrusted cetrificates on HTTPS, use
# solution: http://stackoverflow.com/a/561242/1579985
$params = @{
PackageName = $package;
FileType = 'exe';
SilentArgs = "/p:$os /passive";
# MSI installer, but packed inside wrapper to select x86 or x64
# version. Therefore, treat it as EXE type.
File = $tempInstall;
# ValidExitCodes = @(0);
Url = $url;
Url64Bit = $url;
}

Install-ChocolateyInstallPackage @params

Write-ChocolateySuccess $package
Install-ChocolateyPackage @params
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
Expand Down
2 changes: 1 addition & 1 deletion ConEmu/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ try {
$productsRoot = "$installerRoot\UserData\S-1-5-18\Products"

# x64, x86
'1616F7E78FA09834EAA6E0617006EEC7', '8ADD8A72FEF29D044884864D191B15B0' |
'1616F7E78FA09834EAA6E0617006EEC7', '8ADD8A72FEF29D044884864D191B15B0', 'B0790B48745EDCE4F9918AE6829BC1F4' |
% { "$productsRoot\$_\InstallProperties" } |
? { Test-Path $_ } |
% {
Expand Down