-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* stable: (version) 0.9.9.3 (doc) update nuspec / changelog for release (GH-211) Use full path to msiexec (GH-197) Uninstaller check for registry existence (GH-167) Get-ChocolateyWebFile create directory (GH-207) Set up variables for powershell scripts (GH-202)(log) Enhance formatting escaping (GH-202) Fix formatting on Noop logging (GH-208) Do not escape curly braces in scripts (GH-168) Retry .NET Fx if first install fails (GH-168) .NET Framework 4.0 install egg/chicken (GH-207) Some pkgs incorrectly use arguments
- Loading branch information
Showing
13 changed files
with
177 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/chocolatey.resources/helpers/chocolateyScriptRunner.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
param( | ||
[alias("ia","installArgs")][string] $installArguments = '', | ||
[alias("o","override","overrideArguments","notSilent")] | ||
[switch] $overrideArgs = $false, | ||
[alias("x86")][switch] $forceX86 = $false, | ||
[alias("params")][alias("parameters")][alias("pkgParams")][string]$packageParameters = '', | ||
[string]$packageScript | ||
) | ||
|
||
Write-Debug "Running 'ChocolateyScriptRunner' for $($env:packageName) v$($env:packageVersion) with packageScript `'$packageScript`', packageFolder:`'$($env:packageFolder)`', installArguments: `'$installArguments`', packageParameters: `'$packageParameters`'," | ||
|
||
## Set the culture to invariant | ||
$currentThread = [System.Threading.Thread]::CurrentThread; | ||
$culture = [System.Globalization.CultureInfo]::InvariantCulture; | ||
$currentThread.CurrentCulture = $culture; | ||
$currentThread.CurrentUICulture = $culture; | ||
|
||
$RunNote = "DarkCyan" | ||
$Warning = "Magenta" | ||
$ErrorColor = "Red" | ||
$Note = "Green" | ||
|
||
$version = $env:packageVersion | ||
$packageName = $env:packageName | ||
$packageFolder = $env:packageFolder | ||
|
||
Write-Debug "Running `'$packageScript`'"; | ||
& "$packageScript" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.