Skip to content

Instantly share code, notes, and snippets.

Add to nuspec:
--------------
<dependencies>
<dependency id="chocolatey-uninstall.extension" />
</dependencies>
Copy/replace chocolateyInstall.ps1 with text below:
--------------------------------------------------
$packageName = 'miranda-ng'
$fileType = 'exe'
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>hdguard</id>
<version>1.1</version>
<title>HDGuard</title>
<authors>RDT</authors>
<owners>RDT</owners>
<licenseUrl>http://www.hdguard.com/</licenseUrl>
<projectUrl>https://rdt.de/index.php/produkte/hdguard/</projectUrl>
@dtgm
dtgm / nvm-install.log
Created June 8, 2016 22:05
nvm-setup.exe in https://chocolatey.org/packages/nvm/1.1.0 errors with console popup "ERROR open \settings.txt: The system cannot find the file specified."
2016-06-08 21:59:13.764 Log opened. (Time zone: UTC+00:00)
2016-06-08 21:59:13.779 Setup version: Inno Setup version 5.5.5 (a)
2016-06-08 21:59:13.779 Original Setup EXE: C:\Users\Administrator\AppData\Local\Temp\1\chocolatey\nvm\1.1.0\nvm-setup\nvm-setup.exe
2016-06-08 21:59:13.779 Setup command line: /SL5="$C0144,1399276,67072,C:\Users\Administrator\AppData\Local\Temp\1\chocolatey\nvm\1.1.0\nvm-setup\nvm-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /LOG=c:\packages\nvm.log
2016-06-08 21:59:13.779 Windows version: 6.3.9600 (NT platform: Yes)
2016-06-08 21:59:13.779 64-bit Windows: Yes
2016-06-08 21:59:13.779 Processor architecture: x64
2016-06-08 21:59:13.779 User privileges: Administrative
2016-06-08 21:59:13.779 64-bit install mode: Yes
2016-06-08 21:59:13.779 Created temporary directory: C:\Users\ADMINI~1\AppData\Local\Temp\1\is-9S988.tmp
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>makemsi</id>
<title>MakeMsi</title>
<version>16.059</version>
<authors>Dennis Bareis</authors>
<owners>mtiutiu</owners>
<summary>Create and update MSI installers</summary>
<description>
@dtgm
dtgm / win32-openssh.nuspec
Created June 4, 2016 00:22
adjustments for markdown and add dependency
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>win32-openssh</id>
<version>2016.05.30</version>
<title>Win32 OpenSSH (Microsoft Port)</title>
<authors>Microsoft</authors>
<owners>DarwinJS</owners>
<licenseUrl>https://raw.githubusercontent.com/PowerShell/Win32-OpenSSH/L1/LICENCE</licenseUrl>
<projectUrl>https://github.com/PowerShell/Win32-OpenSSH</projectUrl>
#### Package Parameters
The following package parameters can be set:
* `/InstallPath=C:\path\to\install-directory` - overwrite default install location ($env:ChocolateyToolsLocation)
These parameters can be passed to the installer with the use of `-params`.
For example: `-params '"/InstallPath=C:\path\to\install-directory"'`
@dtgm
dtgm / chocolateyInstall.ps1
Created June 3, 2016 18:45
example backup code for deprecating old install location for https://chocolatey.org/packages/OpenCV/2.4.13
$oldPath = "C:\OpenCV"
if (Test-Path (Join-Path $oldPath "bin")) {
$tmpPath = Join-Path $env:temp $packageName
Write-Warning "Deprecated install found. Backing up config files to `"$($tmpPath)`""
cp $oldPath\*.ini $tmpPath -Force
rm -recurse -force $oldPath
}
PS C:\WINDOWS\system32> cinst suwatchapp -ydv
Chocolatey v0.9.10-beta1-352-gc443f48 Professional
Chocolatey is running on Windows v 10.0.10586.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install suwatchapp -ydv
Received arguments: install suwatchapp -ydv
The source 'https://licensedpackages.chocolatey.org/api/v2/;https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
NOTE: Hiding sensitive configuration data! Please double and triple
5-27-2016[07:14:01 PM]: InstallShield setup.exe (Ansi) started, cmdline: /s /v/qn /debuglogC:\packages\log.txt
5-27-2016[07:14:01 PM]: Extracting setup.ini...
5-27-2016[07:14:01 PM]: Extracting 'Setup.INI' to C:\Users\ADMINI~1\AppData\Local\Temp\1\{6989873E-C214-49EE-A30C-F41156DE0824}\Setup.INI
5-27-2016[07:14:01 PM]: Extracting '0x0409.ini' to C:\Users\ADMINI~1\AppData\Local\Temp\1\{6989873E-C214-49EE-A30C-F41156DE0824}\0x0409.ini
5-27-2016[07:14:01 PM]: Reading setup.ini from C:\Users\ADMINI~1\AppData\Local\Temp\1\{6989873E-C214-49EE-A30C-F41156DE0824}\Setup.INI
5-27-2016[07:14:01 PM]: Upgrade check: checking product code {24D9F882-481C-2B04-0572-00B273CE17B3}
5-27-2016[07:14:01 PM]: Default language: 1033, got code page 1252
5-27-2016[07:14:01 PM]: Creating setup dialog...
5-27-2016[07:14:01 PM]: GetFile: file 'Couchbase Server.msi', ini section 'Couchbase Server.msi', full path '', location 1634348
5-27-2016[07:14:01 PM]: File to get to 'Couchbase Server.msi'
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>seafile-client-shibboleth</id>
<version>5.1.1</version>
<title>Seafile Client with Shibboleth</title>
<authors>Seafile Ltd.</authors>
<owners>sowidvhu</owners>
<packageSourceUrl>https://github.com/sowidvhu/chocolatey-packages/tree/master/seafile-client-shibboleth</packageSourceUrl>
<licenseUrl>https://github.com/haiwen/seafile/blob/master/LICENSE.txt</licenseUrl>