File: installer.iss

package info (click to toggle)
actiona 3.11.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 54,580 kB
  • sloc: cpp: 969,398; xml: 52,881; javascript: 32,914; python: 23,909; sh: 550; ansic: 90; makefile: 9
file content (126 lines) | stat: -rw-r--r-- 5,763 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#define MyAppName "Actionaz"
#define MyAppIsBeta 0
#define MyAppPublisher "Actionaz.org"
#define MyAppURL "http://www.actionaz.org/"
#define MyAppExeName "actionaz.exe"

#ifndef MyAppVersion
#error "You need to set the version number"
#endif

#ifndef MyAppBits
#define MyAppBits 32
#endif

[Setup]
#if int(MyAppBits) == 32
AppId={{968D7F40-0B23-457D-AD67-0F7C0012EF1E}
#else
AppId={{098CDAF9-5A9B-4731-9F3C-F3F1DF7490C2}
#endif
AppName={#MyAppName}
AppVersion={#MyAppVersion}
#if MyAppIsBeta == 1
AppVerName={#MyAppName} {#MyAppVersion} beta ({#MyAppBits} bits)
#else
AppVerName={#MyAppName} {#MyAppVersion} ({#MyAppBits} bits)
#endif
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
LicenseFile=C:\act_base{#MyAppBits}\LICENSE.txt
OutputDir=C:\actionaz\installer
OutputBaseFilename=actionaz-{#MyAppVersion}-win{#MyAppBits}
SetupIconFile=C:\actionaz\gui\icons\actionaz.ico
Compression=lzma2/ultra
SolidCompression=yes
WizardImageFile=C:\actionaz\installer\start.bmp
WizardSmallImageFile=C:\actionaz\installer\icon.bmp
ChangesAssociations=yes
MinVersion=0,5.1
#if int(MyAppBits) == 32
ArchitecturesAllowed=x64 x86
#else
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
#endif 

[InstallDelete]
Type: files; Name: "{app}\locale\*"

[Registry]
; File extension
Root: HKCR; Subkey: ".ascr"; ValueType: string; ValueName: ""; ValueData: "ActionazScriptFile"; Flags: uninsdeletevalue
Root: HKCR; Subkey: ".acod"; ValueType: string; ValueName: ""; ValueData: "ActionazCodeFile"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "ActionazScriptFile"; ValueType: string; ValueName: ""; ValueData: "Actionaz Script File"; Flags: uninsdeletekey
Root: HKCR; Subkey: "ActionazCodeFile"; ValueType: string; ValueName: ""; ValueData: "Actionaz Code File"; Flags: uninsdeletekey
Root: HKCR; Subkey: "ActionazScriptFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\actionaz.exe,0"
Root: HKCR; Subkey: "ActionazCodeFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\actionaz.exe,0"
Root: HKCR; Subkey: "ActionazScriptFile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\actionaz.exe"" ""%1"""
; Installer language
Root: HKCU; Subkey: "Software\Actionaz\Actionaz"; ValueType: string; ValueName: "installerLanguage"; ValueData: "{language}"; Flags: uninsdeletekey
; URL Protocol
Root: HKCR; Subkey: "actionaz"; ValueType: string; ValueName: "URL Protocol"; ValueData: ""; Flags: uninsdeletekey
Root: HKCR; Subkey: "actionaz"; ValueType: string; ValueData: "URL:Actionaz Protocol"; Flags: uninsdeletekey
Root: HKCR; Subkey: "actionaz\DefaultIcon"; ValueType: string; ValueData: "{app}\actexec.exe,0"; Flags: uninsdeletekey
Root: HKCR; Subkey: "actionaz\shell\open\command"; ValueType: string; ValueData: """{app}\actexec.exe"" ""%1"""; Flags: uninsdeletekey
; Path
Root: HKCU; SubKey: "Environment\"; ValueType: string; ValueName: "Path"; ValueData: "{reg:HKCU\Environment\,Path};{app}"

[Code]
// Path uninstall
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var
  Path, AppDir: string;
  Index: Integer;
begin
  if CurUninstallStep = usUninstall then
  begin
    if RegQueryStringValue(HKEY_CURRENT_USER,
      'Environment\',
      'Path', Path) then
    begin
      AppDir := ExpandConstant('{app}');
      Index := Pos(AppDir, Path);
      Delete(Path, Index-1, Length(AppDir)+1);
      RegWriteStringValue(HKEY_CURRENT_USER,
        'Environment\',
        'Path', Path);
    end;
  end;
end;

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1

[Files]
Source: "C:\act_ref{#MyAppBits}\actionaz.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\act_ref{#MyAppBits}\*"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\act_ref{#MyAppBits}\actions\*"; DestDir: "{app}\actions"; Flags: ignoreversion
Source: "C:\act_ref{#MyAppBits}\sfx\*"; DestDir: "{app}\sfx"; Flags: ignoreversion
Source: "C:\act_ref{#MyAppBits}\locale\*"; DestDir: "{app}\locale"; Flags: ignoreversion
Source: "C:\act_ref{#MyAppBits}\plugins\sqldrivers\*"; DestDir: "{app}\plugins\sqldrivers"; Flags: ignoreversion
Source: "C:\act_ref{#MyAppBits}\plugins\mediaservice\*"; DestDir: "{app}\plugins\mediaservice"; Flags: ignoreversion
Source: "C:\act_ref{#MyAppBits}\plugins\playlistformats\*"; DestDir: "{app}\plugins\playlistformats"; Flags: ignoreversion
Source: "C:\act_ref{#MyAppBits}\plugins\imageformats\*"; DestDir: "{app}\plugins\imageformats"; Flags: ignoreversion
Source: "C:\act_ref{#MyAppBits}\code\script\*"; DestDir: "{app}\code\script"; Flags: ignoreversion

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent