forked from chocolatey/choco
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chocolateyGH-641) Add BitRock / QT / Squirrel Installers
Add installer types for - BitRock Installer - QT Installer - Squirrel
- Loading branch information
1 parent
079b914
commit 01e338e
Showing
6 changed files
with
171 additions
and
1 deletion.
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
57 changes: 57 additions & 0 deletions
57
src/chocolatey/infrastructure.app/domain/installers/BitRockInstaller.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,57 @@ | ||
// 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> | ||
/// BitRock Installer Options | ||
/// </summary> | ||
/// <remarks> | ||
/// http://blog.bitrock.com/2009/10/unattended-mode.html | ||
/// http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_unattended_mode | ||
/// http://installbuilder.bitrock.com/docs/installbuilder-userguide/ar01s13.html | ||
/// </remarks> | ||
public class BitRockInstaller : InstallerBase | ||
{ | ||
public BitRockInstaller() | ||
{ | ||
InstallExecutable = "\"{0}\"".format_with(InstallTokens.INSTALLER_LOCATION); | ||
SilentInstall = "--mode unattended"; | ||
// http://answers.bitrock.com/questions/215/how-can-i-restart-the-computer-after-installation-has-completed | ||
NoReboot = ""; | ||
LogFile = ""; | ||
// http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_command_line_parameters | ||
// http://answers.bitrock.com/questions/57/how-do-i-specify-a-different-default-installation-directory-for-unix-and-windows | ||
CustomInstallLocation = "--installdir {0}".format_with(InstallTokens.CUSTOM_INSTALL_LOCATION); | ||
Language = ""; | ||
OtherInstallOptions = "--unattendedmodeui none"; | ||
UninstallExecutable = "\"{0}\"".format_with(InstallTokens.UNINSTALLER_LOCATION); | ||
SilentUninstall = "--mode unattended"; | ||
OtherUninstallOptions = "--unattendedmodeui none"; | ||
ValidInstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
ValidUninstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
} | ||
|
||
public override InstallerType InstallerType { get { return InstallerType.BitRock; } } | ||
} | ||
} |
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
55 changes: 55 additions & 0 deletions
55
src/chocolatey/infrastructure.app/domain/installers/QtInstaller.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,55 @@ | ||
// 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> | ||
/// QT Installer Options | ||
/// </summary> | ||
/// <remarks> | ||
/// https://doc.qt.io/qtinstallerframework/index.html | ||
/// http://doc.qt.io/qtinstallerframework/operations.html | ||
/// </remarks> | ||
public class QtInstaller : InstallerBase | ||
{ | ||
public QtInstaller() | ||
{ | ||
InstallExecutable = "\"{0}\"".format_with(InstallTokens.INSTALLER_LOCATION); | ||
SilentInstall = ""; | ||
NoReboot = ""; | ||
LogFile = ""; | ||
//http://doc.qt.io/qtinstallerframework/ifw-globalconfig.html | ||
//CustomInstallLocation = "targetdir={0}".format_with(InstallTokens.CUSTOM_INSTALL_LOCATION); | ||
CustomInstallLocation = ""; | ||
Language = ""; | ||
OtherInstallOptions = ""; | ||
UninstallExecutable = "\"{0}\"".format_with(InstallTokens.UNINSTALLER_LOCATION); | ||
SilentUninstall = ""; | ||
OtherUninstallOptions = ""; | ||
ValidInstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
ValidUninstallExitCodes = new List<int> | ||
{ | ||
0 | ||
}; | ||
} | ||
|
||
public override InstallerType InstallerType { get { return InstallerType.QtInstaller; } } | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
src/chocolatey/infrastructure.app/domain/installers/SquirrelInstaller.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,52 @@ | ||
// 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> | ||
/// Squirrel Installer Options | ||
/// </summary> | ||
/// <remarks> | ||
/// https://github.com/Squirrel/Squirrel.Windows/blob/92e7af66b1593f951527dd88289a4ed1bee4bcdd/src/Update/Program.cs#L109 | ||
/// </remarks> | ||
public class SquirrelInstaller : InstallerBase | ||
{ | ||
public SquirrelInstaller() | ||
{ | ||
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.Squirrel; } } | ||
} | ||
} |