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