mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-14 07:45:06 +00:00
templates/windows/installer: Don't create Icons in Portable mode
This commit is contained in:
parent
39dc1fa5e1
commit
761f741c56
1 changed files with 25 additions and 2 deletions
|
@ -38,6 +38,9 @@ ArchitecturesInstallIn64BitMode=x64 arm64 ia64
|
||||||
ArchitecturesAllowed=@ARCH@
|
ArchitecturesAllowed=@ARCH@
|
||||||
|
|
||||||
; Installation Modes
|
; Installation Modes
|
||||||
|
AlwaysShowComponentsList=no
|
||||||
|
UsePreviousTasks=no
|
||||||
|
UsePreviousSetupType=no
|
||||||
UsePreviousPrivileges=no
|
UsePreviousPrivileges=no
|
||||||
PrivilegesRequired=admin
|
PrivilegesRequired=admin
|
||||||
PrivilegesRequiredOverridesAllowed=dialog commandline
|
PrivilegesRequiredOverridesAllowed=dialog commandline
|
||||||
|
@ -73,6 +76,9 @@ LZMAAlgorithm=1
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
|
|
||||||
|
[Components]
|
||||||
|
name: "startmenu"; Description: "Start Menu Entries"
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "@ISS_FILES_DIR@/data/obs-plugins/@PROJECT_NAME@/*"; DestDir: "{code:GetOutputDataDir}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
Source: "@ISS_FILES_DIR@/data/obs-plugins/@PROJECT_NAME@/*"; DestDir: "{code:GetOutputDataDir}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
Source: "@ISS_FILES_DIR@/obs-plugins/@D_PLATFORM_BITS@bit/*"; DestDir: "{code:GetOutputBinaryDir}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
Source: "@ISS_FILES_DIR@/obs-plugins/@D_PLATFORM_BITS@bit/*"; DestDir: "{code:GetOutputBinaryDir}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
|
@ -80,8 +86,8 @@ Source: "@PROJECT_SOURCE_DIR@/templates/windows/msvc-redist-helper.exe"; DestDir
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
|
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"; Components: startmenu
|
||||||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"; Components: startmenu
|
||||||
|
|
||||||
[Code]
|
[Code]
|
||||||
// ------------------------------------------------------------------------------------------------------------------ //
|
// ------------------------------------------------------------------------------------------------------------------ //
|
||||||
|
@ -203,12 +209,23 @@ var
|
||||||
oModePage: TWizardPage;
|
oModePage: TWizardPage;
|
||||||
begin
|
begin
|
||||||
oModePage := CreateModePage();
|
oModePage := CreateModePage();
|
||||||
|
|
||||||
|
if (IsPortableMode()) then begin
|
||||||
|
WizardSelectComponents('!startmenu');
|
||||||
|
end else begin
|
||||||
|
WizardSelectComponents('startmenu');
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------------------ //
|
// ------------------------------------------------------------------------------------------------------------------ //
|
||||||
function ShouldSkipPage(PageID: Integer): Boolean;
|
function ShouldSkipPage(PageID: Integer): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
|
if (PageID = wpSelectComponents) then begin
|
||||||
|
Result := True;
|
||||||
|
end else if (PageID = wpSelectProgramGroup) then begin
|
||||||
|
Result := not WizardIsComponentSelected('startmenu');
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------------------ //
|
// ------------------------------------------------------------------------------------------------------------------ //
|
||||||
|
@ -412,6 +429,8 @@ begin
|
||||||
bIsSystemMode := True;
|
bIsSystemMode := True;
|
||||||
bIsUserMode := False;
|
bIsUserMode := False;
|
||||||
bIsPortableMode := False;
|
bIsPortableMode := False;
|
||||||
|
|
||||||
|
WizardSelectComponents('startmenu');
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -426,6 +445,8 @@ begin
|
||||||
bIsSystemMode := False;
|
bIsSystemMode := False;
|
||||||
bIsUserMode := True;
|
bIsUserMode := True;
|
||||||
bIsPortableMode := False;
|
bIsPortableMode := False;
|
||||||
|
|
||||||
|
WizardSelectComponents('startmenu');
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -437,6 +458,8 @@ begin
|
||||||
bIsSystemMode := False;
|
bIsSystemMode := False;
|
||||||
bIsUserMode := False;
|
bIsUserMode := False;
|
||||||
bIsPortableMode := True;
|
bIsPortableMode := True;
|
||||||
|
|
||||||
|
WizardSelectComponents('!startmenu');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function CreateModePage: TWizardPage;
|
function CreateModePage: TWizardPage;
|
||||||
|
|
Loading…
Reference in a new issue