Downloads:
50,821
Downloads of v 6.0:
117
Last Update:
24 Mar 2021
Package Maintainer(s):
Software Author(s):
- FreeDownloadManager.org
Tags:
free-download-manager download manager free web files speed ftp bittorrent- Software Specific:
- Software Site
- Software Docs
- Package Specific:
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Free Download Manager
This is not the latest version of Free Download Manager available.
- 1
- 2
- 3
6.0 | Updated: 24 Mar 2021
- Software Specific:
- Software Site
- Software Docs
- Package Specific:
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Downloads:
50,821
Downloads of v 6.0:
117
Maintainer(s):
Software Author(s):
- FreeDownloadManager.org
Free Download Manager 6.0
This is not the latest version of Free Download Manager available.
Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by FreeDownloadManager.org. The inclusion of FreeDownloadManager.org trademark(s), if any, upon this webpage is solely to identify FreeDownloadManager.org goods or services and not for commercial purposes.
- 1
- 2
- 3
Some Checks Have Failed or Are Not Yet Complete
Not All Tests Have Passed
Deployment Method: Individual Install, Upgrade, & Uninstall
To install Free Download Manager, run the following command from the command line or from PowerShell:
To upgrade Free Download Manager, run the following command from the command line or from PowerShell:
To uninstall Free Download Manager, run the following command from the command line or from PowerShell:
Deployment Method:
This applies to both open source and commercial editions of Chocolatey.
1. Enter Your Internal Repository Url
(this should look similar to https://community.chocolatey.org/api/v2/)
2. Setup Your Environment
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment
Option 1: Cached Package (Unreliable, Requires Internet - Same As Community)-
Open Source or Commercial:
- Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
- You can also just download the package and push it to a repository Download
-
Open Source
-
Download the package:
Download - Follow manual internalization instructions
-
-
Package Internalizer (C4B)
-
Run: (additional options)
choco download freedownloadmanager --internalize --version=6.0 --source=https://community.chocolatey.org/api/v2/
-
For package and dependencies run:
choco push --source="'INTERNAL REPO URL'"
- Automate package internalization
-
Run: (additional options)
3. Copy Your Script
choco upgrade freedownloadmanager -y --source="'INTERNAL REPO URL'" --version="'6.0'" [other options]
See options you can pass to upgrade.
See best practices for scripting.
Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.
If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:
choco upgrade freedownloadmanager -y --source="'INTERNAL REPO URL'" --version="'6.0'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Install freedownloadmanager
win_chocolatey:
name: freedownloadmanager
version: '6.0'
source: INTERNAL REPO URL
state: present
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
chocolatey_package 'freedownloadmanager' do
action :install
source 'INTERNAL REPO URL'
version '6.0'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller freedownloadmanager
{
Name = "freedownloadmanager"
Version = "6.0"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'freedownloadmanager':
ensure => '6.0',
provider => 'chocolatey',
source => 'INTERNAL REPO URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
4. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
This package was approved as a trusted package on 02 May 2021.
It's a powerful modern download accelerator and organizer for Windows, macOS, Android, and Linux.
<?xml version='1.0' encoding='utf-8'?>
<Jobs>
<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="3d86013c-62fd-4526-9a13-24aa127131f3">
<WebsiteUrl />
<UserAgent />
<UserNotes />
<LastFileSize>33770480</LastFileSize>
<LastFileDate>2021-03-20T01:49:22+11:00</LastFileDate>
<IgnoreFileInformation>false</IgnoreFileInformation>
<DownloadBeta>Default</DownloadBeta>
<DownloadDate xsi:nil="true" />
<CheckForUpdatesOnly>false</CheckForUpdatesOnly>
<VariableChangeIndicator />
<HashVariable />
<HashType>None</HashType>
<CanBeShared>true</CanBeShared>
<ShareApplication>false</ShareApplication>
<ExclusiveDownload>false</ExclusiveDownload>
<HttpReferer />
<SetupInstructions>
<SetupInstruction xsi:type="StartProcessInstruction">
<EnvironmentVariables />
<FileName>fdm_x64_setup.exe</FileName>
<Parameters />
<WaitForExit>true</WaitForExit>
</SetupInstruction>
</SetupInstructions>
<Variables>
<item>
<key>
<string>Version</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>StartEnd</VariableType>
<Regex />
<Url>https://www.freedownloadmanager.org/download.htm</Url>
<StartText>version</StartText>
<Name>Version</Name>
</UrlVariable>
</value>
</item>
</Variables>
<ExecuteCommand>fdm_x64_setup.exe</ExecuteCommand>
<ExecutePreCommand />
<ExecuteCommandType>Batch</ExecuteCommandType>
<ExecutePreCommandType>Batch</ExecutePreCommandType>
<Category />
<SourceType>FixedUrl</SourceType>
<PreviousLocation>C:\tmp\fdm_x64_setup.exe</PreviousLocation>
<DeletePreviousFile>true</DeletePreviousFile>
<Enabled>true</Enabled>
<FileHippoId />
<LastUpdated>2021-03-24T13:44:57.5154851+11:00</LastUpdated>
<TargetPath>C:\tmp\</TargetPath>
<FixedDownloadUrl>https://dn3.freedownloadmanager.org/6/latest/fdm_x64_setup.exe</FixedDownloadUrl>
<Name>Free Download Manager</Name>
</ApplicationJob>
</Jobs>
## Ketarin Jobs
* Ensure you perform the steps in `setup/README.md`.
This is where the ketarin xml job exports go. This allows it to be easier to contribute when Ketarin jobs are available for exporting.
This is also the folder that ops/ketarinupdate.cmd is using to import all of the jobs into Ketarin silently, so that things stay updated on a server running this.
<?xml version="1.0" encoding="utf-8"?>
<Jobs>
<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<WebsiteUrl />
<UserAgent>chocolatey command line</UserAgent>
<UserNotes />
<LastFileSize>0</LastFileSize>
<LastFileDate xsi:nil="true" />
<IgnoreFileInformation>false</IgnoreFileInformation>
<DownloadBeta>Default</DownloadBeta>
<CheckForUpdatesOnly>false</CheckForUpdatesOnly>
<VariableChangeIndicator />
<HashVariable />
<HashType>None</HashType>
<CanBeShared>true</CanBeShared>
<ShareApplication>false</ShareApplication>
<ExclusiveDownload>false</ExclusiveDownload>
<HttpReferer />
<SetupInstructions />
<Variables>
<item>
<key>
<string>version</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>Last program version.*?([\d\.]+)</Regex>
<Url><placeholder name="Url to search for new version" /></Url>
<Name>version</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>url</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>Textual</VariableType>
<Regex />
<TextualContent>{getUrl}</TextualContent>
<Name>url</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>getUrl</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>[^ "'<>\*]+\.exe</Regex>
<Url><placeholder name="Url to search for new version" /></Url>
<Name>getUrl</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>url64</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>Textual</VariableType>
<Regex />
<TextualContent>{getUrl64}</TextualContent>
<Name>url64</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>getUrl64</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>[^ "'<>\*]+\.exe</Regex>
<Url><placeholder name="Url to search for new version" /></Url>
<Name>getUrl64</Name>
</UrlVariable>
</value>
</item>
</Variables>
<ExecuteCommand />
<ExecutePreCommand />
<ExecuteCommandType>Batch</ExecuteCommandType>
<ExecutePreCommandType>Batch</ExecutePreCommandType>
<Category />
<SourceType>FixedUrl</SourceType>
<DeletePreviousFile>true</DeletePreviousFile>
<Enabled>true</Enabled>
<FileHippoId />
<TargetPath>{saveDir}\{appname}_{version}.{url:ext}</TargetPath>
<FixedDownloadUrl>{url}</FixedDownloadUrl>
<Name><placeholder name="Name of the package (should match the folder under automatic and the nuspec file)." /></Name>
</ApplicationJob>
</Jobs>
@echo off
SET DIR=%~dp0%
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c%%a%%b)
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a%%b)
echo Updating the github repo first
pushd %DIR%
call git add --all :/
call git commit -m "updates prior to automatic run for %mydate%_%mytime%"
::call git reset --hard HEAD
call git fetch && git rebase origin/master
call git push origin master
popd
:: /database="%DIR%\jobs.db"
::import all the files
FOR /f "tokens=*" %%F IN ('dir %DIR%..\ /b *.ketarin.xml') DO (
call ketarin.exe /import="%DIR%..\%%F"
TIMEOUT /T 2
)
Echo Wait for all of those to finish importing...
TIMEOUT /T 15
echo Calling ketarin now the the repo has been updated
call "Ketarin.exe" /silent /notify /log=C:\ProgramData\chocolateypackageupdater\ketarin.%mydate%_%mytime%.log
## Operations
### Ketarin/ChocolateyPackageUpdater Ops
* Use ketarinupdate.cmd or another file to set up a scheduled task for daily, hourly, or whatever schedule you best feel will work appropriately.
### AutomaticUpdater
Nothing to do here, jobs run automatically by AppVeyor on commit and on a schedule that you've set up in AppVeyor.
# WMF 3/4 only
if ($PSVersionTable.PSVersion -lt $(New-Object System.Version("5.0.0.0"))) {
choco install dotnet4.5.1 -y
choco upgrade powershell-packagemanagement --ignore-dependencies -y
}
$refreshenv = Get-Command refreshenv -ea SilentlyContinue
if ($refreshenv -ne $null -and $refreshenv.CommandType -ne 'Application') {
refreshenv # You need the Chocolatey profile installed for this to work properly (Choco v0.9.10.0+).
} else {
Write-Warning "We detected that you do not have the Chocolatey PowerShell profile installed, which is necessary for 'refreshenv' to work in PowerShell."
}
Install-PackageProvider -Name NuGet -Force
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-Module au -Scope AllUsers
Get-Module au -ListAvailable | select Name, Version
<?xml version="1.0" encoding="utf-8"?>
<Ketarin>
<Settings>
<dictionary>
<item>
<key>
<string>AuthorGuid</string>
</key>
<value>
<string>System.String:{75a093b7-da5f-493a-b8f0-22c278f874c1}</string>
</value>
</item>
<item>
<key>
<string>LastUpdateCheck</string>
</key>
<value>
<string>AAEAAAD/////AQAAAAAAAAAEAQAAAA9TeXN0ZW0uRGF0ZVRpbWUCAAAABXRpY2tzCGRhdGVEYXRhAAAJEOGhVC47mtII4aFULjua0ogL</string>
</value>
</item>
<item>
<key>
<string>MainForm/Size</string>
</key>
<value>
<string>System.Drawing.Size:1046,476</string>
</value>
</item>
<item>
<key>
<string>MainForm/Location</string>
</key>
<value>
<string>System.Drawing.Point:203,77</string>
</value>
</item>
<item>
<key>
<string>MainForm/WindowState</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Application:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Application:Width</string>
</key>
<value>
<string>System.Int32:126</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Application:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Last updated:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Last updated:Width</string>
</key>
<value>
<string>System.Int32:96</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Last updated:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:2</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Progress:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Progress:Width</string>
</key>
<value>
<string>System.Int32:100</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Progress:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:4</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Target:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Target:Width</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Target:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:5</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Category:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Category:Width</string>
</key>
<value>
<string>System.Int32:80</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Category:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:15</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Status:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Status:Width</string>
</key>
<value>
<string>System.Int32:79</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Status:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:6</string>
</value>
</item>
<item>
<key>
<string>olvJobs/LastSortColumn</string>
</key>
<value>
<string>System.String:Application</string>
</value>
</item>
<item>
<key>
<string>olvJobs/LastSortOrder</string>
</key>
<value>
<string>System.Int32:1</string>
</value>
</item>
<item>
<key>
<string>Ketarin/ShowGroups</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>Ketarin/ShowStatusBar</string>
</key>
<value>
<string>System.Boolean:False</string>
</value>
</item>
<item>
<key>
<string>Ketarin/ShowLog</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>Ketarin/AutoScroll</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>PreUpdateCommand</string>
</key>
<value>
<string>System.String:REM https://chocolatey.org/packages/chocolateypackageupdater
chocopkgup {nopush} {force} --pf="{autoPackagesFolder}" --packagename="{appname}" --version="{version}" --url="{preupdate-url}" --urlx64="{url64}" --checksum="{checksum}" --c64="{checksumx64}" --debug</string>
</value>
</item>
<item>
<key>
<string>PreUpdateCommandType</string>
</key>
<value>
<string>System.String:Batch</string>
</value>
</item>
<item>
<key>
<string>CustomColumns</string>
</key>
<value>
<string>System.String:<?xml version="1.0" encoding="utf-16"?>
<dictionary>
<item>
<key>
<string>version</string>
</key>
<value>
<string>{version}</string>
</value>
</item>
<item>
<key>
<string>filesize</string>
</key>
<value>
<string>{filesize:formatfilesize}</string>
</value>
</item>
<item>
<key>
<string>host</string>
</key>
<value>
<string>{url:regex:(?&lt;=//)([\w-]+\.)*(?=[\w-]+\.[\w-]+(?=/))}</string>
</value>
</item>
<item>
<key>
<string>fileDate</string>
</key>
<value>
<string>{f:yyyy}-{f:MM}-{f:dd} {f:HH}:{f:mm}</string>
</value>
</item>
<item>
<key>
<string>fixedUrl</string>
</key>
<value>
<string>{property:FixedDownloadUrl:regex:(?&lt;=//).*}</string>
</value>
</item>
<item>
<key>
<string>referer</string>
</key>
<value>
<string>{property:HttpReferer}</string>
</value>
</item>
<item>
<key>
<string>user-agent</string>
</key>
<value>
<string>{property:UserAgent}</string>
</value>
</item>
<item>
<key>
<string>delPrevFile</string>
</key>
<value>
<string>{property:DeletePreviousFile:multireplace:,:True,False:X,}</string>
</value>
</item>
<item>
<key>
<string>varChgInd</string>
</key>
<value>
<string>{property:VariableChangeIndicator}</string>
</value>
</item>
<item>
<key>
<string>cscript</string>
</key>
<value>
<string>{cscript}</string>
</value>
</item>
<item>
<key>
<string>enabled</string>
</key>
<value>
<string>{property:Enabled}</string>
</value>
</item>
<item>
<key>
<string>nopush</string>
</key>
<value>
<string>{nopush}</string>
</value>
</item>
<item>
<key>
<string>domain</string>
</key>
<value>
<string>{url:regex:(?&lt;=//[\w-]+\.)*[\w-]+\.[\w-]+(?=/)}</string>
</value>
</item>
<item>
<key>
<string>url64</string>
</key>
<value>
<string>{url64}</string>
</value>
</item>
<item>
<key>
<string>hashInternal</string>
</key>
<value>
<string>{hash}</string>
</value>
</item>
<item>
<key>
<string>hashType</string>
</key>
<value>
<string>{property:HashType:replace:None:}</string>
</value>
</item>
<item>
<key>
<string>proto</string>
</key>
<value>
<string>{url:regex:.*?(?=.//)}</string>
</value>
</item>
<item>
<key>
<string>bytes</string>
</key>
<value>
<string>{filesize}</string>
</value>
</item>
<item>
<key>
<string>hashExternal</string>
</key>
<value>
<string>{checksum}</string>
</value>
</item>
<item>
<key>
<string>checksum64</string>
</key>
<value>
<string>{checksumx64}</string>
</value>
</item>
</dictionary></string>
</value>
</item>
<item>
<key>
<string>CustomColumn</string>
</key>
<value>
<string p6:nil="true" xmlns:p6="http://www.w3.org/2001/XMLSchema-instance" />
</value>
</item>
<item>
<key>
<string>CustomColumn2</string>
</key>
<value>
<string p6:nil="true" xmlns:p6="http://www.w3.org/2001/XMLSchema-instance" />
</value>
</item>
<item>
<key>
<string>UpdateAtStartup</string>
</key>
<value>
<string>System.Boolean:False</string>
</value>
</item>
<item>
<key>
<string>AvoidFileHippoBeta</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>ConnectionTimeout</string>
</key>
<value>
<string>AAEAAAD/////AQAAAAAAAAAEAQAAAA5TeXN0ZW0uRGVjaW1hbAQAAAAFZmxhZ3MCaGkCbG8DbWlkAAAAAAgICAgAAAAAAAAAADwAAAAAAAAACw==</string>
</value>
</item>
<item>
<key>
<string>ThreadCount</string>
</key>
<value>
<string>System.Int32:4</string>
</value>
</item>
<item>
<key>
<string>RetryCount</string>
</key>
<value>
<string>System.Int32:2</string>
</value>
</item>
<item>
<key>
<string>UpdateOnlineDatabase</string>
</key>
<value>
<string>System.Boolean:False</string>
</value>
</item>
<item>
<key>
<string>MinimizeToTray</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>CreateDatabaseBackups</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>OpenWebsiteOnDoubleClick</string>
</key>
<value>
<string>System.Boolean:False</string>
</value>
</item>
<item>
<key>
<string>ProxyPort</string>
</key>
<value>
<string>AAEAAAD/////AQAAAAAAAAAEAQAAAA5TeXN0ZW0uRGVjaW1hbAQAAAAFZmxhZ3MCaGkCbG8DbWlkAAAAAAgICAgAAAAAAAAAALgiAAAAAAAACw==</string>
</value>
</item>
<item>
<key>
<string>ProxyServer</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>ProxyUser</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>ProxyPassword</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Version:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Version:Width</string>
</key>
<value>
<string>System.Int32:99</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Version:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:1</string>
</value>
</item>
<item>
<key>
<string>SetPlaceholderDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:699,157</string>
</value>
</item>
<item>
<key>
<string>SetPlaceholderDialog/Location</string>
</key>
<value>
<string>System.Drawing.Point:0,0</string>
</value>
</item>
<item>
<key>
<string>SetPlaceholderDialog/WindowState</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>EditVariablesDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:1004,492</string>
</value>
</item>
<item>
<key>
<string>EditVariablesDialog/Location</string>
</key>
<value>
<string>System.Drawing.Point:66,65</string>
</value>
</item>
<item>
<key>
<string>EditVariablesDialog/WindowState</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>ApplicationJobDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:507,507</string>
</value>
</item>
<item>
<key>
<string>ApplicationJobDialog/Location</string>
</key>
<value>
<string>System.Drawing.Point:173,12</string>
</value>
</item>
<item>
<key>
<string>ApplicationJobDialog/WindowState</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>LogDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:1143,423</string>
</value>
</item>
<item>
<key>
<string>LogDialog/Location</string>
</key>
<value>
<string>System.Drawing.Point:116,360</string>
</value>
</item>
<item>
<key>
<string>LogDialog/WindowState</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>ErrorsDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:1096,965</string>
</value>
</item>
<item>
<key>
<string>olvErrors/Application:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvErrors/Application:Width</string>
</key>
<value>
<string>System.Int32:98</string>
</value>
</item>
<item>
<key>
<string>olvErrors/Application:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvErrors/Error:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvErrors/Error:Width</string>
</key>
<value>
<string>System.Int32:952</string>
</value>
</item>
<item>
<key>
<string>olvErrors/Error:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvErrors/LastSortColumn</string>
</key>
<value>
<string>System.String:Application</string>
</value>
</item>
<item>
<key>
<string>olvErrors/LastSortOrder</string>
</key>
<value>
<string>System.Int32:1</string>
</value>
</item>
<item>
<key>
<string>ProgressDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:302,112</string>
</value>
</item>
<item>
<key>
<string>Hotkey: OpenWebsite</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>Hotkey: Edit</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>Hotkey: Update</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>Hotkey: ForceDownload</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>Hotkey: InstallSelected</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>Hotkey: OpenFile</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>Hotkey: OpenFolder</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>Hotkey: CheckUpdate</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>Hotkey: UpdateAndInstall</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>InstallingApplicationsDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:406,250</string>
</value>
</item>
<item>
<key>
<string>InstallingApplicationsDialog/Location</string>
</key>
<value>
<string>System.Drawing.Point:164,724</string>
</value>
</item>
<item>
<key>
<string>InstallingApplicationsDialog/WindowState</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>olvLog/Time:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvLog/Time:Width</string>
</key>
<value>
<string>System.Int32:55</string>
</value>
</item>
<item>
<key>
<string>olvLog/Time:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvLog/Message:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvLog/Message:Width</string>
</key>
<value>
<string>System.Int32:310</string>
</value>
</item>
<item>
<key>
<string>olvLog/Message:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvLog/LastSortColumn</string>
</key>
<value>
<string>System.String:Time</string>
</value>
</item>
<item>
<key>
<string>olvLog/LastSortOrder</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>InstallingApplicationsDialog/Expanded</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>DefaultCommand</string>
</key>
<value>
<string>System.String:////////////////////////////////////////////////////////////////////////////////////////
/// version ? Lots of changes
///
/// Changelog:
/// - Allow for non-versioned output folder paths
/// - Logging!
/// - Call choco directly, expected to be at the default location.
///
// REQUIRES:
// global vars: saveDir=corresponds to download location of installer file
// app vars: nopush, checksum64file=corresponds to 64 bit install file
// file vars: same as specified by chocopkgup
// get package variable 'cscript'
string varCScript = "";
varCScript = app.Variables.ReplaceAllInString("{cscript}").Trim();
Ketarin.Forms.LogDialog.Log(app,"cscript='" + varCScript + "'");
Ketarin.Forms.LogDialog.Log(app,"If cscript is set to 1, checksums will be calculated but the package won't be pushed.");
Ketarin.Forms.LogDialog.Log(app,"If cscript is set to 2, checksums will be calculated AND the package will be pushed.");
// determine whether we run this by checking cscript exists AND is 1 or 2
if ((varCScript == "1") || (varCScript == "2"))
{
// ketarin variables we pass for this script to use
string varAppname = app.Variables.ReplaceAllInString("{appname}");
string varVersion = app.Variables.ReplaceAllInString("{version}");
string varChocoPkgOutput = System.IO.Path.Combine(app.Variables.ReplaceAllInString("{autoPackagesFolder}"), "_output");
string varChecksum = app.Variables.ReplaceAllInString("{checksum}");
string varChecksumx64 = app.Variables.ReplaceAllInString("{checksumx64}");
string varChecksum64File = app.Variables.ReplaceAllInString("{url64}");
string varSaveDir = app.Variables.ReplaceAllInString("{saveDir}");
// custom variables used in this script
// equivalent to ketarin variable "{file}"
string savePath = app.PreviousLocation;
string pkgPath = System.IO.Path.Combine(varChocoPkgOutput, varAppname, varVersion);
if (!System.IO.Directory.Exists(pkgPath))
{
pkgPath = System.IO.Path.Combine(varChocoPkgOutput, varAppname);
Ketarin.Forms.LogDialog.Log(app,"Using the output folder without a version");
}
Ketarin.Forms.LogDialog.Log(app, "Using package file at " + pkgPath);
string fileNameNuspec = System.String.Concat(varAppname, ".nuspec");
string fileUriNuspec = System.IO.Path.Combine(pkgPath, fileNameNuspec);
string fileNameNupkg = System.String.Concat(varAppname, ".", varVersion, ".nupkg");
string fileUriNupkg = System.IO.Path.Combine(pkgPath, fileNameNupkg);
//MessageBox.Show("pkgPath=" + pkgPath + System.Environment.NewLine
// + "savePath=" + savePath);
// do not re-push package if package already created
System.DateTime today = System.DateTime.Today;
System.DateTime pkgCreateDate = System.IO.File.GetCreationTime(pkgPath);
if (today > pkgCreateDate)
{
return;
}
// calculate SHA256 from {url} Note we are leveraging ketarin's downloaded copy
System.IO.FileStream fileSha = new System.IO.FileStream(savePath, System.IO.FileMode.Open);
System.Security.Cryptography.SHA256 sha256 = new System.Security.Cryptography.SHA256Managed();
byte[] retValSha = sha256.ComputeHash(fileSha);
fileSha.Close();
// build string from byte value
System.Text.StringBuilder sbSha = new System.Text.StringBuilder();
for (int i = 0; i < retValSha.Length; i++)
{
sbSha.Append(retValSha[i].ToString("x2"));
}
// find $pkgPath -iname "*.nuspec" -o -iname "*.ps1" -exec sed -i 's/'$sbSha'/{checksum}/g' '{}' \;
string replaceChecksum = sbSha.ToString();
Ketarin.Forms.LogDialog.Log(app, "Checksum for url is " + replaceChecksum);
//MessageBox.Show(replaceChecksum);
System.Collections.Generic.List<string> pkgFileList = new System.Collections.Generic.List<string>(System.IO.Directory.GetFiles(pkgPath, "*.ps1", System.IO.SearchOption.AllDirectories));
string[] filesNuspec = System.IO.Directory.GetFiles(pkgPath, "*.nuspec", System.IO.SearchOption.AllDirectories);
pkgFileList.AddRange(filesNuspec);
string[] files = pkgFileList.ToArray();
foreach (string file in files)
{
try
{
string contents = System.IO.File.ReadAllText(file);
//MessageBox.Show(contents);
contents = contents.Replace("{checksum}", replaceChecksum);
//MessageBox.Show(contents);
// Make files writable
// File.SetAttributes(file, FileAttributes.Normal);
System.IO.File.WriteAllText(file, contents);
}
catch (System.Exception ex)
{
System.Console.WriteLine(ex.Message);
}
}
// Get Checksum for 64bit file if url64 exists
if (varChecksum64File != "{url64}" && varChecksum64File != "\"\"" && !System.String.IsNullOrEmpty(varChecksum64File))
{
// TODO: verify and validate URI checksum64file points to a downloadable file
// string varChecksum64basefile = app.Variables.ReplaceAllInString("{url64:basefile}");
string varChecksum64ext = app.Variables.ReplaceAllInString("{url64:ext}");
string saveFileName64 = System.String.Concat(varAppname, "_64_", varVersion, ".", varChecksum64ext);
string savePath64 = System.IO.Path.Combine(varSaveDir, saveFileName64);
// we must download the file to calculate checksum ... may as well save it
Ketarin.Forms.LogDialog.Log(app, "Downloading '" + varChecksum64File + "' to '" + savePath64 + "'.");
System.Net.WebClient webClient = new System.Net.WebClient();
webClient.DownloadFile(varChecksum64File, savePath64);
// calculate SHA256 from file of url pointed to by 'checksum64file'
System.IO.FileStream file64Sha = new System.IO.FileStream(savePath64, System.IO.FileMode.Open);
System.Security.Cryptography.SHA256 sha256_64 = new System.Security.Cryptography.SHA256Managed();
byte[] retVal64Sha = sha256_64.ComputeHash(file64Sha);
file64Sha.Close();
// build string from byte value
System.Text.StringBuilder sb64Sha = new System.Text.StringBuilder();
for (int i = 0; i < retVal64Sha.Length; i++)
{
sb64Sha.Append(retVal64Sha[i].ToString("x2"));
}
// find $pkgPath -iname "*.nuspec" -o -iname "*.ps1" -exec sed -i 's/'$sb64Sha'/{checksumx64}/g' '{}' \;
// Note chocopkgup will strip 1 set of curly braces so {{checksum}} becomes {checksum}
string replace64Checksum = sb64Sha.ToString();
Ketarin.Forms.LogDialog.Log(app, "Checksum for url64 is " + replace64Checksum);
foreach (string file in files)
{
try
{
string contents = System.IO.File.ReadAllText(file);
//MessageBox.Show(contents);
contents = contents.Replace("{checksumx64}", replace64Checksum);
//MessageBox.Show(contents);
System.IO.File.WriteAllText(file, contents);
}
catch (System.Exception ex)
{
System.Console.WriteLine(ex.Message);
}
}
}
// delete existing nupkg made by chocopkgup; we leverage chocopkgup to create the structure/files in destination
Ketarin.Forms.LogDialog.Log(app, "Deleting the existing nupkg before repacking at " + fileUriNupkg);
System.Diagnostics.Process process1 = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo proc1 = new System.Diagnostics.ProcessStartInfo();
proc1.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc1.UseShellExecute = true;
proc1.WorkingDirectory = pkgPath;
proc1.FileName = "cmd.exe";
proc1.Arguments = "/c " + "del /f " + fileUriNupkg;
process1.StartInfo = proc1;
process1.Start();
process1.WaitForExit(30000);
// create a new nupkg
Ketarin.Forms.LogDialog.Log(app, "Packing up the package, this time with checksums");
System.Diagnostics.Process process2 = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo proc2 = new System.Diagnostics.ProcessStartInfo();
proc2.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized;
proc2.UseShellExecute = false;
proc2.WorkingDirectory = pkgPath;
proc2.FileName = "C:\\ProgramData\\Chocolatey\\bin\\choco.exe";
proc2.Arguments = "pack " + fileUriNuspec;
proc2.RedirectStandardOutput = true;
proc2.RedirectStandardError = true;
proc2.CreateNoWindow = true;
process2.StartInfo = proc2;
process2.OutputDataReceived += (s, e) => { if (e != null) Ketarin.Forms.LogDialog.Log(app, e.Data); };
process2.ErrorDataReceived += (s, e) => { if (e != null) Ketarin.Forms.LogDialog.Log(app, e.Data); };
process2.EnableRaisingEvents = true;
process2.Start();
process2.BeginErrorReadLine();
process2.BeginOutputReadLine();
process2.WaitForExit(30000);
process2.StartInfo = proc2;
process2.Start();
// push the nupkg
if (varCScript == "2")
{
System.Threading.Thread.Sleep(2000);
System.Int32 exitCode = -1;
Ketarin.Forms.LogDialog.Log(app, "Pushing the package");
System.Diagnostics.Process process3 = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo proc3 = new System.Diagnostics.ProcessStartInfo();
proc3.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized;
proc3.UseShellExecute = false;
proc3.WorkingDirectory = pkgPath;
proc3.FileName = "C:\\ProgramData\\Chocolatey\\bin\\choco.exe";
// find nupkg in pkgPath
string[] pushPkg = System.IO.Directory.GetFiles(pkgPath, "*.nupkg", System.IO.SearchOption.TopDirectoryOnly);
foreach (System.String file in pushPkg)
{
Ketarin.Forms.LogDialog.Log(app, "Pushing " + file + " to dot org");
proc3.Arguments = "push " + file;
}
proc3.RedirectStandardOutput = true;
proc3.RedirectStandardError = true;
proc3.CreateNoWindow = true;
process3.StartInfo = proc3;
process3.OutputDataReceived += (s, e) => { if (e != null) Ketarin.Forms.LogDialog.Log(app, e.Data); };
process3.ErrorDataReceived += (s, e) => { if (e != null) Ketarin.Forms.LogDialog.Log(app, e.Data); };
process3.EnableRaisingEvents = true;
process3.Start();
process3.BeginErrorReadLine();
process3.BeginOutputReadLine();
System.Boolean exited = process3.WaitForExit(120000);
if (exited)
{
exitCode = process3.ExitCode;
}
if (exitCode != 0)
{
throw new System.Exception("Push did not finish successfully. See the log for details.");
Ketarin.Forms.LogDialog.Log(app, "This is a failure. However Ketarin doesn't error on post updates.");
}
}
}</string>
</value>
</item>
<item>
<key>
<string>DefaultCommandType</string>
</key>
<value>
<string>System.String:CS</string>
</value>
</item>
<item>
<key>
<string>PostUpdateCommand</string>
</key>
<value>
<string>System.String:</string>
</value>
</item>
<item>
<key>
<string>PostUpdateCommandType</string>
</key>
<value>
<string>System.String:Batch</string>
</value>
</item>
<item>
<key>
<string>DefaultApplication</string>
</key>
<value>
<string>System.String:<?xml version="1.0" encoding="utf-8"?>
<Jobs>
<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<WebsiteUrl />
<UserAgent />
<UserNotes />
<LastFileSize>0</LastFileSize>
<LastFileDate xsi:nil="true" />
<IgnoreFileInformation>false</IgnoreFileInformation>
<DownloadBeta>Default</DownloadBeta>
<CheckForUpdatesOnly>false</CheckForUpdatesOnly>
<VariableChangeIndicator />
<HashVariable />
<HashType>None</HashType>
<CanBeShared>true</CanBeShared>
<ShareApplication>false</ShareApplication>
<ExclusiveDownload>false</ExclusiveDownload>
<HttpReferer />
<SetupInstructions />
<Variables>
<item>
<key>
<string>nopush</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>Textual</VariableType>
<Regex />
<TextualContent>--nopush</TextualContent>
<Name>nopush</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>version</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>Last program version.*?([\d\.]+)</Regex>
<Url>x</Url>
<Name>version</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>url</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>Textual</VariableType>
<Regex />
<TextualContent>{getUrl}</TextualContent>
<Name>url</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>url64</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>Textual</VariableType>
<Regex />
<TextualContent>{getUrl64}</TextualContent>
<Name>url64</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>getUrl</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>[^ "'&lt;&gt;\*]+\.exe</Regex>
<Url>x</Url>
<Name>getUrl</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>getUrl64</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>[^ "'&lt;&gt;\*]+\.exe</Regex>
<Url>x</Url>
<Name>getUrl64</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>checksum</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>[A-Fa-f0-9]{32}</Regex>
<Url>md5</Url>
<TextualContent>{checksum}</TextualContent>
<Name>checksum</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>checksumx64</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>(?&lt;=ResponseUri: )[^\r\n]+</Regex>
<Url>{url64}</Url>
<TextualContent>{checksum}</TextualContent>
<Name>checksumx64</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>checksum64file</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>Textual</VariableType>
<Regex />
<TextualContent>{url64}</TextualContent>
<Name>checksum64file</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>cscript</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>Textual</VariableType>
<Regex />
<TextualContent>0</TextualContent>
<Name>cscript</Name>
</UrlVariable>
</value>
</item>
</Variables>
<ExecuteCommand />
<ExecutePreCommand />
<ExecuteCommandType>Batch</ExecuteCommandType>
<ExecutePreCommandType>Batch</ExecutePreCommandType>
<Category />
<SourceType>FixedUrl</SourceType>
<DeletePreviousFile>false</DeletePreviousFile>
<Enabled>true</Enabled>
<FileHippoId />
<TargetPath>{saveDir}\{appname}_{version}.{url:ext}</TargetPath>
<FixedDownloadUrl>{url}</FixedDownloadUrl>
<Name>x </Name>
</ApplicationJob>
</Jobs></string>
</value>
</item>
<item>
<key>
<string>olvJobs/x:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/x:Width</string>
</key>
<value>
<string>System.Int32:89</string>
</value>
</item>
<item>
<key>
<string>olvJobs/x:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Filesize:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Filesize:Width</string>
</key>
<value>
<string>System.Int32:68</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Filesize:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:5</string>
</value>
</item>
<item>
<key>
<string>olvJobs/url:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/url:Width</string>
</key>
<value>
<string>System.Int32:147</string>
</value>
</item>
<item>
<key>
<string>olvJobs/url:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvJobs/host:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/host:Width</string>
</key>
<value>
<string>System.Int32:120</string>
</value>
</item>
<item>
<key>
<string>olvJobs/host:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:10</string>
</value>
</item>
<item>
<key>
<string>olvJobs/packageGuid:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/packageGuid:Width</string>
</key>
<value>
<string>System.Int32:77</string>
</value>
</item>
<item>
<key>
<string>olvJobs/packageGuid:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:14</string>
</value>
</item>
<item>
<key>
<string>olvJobs/fileDate:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/fileDate:Width</string>
</key>
<value>
<string>System.Int32:97</string>
</value>
</item>
<item>
<key>
<string>olvJobs/fileDate:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:3</string>
</value>
</item>
<item>
<key>
<string>olvJobs/fixedUrl:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/fixedUrl:Width</string>
</key>
<value>
<string>System.Int32:96</string>
</value>
</item>
<item>
<key>
<string>olvJobs/fixedUrl:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:9</string>
</value>
</item>
<item>
<key>
<string>olvJobs/referer:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/referer:Width</string>
</key>
<value>
<string>System.Int32:65</string>
</value>
</item>
<item>
<key>
<string>olvJobs/referer:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:13</string>
</value>
</item>
<item>
<key>
<string>olvJobs/User-Agent:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/User-Agent:Width</string>
</key>
<value>
<string>System.Int32:80</string>
</value>
</item>
<item>
<key>
<string>olvJobs/User-Agent:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:8</string>
</value>
</item>
<item>
<key>
<string>olvJobs/DeletePreviousFile:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/DeletePreviousFile:Width</string>
</key>
<value>
<string>System.Int32:41</string>
</value>
</item>
<item>
<key>
<string>olvJobs/DeletePreviousFile:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:20</string>
</value>
</item>
<item>
<key>
<string>olvJobs/VariableChangeIndicator:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/VariableChangeIndicator:Width</string>
</key>
<value>
<string>System.Int32:55</string>
</value>
</item>
<item>
<key>
<string>olvJobs/VariableChangeIndicator:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:15</string>
</value>
</item>
<item>
<key>
<string>olvJobs/github:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/github:Width</string>
</key>
<value>
<string>System.Int32:64</string>
</value>
</item>
<item>
<key>
<string>olvJobs/github:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:16</string>
</value>
</item>
<item>
<key>
<string>olvJobs/kde:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/kde:Width</string>
</key>
<value>
<string>System.Int32:49</string>
</value>
</item>
<item>
<key>
<string>olvJobs/kde:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:17</string>
</value>
</item>
<item>
<key>
<string>olvJobs/cscript:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/cscript:Width</string>
</key>
<value>
<string>System.Int32:32</string>
</value>
</item>
<item>
<key>
<string>olvJobs/cscript:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:22</string>
</value>
</item>
<item>
<key>
<string>olvJobs/enabled:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/enabled:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/enabled:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:26</string>
</value>
</item>
<item>
<key>
<string>olvJobs/nopush:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/nopush:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/nopush:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:23</string>
</value>
</item>
<item>
<key>
<string>olvJobs/domainname:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/domainname:Width</string>
</key>
<value>
<string>System.Int32:166</string>
</value>
</item>
<item>
<key>
<string>olvJobs/domainname:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:10</string>
</value>
</item>
<item>
<key>
<string>olvJobs/domain:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/domain:Width</string>
</key>
<value>
<string>System.Int32:141</string>
</value>
</item>
<item>
<key>
<string>olvJobs/domain:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:17</string>
</value>
</item>
<item>
<key>
<string>olvJobs/checksum64file:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/checksum64file:Width</string>
</key>
<value>
<string>System.Int32:91</string>
</value>
</item>
<item>
<key>
<string>olvJobs/checksum64file:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:25</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Target2:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Target2:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/Target2:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvJobs/AppName:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/AppName:Width</string>
</key>
<value>
<string>System.Int32:164</string>
</value>
</item>
<item>
<key>
<string>olvJobs/AppName:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvJobs/version:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/version:Width</string>
</key>
<value>
<string>System.Int32:120</string>
</value>
</item>
<item>
<key>
<string>olvJobs/version:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:1</string>
</value>
</item>
<item>
<key>
<string>olvJobs/filesize:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/filesize:Width</string>
</key>
<value>
<string>System.Int32:68</string>
</value>
</item>
<item>
<key>
<string>olvJobs/filesize:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:8</string>
</value>
</item>
<item>
<key>
<string>olvJobs/user-agent:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/user-agent:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/user-agent:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:12</string>
</value>
</item>
<item>
<key>
<string>olvJobs/delPrevFile:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/delPrevFile:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/delPrevFile:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:27</string>
</value>
</item>
<item>
<key>
<string>olvJobs/varChangeIndicator:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/varChangeIndicator:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/varChangeIndicator:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:20</string>
</value>
</item>
<item>
<key>
<string>olvJobs/varChgInd:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/varChgInd:Width</string>
</key>
<value>
<string>System.Int32:82</string>
</value>
</item>
<item>
<key>
<string>olvJobs/varChgInd:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:16</string>
</value>
</item>
<item>
<key>
<string>olvJobs/url64:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/url64:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/url64:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:24</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hash:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hash:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hash:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:24</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashType:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashType:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashType:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:18</string>
</value>
</item>
<item>
<key>
<string>ImportFromDatabaseDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:524,1596</string>
</value>
</item>
<item>
<key>
<string>olvApplications/Application name:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvApplications/Application name:Width</string>
</key>
<value>
<string>System.Int32:291</string>
</value>
</item>
<item>
<key>
<string>olvApplications/Application name:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvApplications/Last updated:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvApplications/Last updated:Width</string>
</key>
<value>
<string>System.Int32:130</string>
</value>
</item>
<item>
<key>
<string>olvApplications/Last updated:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvApplications/Uses:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvApplications/Uses:Width</string>
</key>
<value>
<string>System.Int32:40</string>
</value>
</item>
<item>
<key>
<string>olvApplications/Uses:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvApplications/LastSortColumn</string>
</key>
<value>
<string>System.String:Application name</string>
</value>
</item>
<item>
<key>
<string>olvApplications/LastSortOrder</string>
</key>
<value>
<string>System.Int32:1</string>
</value>
</item>
<item>
<key>
<string>ChooseAppsToInstallDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:618,433</string>
</value>
</item>
<item>
<key>
<string>ChooseAppsToInstallDialog/Location</string>
</key>
<value>
<string>System.Drawing.Point:675,637</string>
</value>
</item>
<item>
<key>
<string>ChooseAppsToInstallDialog/WindowState</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>olvApps/Name:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvApps/Name:Width</string>
</key>
<value>
<string>System.Int32:263</string>
</value>
</item>
<item>
<key>
<string>olvApps/Name:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvApps/LastSortColumn</string>
</key>
<value>
<string>System.String:Name</string>
</value>
</item>
<item>
<key>
<string>olvApps/LastSortOrder</string>
</key>
<value>
<string>System.Int32:1</string>
</value>
</item>
<item>
<key>
<string>olvLists/Name:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvLists/Name:Width</string>
</key>
<value>
<string>System.Int32:80</string>
</value>
</item>
<item>
<key>
<string>olvLists/Name:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvLists/Applications:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvLists/Applications:Width</string>
</key>
<value>
<string>System.Int32:80</string>
</value>
</item>
<item>
<key>
<string>olvLists/Applications:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:-1</string>
</value>
</item>
<item>
<key>
<string>olvLists/LastSortColumn</string>
</key>
<value>
<string>System.String:Name</string>
</value>
</item>
<item>
<key>
<string>olvLists/LastSortOrder</string>
</key>
<value>
<string>System.Int32:0</string>
</value>
</item>
<item>
<key>
<string>ChooseAppsToInstallDialog/ListsView</string>
</key>
<value>
<string>System.Int32:4</string>
</value>
</item>
<item>
<key>
<string>olvJobs/proto:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/proto:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/proto:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:11</string>
</value>
</item>
<item>
<key>
<string>CopyFileInstructionDialog/Size</string>
</key>
<value>
<string>System.Drawing.Size:402,163</string>
</value>
</item>
<item>
<key>
<string>olvJobs/bytes:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/bytes:Width</string>
</key>
<value>
<string>System.Int32:71</string>
</value>
</item>
<item>
<key>
<string>olvJobs/bytes:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:7</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashExtVar:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashExtVar:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashExtVar:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:23</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashInternal:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashInternal:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashInternal:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:19</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashExternal:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashExternal:Width</string>
</key>
<value>
<string>System.Int32:60</string>
</value>
</item>
<item>
<key>
<string>olvJobs/hashExternal:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:20</string>
</value>
</item>
<item>
<key>
<string>olvJobs/checksum64:Visibility</string>
</key>
<value>
<string>System.Boolean:True</string>
</value>
</item>
<item>
<key>
<string>olvJobs/checksum64:Width</string>
</key>
<value>
<string>System.Int32:33</string>
</value>
</item>
<item>
<key>
<string>olvJobs/checksum64:LastDisplayIndex</string>
</key>
<value>
<string>System.Int32:21</string>
</value>
</item>
</dictionary>
</Settings>
<GlobalVariables>
<Variable Name="7z" Content="7z.exe" />
<Variable Name="saveDir" Content="c:\chocolatey-auto-save" />
<Variable Name="autoPackagesFolder" Content="c:\code\chocolatey-packages\automatic" />
<Variable Name="nopush" Content="--nopush" />
<Variable Name="cscript" Content="2" />
<Variable Name="null" Content="null" />
<Variable Name="ie32" Content="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)" />
<Variable Name="ie64" Content="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Media Center PC 5.0; SLCC1; Tablet PC 2.0; .NET4.0C)" />
<Variable Name="firefox" Content="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10" />
<Variable Name="opera" Content="Opera/9.80 (Windows NT 6.1; U; en) Presto/2.6.30 Version/10.62" />
<Variable Name="chrome" Content="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3" />
<Variable Name="wget" Content="wget/1.9+cvs-stable+(red+hat+modified)" />
<Variable Name="curl" Content="pycurl/7.18.2" />
<Variable Name="checksum" Content="{checksum}" />
<Variable Name="checksumx64" Content="{checksumx64}" />
<Variable Name="packageGuid" Content="{packageGuid}" />
<Variable Name="url64" Content="{url64}" />
<Variable Name="force" Content=" " />
</GlobalVariables>
<CodeSnippets>
<Snippet Guid="7158800B-A188-4CAB-927C-31AA36FDD049" Name="chocopkgup" Type="1">chocopkgup {nopush} --packagename={appname} --version={version} --pg="{packageGuid}" --url="{preupdate-url}" --urlx64="{url64}" --packagepath="{file}" --checksum="{checksum}" --c64="{checksumx64}" --debug</Snippet>
<Snippet Guid="BB8AF683-DA06-4C20-8434-9F854C46B961" Name="cs" Type="0">////////////////////////////////////////////////////////////////////////////////////////
/// version 6.5
///
/// FIX: do not re-push package if package already created
///
// REQUIRES:
// global vars: workdir=corresponds to download location of installer file
// app vars: nopush, checksum64file=corresponds to 64 bit install file
// file vars: same as specified by chocopkgup
string varCScript = app.Variables.ReplaceAllInString("{cscript}");
if ((varCScript == "1") || (varCScript == "2")) {
string varAppname = app.Variables.ReplaceAllInString("{appname}");
string varVersion = app.Variables.ReplaceAllInString("{version}");
string varChocoPkgOutput = System.IO.Path.Combine(app.Variables.ReplaceAllInString("{autoPackagesFolder}"), "_output");
string varChecksum = app.Variables.ReplaceAllInString("{checksum}");
string varChecksumx64 = app.Variables.ReplaceAllInString("{checksumx64}");
string varChecksum64File = app.Variables.ReplaceAllInString("{checksum64file}");
string varChecksum64basefile = app.Variables.ReplaceAllInString("{checksum64file:basefile}");
string varChecksum64ext = app.Variables.ReplaceAllInString("{checksum64file:ext}");
string varWorkdir = app.Variables.ReplaceAllInString("{workdir}");
string saveFileName64 = String.Concat(varChecksum64basefile, ".", varChecksum64ext);
// equivalent to ketarin variable "{file}"
//string savePath = app.PreviousLocation;
string savePath = app.PreviousLocation;
string pkgPath = Path.Combine(varChocoPkgOutput, varAppname, varVersion);
if (!System.IO.Directory.Exists(pkgPath)) {
pkgPath = Path.Combine(varChocoPkgOutput, varAppname);
}
string fileNameNuspec = String.Concat(varAppname, ".nuspec");
string fileUriNuspec = Path.Combine(pkgPath, fileNameNuspec);
string fileNameNupkg = String.Concat(varAppname, ".", varVersion, ".nupkg");
string fileUriNupkg = Path.Combine(pkgPath, fileNameNupkg);
// do not re-push package if package already created
DateTime today = DateTime.Today;
DateTime pkgCreateDate = File.GetCreationTime(pkgPath);
if (today > pkgCreateDate) {
return;
}
if (varChecksum == "{checksum}") {
// calculate SHA1
System.IO.FileStream fileSha1 = new System.IO.FileStream(savePath, System.IO.FileMode.Open);
System.Security.Cryptography.SHA1 sha1 = new System.Security.Cryptography.SHA1CryptoServiceProvider();
byte[] retValSha1 = sha1.ComputeHash(fileSha1);
fileSha1.Close();
// create a string
System.Text.StringBuilder sbSha1 = new System.Text.StringBuilder();
for (int i = 0; i < retValSha1.Length; i++) {
sbSha1.Append(retValSha1[i].ToString("x2"));
}
string replaceChecksum = sbSha1.ToString();
List<string> fileList = new List<string>(Directory.GetFiles(pkgPath, "*.ps1", SearchOption.AllDirectories));
string[] filesNuspec = Directory.GetFiles(pkgPath, "*.nuspec", SearchOption.AllDirectories);
fileList.AddRange(filesNuspec);
string[] files = fileList.ToArray();
foreach (string file in files) {
try {
string contents = File.ReadAllText(file);
contents = contents.Replace("{checksum}", replaceChecksum);
// Make files writable
// File.SetAttributes(file, FileAttributes.Normal);
File.WriteAllText(file, contents);
} catch (Exception ex) {
Console.WriteLine(ex.Message);
}
}
}
// only get checksum if {checksum64file} exists and points to a downloadable file
if (varChecksumx64 == "{checksumx64}" && varChecksum64File != "{checksum64file}") {
string savePath64 = Path.Combine(varWorkdir, saveFileName64);
System.Net.WebClient webClient = new System.Net.WebClient();
webClient.DownloadFile(varChecksum64File, savePath64);
// calculate SHA1
System.IO.FileStream file64Sha1 = new System.IO.FileStream(savePath64, System.IO.FileMode.Open);
System.Security.Cryptography.SHA1 sha164 = new System.Security.Cryptography.SHA1CryptoServiceProvider();
byte[] retVal64Sha1 = sha164.ComputeHash(file64Sha1);
file64Sha1.Close();
// create a string
System.Text.StringBuilder sb64Sha1 = new System.Text.StringBuilder();
for (int i = 0; i < retVal64Sha1.Length; i++) {
sb64Sha1.Append(retVal64Sha1[i].ToString("x2"));
}
string replace64Checksum = sb64Sha1.ToString();
List<string> fileList = new List<string>(Directory.GetFiles(pkgPath, "*.ps1", SearchOption.AllDirectories));
string[] filesNuspec = Directory.GetFiles(pkgPath, "*.nuspec", SearchOption.AllDirectories);
fileList.AddRange(filesNuspec);
string[] files = fileList.ToArray();
foreach (string file in files) {
try {
string contents = File.ReadAllText(file);
contents = contents.Replace("{checksumx64}", replace64Checksum);
File.WriteAllText(file, contents);
} catch (Exception ex) {
Console.WriteLine(ex.Message);
}
}
}
int checkBeta = varVersion.Split('-').Length;
if ( checkBeta == 2) {
string strPre = varVersion.Split('-')[1];
string strReplace = String.Concat(strPre, "</version>");
string strCheck = String.Concat(".", DateTime.Now.ToString("yyyyMMdd"), "</version>");
string[] fileNuspec = Directory.GetFiles(pkgPath, "*.nuspec", SearchOption.AllDirectories);
foreach (string file in fileNuspec) {
string contents = File.ReadAllText(file);
contents = contents.Replace(strCheck, strReplace);
File.WriteAllText(file, contents);
}
}
// delete existing nupkg made by chocopkgup; we leverage chocopkgup to create the structure/files in destination
System.Diagnostics.Process process1 = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo proc1 = new System.Diagnostics.ProcessStartInfo();
proc1.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc1.UseShellExecute = true;
proc1.WorkingDirectory = pkgPath;
proc1.FileName = "cmd.exe";
proc1.Arguments = "/c "+"del /f " + fileUriNupkg;
process1.StartInfo = proc1;
process1.Start();
// create a new nupkg
System.Diagnostics.Process process2 = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo proc2 = new System.Diagnostics.ProcessStartInfo();
proc2.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc2.UseShellExecute = true;
proc2.WorkingDirectory = pkgPath;
proc2.FileName = "cmd.exe";
proc2.Arguments = "/c "+"choco pack "+fileUriNuspec+" -d";
process2.StartInfo = proc2;
process2.Start();
// push the nupkg
if (varCScript == "2") {
System.Diagnostics.Process process3 = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo proc3 = new System.Diagnostics.ProcessStartInfo();
proc3.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc3.UseShellExecute = true;
proc3.WorkingDirectory = pkgPath;
proc3.FileName = "cmd.exe";
// find nupkg in pkgPath
string[] pushPkg = Directory.GetFiles(pkgPath, "*.nupkg", SearchOption.TopDirectoryOnly);
foreach (String file in pushPkg) {
proc3.Arguments = "/c "+"cpush " + file + " -d";
}
process3.StartInfo = proc3;
System.Threading.Thread.Sleep(2000);
process3.Start();
}
}</Snippet>
</CodeSnippets>
<SetupLists />
</Ketarin>
# If you change this value, also change it in the global settings
# The name will also be saveDir
$saveDir = "c:\chocolatey-auto-save"
Write-Host "Ensuring that the Ketarin auto save folder is set appropriately."
if (!(Test-Path($saveDir))) {
mkdir $saveDir
}
choco upgrade chocolateypackageupdater -y
choco upgrade ketarin -y
# Setup
## Ketarin / ChocolateyPackageUpdater Automatic Packaging
* Review `ketarin_setup.ps1` to ensure all items are set appropriately. Uncomment/change anything you need to now.
* Run `ketarin_setup.ps1`
* Open ketarin after installing it, open the settings and import `KetarinSettings.xml`.
* Set up push for Chocolatey community feed with your API key.
* Ensure `git push` doesn't require credentials.
* Review `ops/ketarinupdate.cmd` to ensure it is good to go.
**Note**: Use `ops/ketarinupdate.cmd` or similar to schedule updates.
## Automatic Updater (AU)
* Ensure you have the [Chocolatey PowerShell profile](https://chocolatey.org/docs/troubleshooting#why-does-choco-intab-not-work-for-me) installed.
* Open `au_setup.ps1` in an editor and review it.
* Run PowerShell `5.x` as Administrator (AU framework supports PowerShell 6+ but this setup does not)
* Run `au_setup.ps1`.
* Configure AU [plugins](https://github.com/majkinetor/au/blob/master/Plugins.md).
* Configure [AppVeyor](https://github.com/majkinetor/au/wiki/AppVeyor).
* Configure [local run](https://github.com/majkinetor/au/wiki#local-run).
$ErrorActionPreference = 'Stop';
$packageArgs = @{
packageName = 'free-download-manager'
softwareName = 'free-download-manager*'
fileType = 'EXE'
validExitCodes= @(0, 3010, 1605, 1614, 1641)
silentArgs = '/qn /norestart /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'
}
$uninstalled = $false
[array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName']
if ($key.Count -eq 1) {
$key | % {
$packageArgs['file'] = "$($_.UninstallString)"
if ($packageArgs['fileType'] -eq 'MSI') {
$packageArgs['silentArgs'] = "$($_.PSChildName) $($packageArgs['silentArgs'])"
$packageArgs['file'] = ''
} else {
}
Uninstall-ChocolateyPackage @packageArgs
}
} elseif ($key.Count -eq 0) {
Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
Write-Warning "$($key.Count) matches found!"
Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
Write-Warning "Please alert package maintainer the following keys were matched:"
$key | % {Write-Warning "- $($_.DisplayName)"}
}
Log in or click on link to see number of positives.
- fdm_x64_setup.exe (8f8d8682b321) - ## / 64
- fdm_x86_setup.exe (79ce2f6ba236) - ## / 67
- FreeDownloadManager.6.0.nupkg (3a5031f786dd) - ## / 59
In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).
Chocolatey Pro provides runtime protection from possible malware.
Add to Builder | Version | Downloads | Last Updated | Status |
---|---|---|---|---|
Free Download Manager 6.18.1 | 10179 | Friday, December 23, 2022 | Approved | |
Free Download Manager 6.17.0 | 2678 | Tuesday, August 23, 2022 | Approved | |
Free Download Manager 6.16.2 | 1782 | Thursday, June 2, 2022 | Approved | |
Free Download Manager 6.16.1 | 1540 | Wednesday, April 13, 2022 | Approved | |
Free Download Manager 6.16.0 | 1427 | Thursday, March 3, 2022 | Approved | |
Free Download Manager 6.15.3 | 2637 | Wednesday, October 27, 2021 | Approved | |
Free Download Manager 6.15.2 | 1598 | Tuesday, September 14, 2021 | Approved | |
Free Download Manager 6.14.2 | 2486 | Tuesday, May 25, 2021 | Approved | |
Free Download Manager 6.14.1 | 997 | Monday, April 19, 2021 | Approved | |
Free Download Manager 6.14.0 | 608 | Tuesday, April 6, 2021 | Approved | |
Free Download Manager 6.13.4 | 1413 | Wednesday, February 10, 2021 | Approved | |
Free Download Manager 6.12.1 | 1911 | Thursday, November 19, 2020 | Approved | |
Free Download Manager 6.11.0 | 1643 | Tuesday, September 8, 2020 | Approved | |
Free Download Manager 6.10.2 | 345 | Wednesday, September 2, 2020 | Approved | |
Free Download Manager 6.10.1.3069 | 279 | Friday, July 31, 2020 | Approved | |
Free Download Manager 6.0 | 117 | Wednesday, March 24, 2021 | Approved | |
Free Download Manager 3.9.5.1533 | 16295 | Monday, April 13, 2015 | Approved | |
Free Download Manager 3.9.2.0 | 2024 | Friday, May 10, 2013 | Approved | |
Free Download Manager 3.8.1173.0 | 744 | Sunday, February 26, 2012 | Approved |
This package has no dependencies.
Ground Rules:
- This discussion is only about Free Download Manager and the Free Download Manager package. If you have feedback for Chocolatey, please contact the Google Group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or Free Download Manager, or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.