53d879ad |
1 | ; -*- no -*-\r |
8855e10a |
2 | ; $Id$\r |
53d879ad |
3 | ;\r |
4 | ; -- Inno Setup installer script for PuTTY and its related tools.\r |
5 | ;\r |
6 | ; TODO for future releases:\r |
7 | ;\r |
a6551274 |
8 | ; - It might be nice to have an option to add PSCP, Plink and PSFTP to\r |
8855e10a |
9 | ; the PATH. See wish `installer-addpath'.\r |
53d879ad |
10 | ;\r |
8855e10a |
11 | ; - Maybe a "custom" installation might be useful? Hassle with\r |
12 | ; UninstallDisplayIcon, though.\r |
53d879ad |
13 | \r |
14 | [Setup]\r |
15 | AppName=PuTTY\r |
b4537635 |
16 | AppVerName=PuTTY version 0.59\r |
17 | VersionInfoTextVersion=Release 0.59\r |
18 | AppVersion=0.59\r |
19 | VersionInfoVersion=0.59.0.0\r |
a6551274 |
20 | AppPublisher=Simon Tatham\r |
21 | AppPublisherURL=http://www.chiark.greenend.org.uk/~sgtatham/putty/\r |
22 | AppReadmeFile={app}\README.txt\r |
53d879ad |
23 | DefaultDirName={pf}\PuTTY\r |
24 | DefaultGroupName=PuTTY\r |
c21d122d |
25 | SetupIconFile=installer.ico\r |
53d879ad |
26 | UninstallDisplayIcon={app}\putty.exe\r |
27 | ChangesAssociations=yes\r |
a6551274 |
28 | ;ChangesEnvironment=yes -- when PATH munging is sorted (probably)\r |
53d879ad |
29 | Compression=zip/9\r |
a6551274 |
30 | AllowNoIcons=yes\r |
53d879ad |
31 | \r |
32 | [Files]\r |
8855e10a |
33 | ; We flag all files with "restartreplace" et al primarily for the benefit\r |
34 | ; of unattended un/installations/upgrades, when the user is running one\r |
35 | ; of the apps at a time. Without it, the operation will fail noisily in\r |
36 | ; this situation.\r |
37 | ; This does mean that the user will be prompted to restart their machine\r |
38 | ; if any of the files _were_ open during installation (or, if /VERYSILENT\r |
39 | ; is used, the machine will be restarted automatically!). The /NORESTART\r |
40 | ; flag avoids this.\r |
41 | ; It might be nicer to have a "no worries, replace the file next time you\r |
42 | ; reboot" option, but the developers have no interest in adding one.\r |
43 | ; NB: apparently, using long (non-8.3) filenames with restartreplace is a\r |
44 | ; bad idea. (Not that we do.)\r |
45 | Source: "putty.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete\r |
46 | Source: "pageant.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete\r |
47 | Source: "puttygen.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete\r |
48 | Source: "pscp.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete\r |
49 | Source: "psftp.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete\r |
50 | Source: "plink.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete\r |
51 | Source: "website.url"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r |
9694f371 |
52 | Source: "..\doc\putty.chm"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r |
8855e10a |
53 | Source: "..\doc\putty.hlp"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r |
54 | Source: "..\doc\putty.cnt"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r |
55 | Source: "..\LICENCE"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r |
f30a150f |
56 | Source: "README.txt"; DestDir: "{app}"; Flags: isreadme restartreplace uninsrestartdelete\r |
53d879ad |
57 | \r |
58 | [Icons]\r |
8855e10a |
59 | Name: "{group}\PuTTY"; Filename: "{app}\putty.exe"\r |
9694f371 |
60 | ; We have to fall back from the .chm to the older .hlp file on some Windows\r |
61 | ; versions.\r |
62 | Name: "{group}\PuTTY Manual"; Filename: "{app}\putty.chm"; MinVersion: 4.1,5.0\r |
63 | Name: "{group}\PuTTY Manual"; Filename: "{app}\putty.hlp"; OnlyBelowVersion: 4.1,5.0\r |
a6551274 |
64 | Name: "{group}\PuTTY Web Site"; Filename: "{app}\website.url"\r |
8855e10a |
65 | Name: "{group}\PSFTP"; Filename: "{app}\psftp.exe"\r |
66 | Name: "{group}\PuTTYgen"; Filename: "{app}\puttygen.exe"\r |
67 | Name: "{group}\Pageant"; Filename: "{app}\pageant.exe"\r |
a6551274 |
68 | Name: "{commondesktop}\PuTTY"; Filename: "{app}\putty.exe"; Tasks: desktopicon\common\r |
69 | Name: "{userdesktop}\PuTTY"; Filename: "{app}\putty.exe"; Tasks: desktopicon\user\r |
70 | ; Putting this in {commonappdata} doesn't seem to work, on 98SE at least.\r |
71 | Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\PuTTY"; Filename: "{app}\putty.exe"; Tasks: quicklaunchicon\r |
53d879ad |
72 | \r |
73 | [Tasks]\r |
a6551274 |
74 | Name: desktopicon; Description: "Create a &desktop icon for PuTTY"; GroupDescription: "Additional icons:"; Flags: unchecked\r |
75 | Name: desktopicon\common; Description: "For all users"; GroupDescription: "Additional icons:"; Flags: exclusive unchecked\r |
76 | Name: desktopicon\user; Description: "For the current user only"; GroupDescription: "Additional icons:"; Flags: exclusive unchecked\r |
77 | Name: quicklaunchicon; Description: "Create a &Quick Launch icon for PuTTY (current user only)"; GroupDescription: "Additional icons:"; Flags: unchecked\r |
78 | Name: associate; Description: "&Associate .PPK files (PuTTY Private Key) with Pageant and PuTTYgen"; GroupDescription: "Other tasks:"\r |
53d879ad |
79 | \r |
80 | [Registry]\r |
81 | Root: HKCR; Subkey: ".ppk"; ValueType: string; ValueName: ""; ValueData: "PuTTYPrivateKey"; Flags: uninsdeletevalue; Tasks: associate\r |
82 | Root: HKCR; Subkey: "PuTTYPrivateKey"; ValueType: string; ValueName: ""; ValueData: "PuTTY Private Key File"; Flags: uninsdeletekey; Tasks: associate\r |
83 | Root: HKCR; Subkey: "PuTTYPrivateKey\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\pageant.exe,0"; Tasks: associate\r |
84 | Root: HKCR; Subkey: "PuTTYPrivateKey\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\pageant.exe"" ""%1"""; Tasks: associate\r |
85 | Root: HKCR; Subkey: "PuTTYPrivateKey\shell\edit"; ValueType: string; ValueName: ""; ValueData: "&Edit"; Tasks: associate\r |
86 | Root: HKCR; Subkey: "PuTTYPrivateKey\shell\edit\command"; ValueType: string; ValueName: ""; ValueData: """{app}\puttygen.exe"" ""%1"""; Tasks: associate\r |
a6551274 |
87 | ; Add to PATH on NT-class OS?\r |
88 | \r |
89 | [UninstallRun]\r |
90 | ; -cleanup-during-uninstall is an undocumented option that tailors the\r |
91 | ; message displayed.\r |
8855e10a |
92 | ; XXX: it would be nice if this task weren't run if a silent uninstall is\r |
93 | ; requested, but "skipifsilent" is disallowed.\r |
a6551274 |
94 | Filename: "{app}\putty.exe"; Parameters: "-cleanup-during-uninstall"; RunOnceId: "PuTTYCleanup"; StatusMsg: "Cleaning up saved sessions etc (optional)..."\r |