-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProxyDialogAutoFiller.iss
More file actions
82 lines (71 loc) · 3.72 KB
/
ProxyDialogAutoFiller.iss
File metadata and controls
82 lines (71 loc) · 3.72 KB
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
;ProxyDialogAutoFiller Setup--
[Setup]
AppName=ProxyDialogAutoFiller
AppVerName=ProxyDialogAutoFiller
VersionInfoVersion=1.2.0.0
AppVersion=1.2.0.0
AppMutex=ProxyDialogAutoFillerSetup
DefaultDirName={code:GetProgramFiles}\ProxyDialogAutoFiller
Compression=lzma2
SolidCompression=yes
OutputDir=SetupOutput
OutputBaseFilename=ProxyDialogAutoFillerSetup
AppPublisher=ProxyDialogAutoFiller
WizardImageStretch=no
VersionInfoDescription=ProxyDialogAutoFillerSetup
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
DefaultGroupName=ProxyDialogAutoFiller
UninstallDisplayIcon={app}\ProxyDialogAutoFiller.exe
[Registry]
Root: HKLM; Subkey: "Software\ProxyDialogAutoFiller"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\ProxyDialogAutoFiller"; ValueType: string; ValueName: "Path"; ValueData: "{app}\"
Root: HKLM; Subkey: "Software\ProxyDialogAutoFiller"; ValueType: string; ValueName: "ClientType"; ValueData: ""
Root: HKLM; Subkey: "Software\ProxyDialogAutoFiller"; ValueType: string; ValueName: "Version"; ValueData: "1.2.0.0"
Root: HKLM; Subkey: "Software\ProxyDialogAutoFiller"; ValueType: string; ValueName: "Rulefile"; ValueData: "{app}\ProxySetting.ini"
Root: HKLM; Subkey: "Software\ProxyDialogAutoFiller"; ValueType: string; ValueName: "RCAPfile"; ValueData: "{app}\ResourceCap.ini"
Root: HKLM; Subkey: "Software\ProxyDialogAutoFiller"; ValueType: string; ValueName: "ExtensionExecfile"; ValueData: "{app}\ProxyDialogAutoFiller.exe"
Root: HKLM; Subkey: "Software\WOW6432Node\ProxyDialogAutoFiller"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\WOW6432Node\ProxyDialogAutoFiller"; ValueType: string; ValueName: "Path"; ValueData: "{app}\"
Root: HKLM; Subkey: "Software\WOW6432Node\ProxyDialogAutoFiller"; ValueType: string; ValueName: "ClientType"; ValueData: ""
Root: HKLM; Subkey: "Software\WOW6432Node\ProxyDialogAutoFiller"; ValueType: string; ValueName: "Version"; ValueData: "1.2.0.0"
Root: HKLM; Subkey: "Software\WOW6432Node\ProxyDialogAutoFiller"; ValueType: string; ValueName: "Rulefile"; ValueData: "{app}\ProxySetting.ini"
Root: HKLM; Subkey: "Software\WOW6432Node\ProxyDialogAutoFiller"; ValueType: string; ValueName: "RCAPfile"; ValueData: "{app}\ResourceCap.ini"
Root: HKLM; Subkey: "Software\WOW6432Node\ProxyDialogAutoFiller"; ValueType: string; ValueName: "ExtensionExecfile"; ValueData: "{app}\ProxyDialogAutoFiller.exe"
[Languages]
Name: jp; MessagesFile: "compiler:Languages\Japanese.isl"
[Files]
;exe
Source: "bin\Release\ProxyDialogAutoFiller.exe"; DestDir: "{app}\";Flags: ignoreversion;permissions:users-readexec admins-full system-full
;ini
Source: "Resources\ProxySetting.ini"; DestDir: "{app}"; Flags: onlyifdoesntexist
[Icons]
Name: "{commonstartup}\ProxyDialogAutoFiller"; Filename: "{app}\ProxyDialogAutoFiller.exe"; WorkingDir: "{app}"
[Dirs]
Name: "{app}";Permissions: users-modify
[Run]
Filename: "{sys}\icacls.exe";Parameters: """{app}\ProxyDialogAutoFiller.exe"" /inheritance:r"; Flags: runhidden shellexec
Filename: "{app}\ProxyDialogAutoFiller.exe"; Description: "インストール後にプログラムを起動する"; Flags: postinstall nowait
[UninstallRun]
[Code]
function GetProgramFiles(Param: string): string;
begin
if IsWin64 then Result := ExpandConstant('{pf64}')
else Result := ExpandConstant('{pf32}')
end;
procedure TaskKill(FileName: String);
var
ResultCode: Integer;
begin
Exec(ExpandConstant('taskkill.exe'), '/f /im ' + '"' + FileName + '"', '', SW_HIDE,ewWaitUntilTerminated, ResultCode);
end;
function InitializeSetup():Boolean;
begin
TaskKill('ProxyDialogAutoFiller.exe');
Result := True;
end;
function InitializeUninstall():Boolean;
begin
TaskKill('ProxyDialogAutoFiller.exe');
Result := True;
end;