-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* stable: (GH-741) Ensure CultureInfo with PowerShell Host (GH-641) Add more installer types (maint) only log debug verbose for event messages (GH-354) Fix MSI template SilentArgs (maint) Fail on new --file when not supported (GH-641) add temp location
- Loading branch information
Showing
12 changed files
with
204 additions
and
9 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
54 changes: 54 additions & 0 deletions
54
src/chocolatey/infrastructure.app/domain/installers/PackageForTheWebInstaller.cs
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,54 @@ | ||
// Copyright © 2011 - Present RealDimensions Software, LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace chocolatey.infrastructure.app.domain.installers | ||
{ | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// PackageForTheWeb Options | ||
/// </summary> | ||
/// <remarks> | ||
/// </remarks> | ||
public class PackageForTheWebInstaller : InstallerBase | ||
{ | ||
public PackageForTheWebInstaller() | ||
{ | ||
InstallExecutable = "\"{0}\"".format_with(InstallTokens.INSTALLER_LOCATION); | ||
SilentInstall = "/s"; | ||
NoReboot = ""; | ||
LogFile = ""; | ||
CustomInstallLocation = ""; | ||
Language = ""; | ||
OtherInstallOptions = ""; | ||
UninstallExecutable = "\"{0}\"".format_with(InstallTokens.UNINSTALLER_LOCATION); | ||
SilentUninstall = "/s"; | ||
OtherUninstallOptions = ""; | ||
ValidInstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
ValidUninstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
} | ||
|
||
public override InstallerType InstallerType | ||
{ | ||
get { return InstallerType.PackageForTheWeb; } | ||
} | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
src/chocolatey/infrastructure.app/domain/installers/SetupFactoryInstaller.cs
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,63 @@ | ||
// Copyright © 2011 - Present RealDimensions Software, LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace chocolatey.infrastructure.app.domain.installers | ||
{ | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// SetupFactory Options | ||
/// </summary> | ||
/// <remarks> | ||
/// http://www.indigorose.com/webhelp/suf9/Program_Reference/Command_Line_Options.htm | ||
/// | ||
/// While we can override the extraction path, it should already be overridden | ||
/// because we are overriding the TEMP variable | ||
/// </remarks> | ||
public class SetupFactoryInstaller : InstallerBase | ||
{ | ||
public SetupFactoryInstaller() | ||
{ | ||
InstallExecutable = "\"{0}\"".format_with(InstallTokens.INSTALLER_LOCATION); | ||
SilentInstall = "/S"; | ||
NoReboot = ""; | ||
LogFile = ""; | ||
// http://www.indigorose.com/forums/threads/23686-How-to-Set-the-Default-Application-Directory | ||
// http://www.indigorose.com/webhelp/suf70/Program_Reference/Screen_Types/Select_Install_Folder/Properties.htm | ||
// http://www.indigorose.com/webhelp/suf70/Program_Reference/Variables/Session_Variables.htm#AppFolder | ||
// todo: basically we need an environment variable for AppFolder | ||
CustomInstallLocation = ""; | ||
Language = ""; | ||
//OtherInstallOptions = "\"/T:{0}\"".format_with(InstallTokens.TEMP_LOCATION); | ||
OtherInstallOptions = ""; | ||
UninstallExecutable = "\"{0}\"".format_with(InstallTokens.UNINSTALLER_LOCATION); | ||
SilentUninstall = "/S"; | ||
OtherUninstallOptions = ""; | ||
ValidInstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
ValidUninstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
} | ||
|
||
public override InstallerType InstallerType | ||
{ | ||
get { return InstallerType.SetupFactory; } | ||
} | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
src/chocolatey/infrastructure.app/domain/installers/WiseInstaller.cs
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,61 @@ | ||
// Copyright © 2011 - Present RealDimensions Software, LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace chocolatey.infrastructure.app.domain.installers | ||
{ | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// WISE Options | ||
/// </summary> | ||
/// <remarks> | ||
/// https://support.symantec.com/en_US/article.HOWTO5865.html | ||
/// http://www.itninja.com/blog/view/wise-setup-exe-switches | ||
/// | ||
/// While we can override the extraction path, it should already be overridden | ||
/// because we are overriding the TEMP variable | ||
/// </remarks> | ||
public class WiseInstaller : InstallerBase | ||
{ | ||
public WiseInstaller() | ||
{ | ||
InstallExecutable = "\"{0}\"".format_with(InstallTokens.INSTALLER_LOCATION); | ||
SilentInstall = "/s"; | ||
NoReboot = ""; | ||
LogFile = ""; | ||
// http://www.itninja.com/question/wise-package-install-switches-for-install-path | ||
CustomInstallLocation = ""; | ||
Language = ""; | ||
OtherInstallOptions = ""; | ||
UninstallExecutable = "\"{0}\"".format_with(InstallTokens.UNINSTALLER_LOCATION); | ||
SilentUninstall = "/s"; | ||
// http://www.symantec.com/connect/blogs/wisescript-command-line-options | ||
OtherUninstallOptions = "\"{0}\\Uninstall.Log\"".format_with(InstallTokens.TEMP_LOCATION); | ||
ValidInstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
ValidUninstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
} | ||
|
||
public override InstallerType InstallerType | ||
{ | ||
get { return InstallerType.Wise; } | ||
} | ||
} | ||
} |
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