-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_normal.iss
111 lines (95 loc) · 5.36 KB
/
install_normal.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "Mouse Toggle"
#define MyAppVersion "0.1"
#define MyAppPublisher "russiandesman"
#define MyAppExeName "mouse_toggle.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{33F370D1-B525-43D2-85D9-4EA71C8AA20A}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={pf}\{#MyAppName}
DisableProgramGroupPage=yes
OutputDir=.
OutputBaseFilename=MouseToggle_NormalCursor
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: {#MyAppExeName}; DestDir: "{app}"; Flags: ignoreversion
Source: "normal_left\aero_arrow_left.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_busy_left.ani"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_ew.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_helpsel_left.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_link_left.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_move.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_nesw.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_ns.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_nwse.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_pen_left.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_unavail.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_up.cur"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_left\aero_working_left.ani"; DestDir: "{app}\cursors_l"; Flags: ignoreversion
Source: "normal_right\aero_arrow.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_busy.ani"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_ew.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_helpsel.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_link.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_move.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_nesw.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_ns.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_nwse.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_pen.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_unavail.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_up.cur"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "normal_right\aero_working.ani"; DestDir: "{app}\cursors_r"; Flags: ignoreversion
Source: "orig_cursors.reg"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Registry]
Root: HKCU; Subkey: "Control Panel\Cursors\Schemes"; ValueType: expandsz; ValueName: "mouse_toggle_scheme_left"; ValueData: \
"{app}\cursors_l\aero_arrow_left.cur, \
{app}\cursors_l\aero_helpsel_left.cur, \
{app}\cursors_l\aero_working_left.ani, \
{app}\cursors_l\aero_busy_left.ani, \
, \
, \
{app}\cursors_l\aero_pen_left.cur, \
{app}\cursors_l\aero_unavail.cur, \
{app}\cursors_l\aero_ns.cur, \
{app}\cursors_l\aero_ew.cur, \
{app}\cursors_l\aero_nwse.cur, \
{app}\cursors_l\aero_nesw.cur, \
{app}\cursors_l\aero_move.cur, \
{app}\cursors_l\aero_up.cur, \
{app}\cursors_l\aero_link_left.cur"; Flags: uninsdeletevalue
Root: HKCU; Subkey: "Control Panel\Cursors\Schemes"; ValueType: expandsz; ValueName: "mouse_toggle_scheme_right"; ValueData: \
"{app}\cursors_r\aero_arrow.cur, \
{app}\cursors_r\aero_helpsel.cur, \
{app}\cursors_r\aero_working.ani, \
{app}\cursors_r\aero_busy.ani, \
, \
, \
{app}\cursors_r\aero_pen.cur, \
{app}\cursors_r\aero_unavail.cur, \
{app}\cursors_r\aero_ns.cur, \
{app}\cursors_r\aero_ew.cur, \
{app}\cursors_r\aero_nwse.cur, \
{app}\cursors_r\aero_nesw.cur, \
{app}\cursors_r\aero_move.cur, \
{app}\cursors_r\aero_up.cur, \
{app}\cursors_r\aero_link.cur "; Flags: uninsdeletevalue
[Run]
Filename: "{sys}\reg.exe"; Parameters: "export ""hkcu\Control Panel\Cursors"" ""{app}\orig_cursors.reg"" /y"
[UninstallRun]
Filename: "{sys}\reg.exe"; Parameters: "import ""{app}\orig_cursors.reg"""