-
Notifications
You must be signed in to change notification settings - Fork 3
/
WIN 7.iss
89 lines (76 loc) · 3.29 KB
/
WIN 7.iss
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
[Setup]
AppName=Switch Input Language
AppId=Switch Input Language
AppVersion=1.0 beta
AppPublisher=jrsoftware.org
AppPublisherURL=https://github.com/sumonchai/Switch-Input-Language
AppSupportURL=https://github.com/sumonchai/Switch-Input-Language
AppUpdatesURL=https://github.com/sumonchai/Switch-Input-Language
VersionInfoCopyright=Copyright (C) 2016 LJTECHNOLOGY
;AppMutex=InnoSetupCompilerAppMutex,Global\InnoSetupCompilerAppMutex
;SetupMutex=InnoSetupCompilerSetupMutex,Global\InnoSetupCompilerSetupMutex
;MinVersion=0,5.0
DefaultDirName={pf}\Switch Input Language
DefaultGroupName=Switch Input Language
AllowNoIcons=yes
Compression=lzma2/max
SolidCompression=yes
;Uninstallable=not PortableCheck
UninstallDisplayIcon={app}\WIN 7.exe
LicenseFile=readme.txt
TimeStampsInUTC=yes
TouchDate=none
TouchTime=00:00
WizardImageFile=compiler:WizModernImage-IS.bmp
WizardSmallImageFile=compiler:WizModernSmallImage-IS.bmp
#ifndef NOSIGNTOOL
;SignTool=issigntool
;SignTool=issigntool256
;SignedUninstaller=yes
#endif
[Languages]
Name: english; MessagesFile: "files\Default.isl"
#sub ProcessFoundFile
#define FileName FindGetFileName(FindHandle)
#define Name LowerCase(RemoveFileExt(FileName))
#define MessagesFile PathName + FileName
#pragma message "Generating [Languages] entry with name " + Name
Name: {#Name}; MessagesFile: {#MessagesFile}
#endsub
#define PathName "files\Languages\"
#define FindHandle
#define FindResult
#for {FindHandle = FindResult = FindFirst(PathName + "*.isl", 0); FindResult; FindResult = FindNext(FindHandle)} ProcessFoundFile
#if FindHandle
#expr FindClose(FindHandle)
#endif
#ifdef UNICODE
#for {FindHandle = FindResult = FindFirst(PathName + "*.islu", 0); FindResult; FindResult = FindNext(FindHandle)} ProcessFoundFile
#if FindHandle
#expr FindClose(FindHandle)
#endif
#endif
[Messages]
; two "Setup" on the same line looks weird, so put a line break in between
english.WelcomeLabel1=Welcome to Switch Input Language%nSetup Wizard
[InstallDelete]
; Remove Unicode-only files if needed
Type: files; Name: "{app}\WIN 7.exe"
[Files]
Source: "WIN 7.exe"; DestDir: "{app}"; Flags: ignoreversion signonce touch
[Icons]
Name: "{group}\Switch Input Language"; Filename: "{app}\WIN 7.exe"
[Registry]
; Start "Software\My Company\My Program" keys under HKEY_CURRENT_USER
; and HKEY_LOCAL_MACHINE. The flags tell it to always delete the
; "My Program" keys upon uninstall, and delete the "My Company" keys
; if there is nothing left in them.
;Root: HKCU; Subkey: "Software\LJ TECHNOLOGY"; Flags: uninsdeletekeyifempty
;Root: HKCU; Subkey: "Software\LJ TECHNOLOGY\Switch Input Language"; Flags: uninsdeletekey
;Root: HKLM; Subkey: "Software\LJ TECHNOLOGY"; Flags: uninsdeletekeyifempty
;Root: HKLM64; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "Switch Input Language"; ValueData: """{app}\InputLang.exe"""; Flags: uninsdeletevalue
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "Switch Input Language"; ValueData: """{app}\WIN 7.exe"""; Flags: uninsdeletevalue
[Tasks]
Name: StartAfterInstall; Description: Run application after install
[Run]
Filename: {app}\WIN 7.exe; Flags: shellexec skipifsilent nowait; Tasks: StartAfterInstall