-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added inno setup file
- Loading branch information
Showing
3 changed files
with
86 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
; Taken from https://raw.githubusercontent.com/Palakis/obs-websocket/4.x-current/installer/installer.iss | ||
|
||
#define MyAppName "@PROJECT" | ||
#define MyAppVersion "@VERSION" | ||
#define MyAppPublisher "univrsal" | ||
#define MyAppURL "http://github.com/unvirsal/@PROJECT" | ||
#define Uninstall "Uninstall " + MyAppName | ||
|
||
[Setup] | ||
; NOTE: The value of AppId uniquely identifies this application. | ||
; Do not use the same AppId value in installers for other applications. | ||
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) | ||
AppId={{@APPID} | ||
AppName={#MyAppName} | ||
AppVersion={#MyAppVersion} | ||
;AppVerName={#MyAppName} {#MyAppVersion} | ||
AppPublisher={#MyAppPublisher} | ||
AppPublisherURL={#MyAppURL} | ||
AppSupportURL={#MyAppURL} | ||
AppUpdatesURL={#MyAppURL} | ||
DefaultDirName={code:GetDirName} | ||
DefaultGroupName={#MyAppName} | ||
DisableProgramGroupPage=yes | ||
OutputBaseFilename=tuna-@ARCH | ||
Compression=lzma | ||
SolidCompression=yes | ||
|
||
[Languages] | ||
Name: "english"; MessagesFile: "compiler:Default.isl" | ||
|
||
[Files] | ||
Source: "@BUILDDIR\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs | ||
Source: "..\LICENSE"; Flags: dontcopy | ||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files | ||
|
||
[Icons] | ||
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}" | ||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{#Uninstall}" | ||
|
||
[Code] | ||
procedure InitializeWizard(); | ||
var | ||
GPLText: AnsiString; | ||
Page: TOutputMsgMemoWizardPage; | ||
begin | ||
ExtractTemporaryFile('LICENSE'); | ||
LoadStringFromFile(ExpandConstant('{tmp}\LICENSE'), GPLText); | ||
Page := CreateOutputMsgMemoPage(wpWelcome, | ||
'License Information', 'Please review the license terms before installing obs-websocket', | ||
'Press Page Down to see the rest of the agreement. Once you are aware of your rights, click Next to continue.', | ||
String(GPLText) | ||
); | ||
end; | ||
// credit where it's due : | ||
// following function come from https://github.com/Xaymar/obs-studio_amf-encoder-plugin/blob/master/%23Resources/Installer.in.iss#L45 | ||
function GetDirName(Value: string): string; | ||
var | ||
InstallPath: string; | ||
begin | ||
// initialize default path, which will be returned when the following registry | ||
// key queries fail due to missing keys or for some different reason | ||
Result := '{pf}\obs-studio'; | ||
// query the first registry value; if this succeeds, return the obtained value | ||
if RegQueryStringValue(HKLM32, 'SOFTWARE\OBS Studio', '', InstallPath) then | ||
Result := InstallPath | ||
end; | ||
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