feat: ConEmu 13.7.8.0

- new version of what's in Chocolatey
 - more complete description
 - uninstaller
 - automatically choose x86 / x64 based on OS
This commit is contained in:
Iristyle
2013-07-16 14:12:41 -04:00
parent 9b108c689f
commit 983e025e50
3 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
$package = 'ConEmu'
$version = '130708'
try {
$isSytem32Bit = (($Env:PROCESSOR_ARCHITECTURE -eq 'x86') -and `
($Env:PROCESSOR_ARCHITEW6432 -eq $null))
$os = if ($isSytem32Bit) { "x86" } else { "x64" }
# 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.
Url = "https://conemu-maximus5.googlecode.com/files/ConEmuSetup.$version.exe";
ValidExitCodes = @(0);
}
Install-ChocolateyPackage @params
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}

View File

@@ -0,0 +1,27 @@
$package = 'ConEmu'
try {
# $productGuid = Get-ChildItem HKLM:\SOFTWARE\Classes\Installer\Products |
# Get-ItemProperty -Name 'ProductName' |
# ? { $_.ProductName -match 'ConEmu' } |
# Select -ExpandProperty PSChildName -First 1
$installerRoot = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer'
$productsRoot = "$installerRoot\UserData\S-1-5-18\Products"
# x64, x86
'1616F7E78FA09834EAA6E0617006EEC7', '8ADD8A72FEF29D044884864D191B15B0' |
% { "$productsRoot\$_\InstallProperties" } |
? { Test-Path $_ } |
% {
$pkg = (Get-ItemProperty $_).LocalPackage
msiexec.exe /x $pkg /qb-!
}
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}