Subversion Repositories fastphp

Rev

Rev 50 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
49 daniel-mar 1
; FastPHP Setup Script for InnoSetup
2
; by Daniel Marschall, ViaThinkSoft
3
; http://www.viathinksoft.de/
4
 
5
[Setup]
6
AppName=FastPHP
7
AppVerName=FastPHP 0.1
8
AppVersion=0.1
9
AppCopyright=© Copyright 2017 - 2018 ViaThinkSoft.
10
AppPublisher=ViaThinkSoft
11
AppPublisherURL=http://www.viathinksoft.de/
12
AppSupportURL=http://www.daniel-marschall.de/
13
AppUpdatesURL=http://www.viathinksoft.de/
14
DefaultDirName={pf}\FastPHP
15
DefaultGroupName=FastPHP
16
VersionInfoCompany=ViaThinkSoft
17
VersionInfoCopyright=© Copyright 2017 - 2018 ViaThinkSoft.
18
VersionInfoDescription=FastPHP Setup
19
VersionInfoTextVersion=1.0.0.0
20
VersionInfoVersion=0.1
21
Compression=zip/9
22
ChangesAssociations=yes
23
OutputBaseFilename=FastPHP
24
 
25
[CustomMessages]
26
Assoc=File associations:
27
 
28
[Languages]
29
;Name: de; MessagesFile: "compiler:Languages\German.isl"
30
 
31
[LangOptions]
32
LanguageName=English
33
LanguageID=$0409
34
 
35
[Components]
36
Name: "editor";  Description: "FastPHP Editor";  Types: full compact custom
37
Name: "browser"; Description: "FastPHP Browser"; Types: full
38
 
39
[Tasks]
40
; xphp = executable PHP (only for PHP browser)
41
Name: fileassocEditor;  Description: "{cm:AssocFileExtension,'FastPHP Editor','.php(s)'}"; GroupDescription: "{cm:Assoc}"; Components: editor
42
Name: fileassocBrowser; Description: "{cm:AssocFileExtension,'FastPHP Browser','.xphp'}";  GroupDescription: "{cm:Assoc}"; Components: browser
43
 
44
[Files]
45
Source: "FastPHPEditor.exe";        DestDir: "{app}"; Flags: ignoreversion; Components: editor
46
Source: "codeexplorer.bmp";         DestDir: "{app}"; Flags: ignoreversion; Components: editor
47
Source: "codeexplorer.php";         DestDir: "{app}"; Flags: ignoreversion; Components: editor
48
Source: "codeexplorer_api.inc.php"; DestDir: "{app}"; Flags: ignoreversion; Components: editor
49
 
50
Source: "FastPHPBrowser.exe";       DestDir: "{app}"; Flags: ignoreversion; Components: browser
51
Source: "fastphp_server.inc.php";                DestDir: "{app}"; Flags: ignoreversion; Components: browser
52
 
53
[Dirs]
54
 
55
[Icons]
56
Name: "{group}\FastPHP Editor";  Filename: "{app}\FastPHPEditor.exe";  Components: editor
57
Name: "{group}\FastPHP Browser"; Filename: "{app}\FastPHPBrowser.exe"; Components: browser
58
 
59
[Run]
60
Filename: "{app}\FastPHPEditor.exe";  Description: "Run FastPHP Editor";  Flags: nowait postinstall skipifsilent; Components: editor
61
Filename: "{app}\FastPHPBrowser.exe"; Description: "Run FastPHP Browser"; Flags: nowait postinstall skipifsilent unchecked; Components: browser
62
 
63
[Registry]
64
Root: HKCR; Subkey: ".php";                                       ValueData: "FastPHPScript";                       ValueType: string; ValueName: ""; Flags: uninsdeletevalue; Components: editor;  Tasks: fileassocEditor
65
Root: HKCR; Subkey: ".phps";                                      ValueData: "FastPHPScript";                       ValueType: string; ValueName: ""; Flags: uninsdeletevalue; Components: editor;  Tasks: fileassocEditor
66
Root: HKCR; Subkey: "FastPHPScript";                              ValueData: "PHP script";                          ValueType: string; ValueName: ""; Flags: uninsdeletekey;   Components: editor;  Tasks: fileassocEditor
67
Root: HKCR; Subkey: "FastPHPScript\DefaultIcon";                  ValueData: "{app}\FastPHPEditor.exe";             ValueType: string; ValueName: "";                          Components: editor;  Tasks: fileassocEditor
68
Root: HKCR; Subkey: "FastPHPScript\shell\open\command";           ValueData: """{app}\FastPHPEditor.exe"" ""%1""";  ValueType: string; ValueName: "";                          Components: editor;  Tasks: fileassocEditor
69
 
70
Root: HKCR; Subkey: ".php\ShellNew";                              ValueData: "PHP script";                          ValueType: string; ValueName: "ItemName";                  Components: editor;  Tasks: fileassocEditor
71
Root: HKCR; Subkey: ".php\ShellNew";                              ValueData: "";                                    ValueType: string; ValueName: "NullFile";                  Components: editor;  Tasks: fileassocEditor
72
 
73
Root: HKCR; Subkey: ".xphp";                                      ValueData: "FastPHPExecutableScript";             ValueType: string; ValueName: ""; Flags: uninsdeletevalue; Components: browser; Tasks: fileassocBrowser
74
Root: HKCR; Subkey: "FastPHPExecutableScript";                    ValueData: "Executable PHP application";          ValueType: string; ValueName: ""; Flags: uninsdeletekey;   Components: browser; Tasks: fileassocBrowser
75
Root: HKCR; Subkey: "FastPHPExecutableScript\DefaultIcon";        ValueData: "{app}\FastPHPEditor.exe";             ValueType: string; ValueName: "";                          Components: browser; Tasks: fileassocBrowser
76
Root: HKCR; Subkey: "FastPHPExecutableScript\shell\open\command"; ValueData: """{app}\FastPHPBrowser.exe"" ""%1"""; ValueType: string; ValueName: "";                          Components: browser; Tasks: fileassocBrowser
77
Root: HKCR; Subkey: "FastPHPExecutableScript\shell\edit\command"; ValueData: """{app}\FastPHPEditor.exe"" ""%1""";  ValueType: string; ValueName: "";                          Components: browser; Tasks: fileassocBrowser
78
 
79
[Code]
80
function InitializeSetup(): Boolean;
81
begin
82
  if CheckForMutexes('FastPHPSetup')=false then
83
  begin
84
    Createmutex('FastPHPSetup');
85
    Result := true;
86
  end
87
  else
88
  begin
89
    Result := False;
90
  end;
91
end;