Rev 126 | View as "text/x-innosetup" | Blame | Compare with Previous | Last modification | View Log | RSS feed
; FastPHP Setup Script for InnoSetup; by Daniel Marschall, ViaThinkSoft[Setup]AppName=FastPHPAppVerName=FastPHP 0.12AppVersion=0.12AppCopyright=© Copyright 2016 - 2025 ViaThinkSoftAppPublisher=ViaThinkSoftAppPublisherURL=https://www.viathinksoft.de/AppSupportURL=https://www.daniel-marschall.de/AppUpdatesURL=https://www.viathinksoft.de/DefaultDirName={autopf}\FastPHPDefaultGroupName=FastPHPVersionInfoCompany=ViaThinkSoftVersionInfoCopyright=© Copyright 2016 - 2025 ViaThinkSoftVersionInfoDescription=FastPHP SetupVersionInfoTextVersion=1.0.0.0VersionInfoVersion=0.12ChangesAssociations=yesOutputDir=.OutputBaseFilename=FastPHP_SetupLicenseFile=LICENSE; Configure Sign Tool in InnoSetup at "Tools => Configure Sign Tools" (adjust the path to your SVN repository location); Name = sign_single; Command = "C:\SVN\...\sign_single.bat" $fSignTool=sign_singleSignedUninstaller=yes[CustomMessages]Assoc=File associations:[Languages];Name: de; MessagesFile: "compiler:Languages\German.isl"[LangOptions]LanguageName=EnglishLanguageID=$0409[Components]Name: "editor"; Description: "FastPHP Editor"; Types: full compact customName: "browser"; Description: "FastPHP Browser"; Types: full[Tasks]Name: fileassocEditor; Description: "{cm:AssocFileExtension,'FastPHP Editor','.php(s)'}"; GroupDescription: "{cm:Assoc}"; Components: editorName: fileassocBrowser; Description: "{cm:AssocFileExtension,'FastPHP Browser','.xphp'}"; GroupDescription: "{cm:Assoc}"; Components: browser[Files]Source: "Icons\Icons.dll"; DestDir: "{app}"; Flags: ignoreversion signonceSource: "FastPHPEditor.exe"; DestDir: "{app}"; Flags: ignoreversion signonce; Components: editorSource: "codeexplorer.bmp"; DestDir: "{app}"; Flags: ignoreversion; Components: editorSource: "codeexplorer.php"; DestDir: "{app}"; Flags: ignoreversion; Components: editorSource: "codeexplorer_api.inc.php"; DestDir: "{app}"; Flags: ignoreversion; Components: editorSource: "FastPHPBrowser.exe"; DestDir: "{app}"; Flags: ignoreversion signonce; Components: browserSource: "fastphp_server.inc.php"; DestDir: "{app}"; Flags: ignoreversion; Components: browser[Dirs][Icons]Name: "{group}\FastPHP Editor"; Filename: "{app}\FastPHPEditor.exe"; Components: editorName: "{group}\FastPHP Browser"; Filename: "{app}\FastPHPBrowser.exe"; Components: browser[Run]Filename: "{app}\FastPHPEditor.exe"; Description: "Run FastPHP Editor"; Flags: nowait postinstall skipifsilent; Components: editorFilename: "{app}\FastPHPBrowser.exe"; Description: "Run FastPHP Browser"; Flags: nowait postinstall skipifsilent unchecked; Components: browser[Registry]Root: HKCR; Subkey: ".php"; ValueName: ""; ValueType: string; ValueData: "FastPHPScript"; Flags: uninsdeletevalue; Components: editor; Tasks: fileassocEditorRoot: HKCR; Subkey: ".phps"; ValueName: ""; ValueType: string; ValueData: "FastPHPScript"; Flags: uninsdeletevalue; Components: editor; Tasks: fileassocEditor;Root: HKCR; Subkey: ".inc"; ValueName: ""; ValueType: string; ValueData: "FastPHPScript"; Flags: uninsdeletevalue; Components: editor; Tasks: fileassocEditor;Root: HKCR; Subkey: ".phtml"; ValueName: ""; ValueType: string; ValueData: "FastPHPScript"; Flags: uninsdeletevalue; Components: editor; Tasks: fileassocEditor;Root: HKCR; Subkey: ".php2"; ValueName: ""; ValueType: string; ValueData: "FastPHPScript"; Flags: uninsdeletevalue; Components: editor; Tasks: fileassocEditor;Root: HKCR; Subkey: ".php3"; ValueName: ""; ValueType: string; ValueData: "FastPHPScript"; Flags: uninsdeletevalue; Components: editor; Tasks: fileassocEditor;Root: HKCR; Subkey: ".php4"; ValueName: ""; ValueType: string; ValueData: "FastPHPScript"; Flags: uninsdeletevalue; Components: editor; Tasks: fileassocEditor;Root: HKCR; Subkey: ".php5"; ValueName: ""; ValueType: string; ValueData: "FastPHPScript"; Flags: uninsdeletevalue; Components: editor; Tasks: fileassocEditorRoot: HKCR; Subkey: "FastPHPScript"; ValueName: ""; ValueType: string; ValueData: "PHP script"; Flags: uninsdeletekey; Components: editor; Tasks: fileassocEditorRoot: HKCR; Subkey: "FastPHPScript\DefaultIcon"; ValueName: ""; ValueType: string; ValueData: "{app}\Icons.dll,0"; Components: editor; Tasks: fileassocEditorRoot: HKCR; Subkey: "FastPHPScript\shell\open\command"; ValueName: ""; ValueType: string; ValueData: """{app}\FastPHPEditor.exe"" ""%1"""; Components: editor; Tasks: fileassocEditorRoot: HKCR; Subkey: ".php\ShellNew"; ValueName: "ItemName"; ValueType: string; ValueData: "PHP script"; Components: editor; Tasks: fileassocEditorRoot: HKCR; Subkey: ".php\ShellNew"; ValueName: "NullFile"; ValueType: string; ValueData: ""; Components: editor; Tasks: fileassocEditor; xphp = executable PHP (only for PHP browser)Root: HKCR; Subkey: ".xphp"; ValueName: ""; ValueType: string; ValueData: "FastPHPExecutableScript"; Flags: uninsdeletevalue; Components: browser; Tasks: fileassocBrowserRoot: HKCR; Subkey: "FastPHPExecutableScript"; ValueName: ""; ValueType: string; ValueData: "Executable PHP application"; Flags: uninsdeletekey; Components: browser; Tasks: fileassocBrowserRoot: HKCR; Subkey: "FastPHPExecutableScript\DefaultIcon"; ValueName: ""; ValueType: string; ValueData: "{app}\Icons.dll,1"; Components: browser; Tasks: fileassocBrowserRoot: HKCR; Subkey: "FastPHPExecutableScript\shell\open\command"; ValueName: ""; ValueType: string; ValueData: """{app}\FastPHPBrowser.exe"" ""%1"""; Components: browser; Tasks: fileassocBrowserRoot: HKCR; Subkey: "FastPHPExecutableScript\shell\edit\command"; ValueName: ""; ValueType: string; ValueData: """{app}\FastPHPEditor.exe"" ""%1"""; Components: browser; Tasks: fileassocBrowser[Code]function InitializeSetup(): Boolean;beginif CheckForMutexes('FastPHPSetup')=false thenbeginCreatemutex('FastPHPSetup');Result := true;endelsebeginResult := False;end;end;function IsAnyComponentSelected: Boolean;varI: Integer;begin// Source: https://stackoverflow.com/questions/20691583/innosetup-if-no-components-are-selected-go-back-to-components-pageResult := False;for I := 0 to WizardForm.ComponentsList.Items.Count - 1 doif WizardForm.ComponentsList.Checked[I] thenbeginResult := True;Exit;end;end;function NextButtonClick(PageID: Integer): Boolean;beginResult:= True;if PageID = wpSelectComponents thenbeginif not IsAnyComponentSelected thenbeginMsgBox('No items selected, please select at least one item', mbError, MB_OK);Result := False;end;end;end;