X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/c35ff6c8d2d02fa3d078b661bf6bdd1163294ed1..4d9b8cfde347c30066cdcf1002fb6d4b02bdc808:/windows/putty.iss diff --git a/windows/putty.iss b/windows/putty.iss index 4af117dc..0cfd0e4f 100644 --- a/windows/putty.iss +++ b/windows/putty.iss @@ -1,31 +1,29 @@ ; -*- no -*- -; putty.iss +; $Id$ ; ; -- Inno Setup installer script for PuTTY and its related tools. +; Last tested with Inno Setup 5.0.8. ; ; TODO for future releases: ; ; - It might be nice to have an option to add PSCP, Plink and PSFTP to -; the PATH. This is probably only practical on NT-class systems; I -; believe doing this on 9x would require mucking around with -; AUTOEXEC.BAT. +; the PATH. See wish `installer-addpath'. ; -; - Maybe a "custom" installation might be useful? Hassle with icons, -; though. +; - Maybe a "custom" installation might be useful? Hassle with +; UninstallDisplayIcon, though. [Setup] AppName=PuTTY -AppVerName=PuTTY version 0.58 -VersionInfoTextVersion=Release 0.58 -AppVersion=0.58 -;FIXME -- enable this when we've got it going for individual EXEs too -; and are committed to the version numbering scheme. -;VersionInfoVersion=0.58.0.0 +AppVerName=PuTTY version 0.63 +VersionInfoTextVersion=Release 0.63 +AppVersion=0.63 +VersionInfoVersion=0.63.0.0 AppPublisher=Simon Tatham AppPublisherURL=http://www.chiark.greenend.org.uk/~sgtatham/putty/ AppReadmeFile={app}\README.txt DefaultDirName={pf}\PuTTY DefaultGroupName=PuTTY +SetupIconFile=puttyins.ico UninstallDisplayIcon={app}\putty.exe ChangesAssociations=yes ;ChangesEnvironment=yes -- when PATH munging is sorted (probably) @@ -33,25 +31,41 @@ Compression=zip/9 AllowNoIcons=yes [Files] -Source: "putty.exe"; DestDir: "{app}" -Source: "pageant.exe"; DestDir: "{app}" -Source: "puttygen.exe"; DestDir: "{app}" -Source: "pscp.exe"; DestDir: "{app}" -Source: "psftp.exe"; DestDir: "{app}" -Source: "plink.exe"; DestDir: "{app}" -Source: "website.url"; DestDir: "{app}" -Source: "..\doc\putty.hlp"; DestDir: "{app}" -Source: "..\doc\putty.cnt"; DestDir: "{app}" -Source: "..\LICENCE"; DestDir: "{app}" -Source: "..\README.txt"; DestDir: "{app}"; Flags: isreadme +; We flag all files with "restartreplace" et al primarily for the benefit +; of unattended un/installations/upgrades, when the user is running one +; of the apps at a time. Without it, the operation will fail noisily in +; this situation. +; This does mean that the user will be prompted to restart their machine +; if any of the files _were_ open during installation (or, if /VERYSILENT +; is used, the machine will be restarted automatically!). The /NORESTART +; flag avoids this. +; It might be nicer to have a "no worries, replace the file next time you +; reboot" option, but the developers have no interest in adding one. +; NB: apparently, using long (non-8.3) filenames with restartreplace is a +; bad idea. (Not that we do.) +Source: "putty.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete +Source: "pageant.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete +Source: "puttygen.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete +Source: "pscp.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete +Source: "psftp.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete +Source: "plink.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete +Source: "website.url"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete +Source: "..\doc\putty.chm"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete +Source: "..\doc\putty.hlp"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete +Source: "..\doc\putty.cnt"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete +Source: "..\LICENCE"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete +Source: "README.txt"; DestDir: "{app}"; Flags: isreadme restartreplace uninsrestartdelete [Icons] -Name: "{group}\PuTTY"; Filename: "{app}\putty.exe"; Comment: "SSH, Telnet and Rlogin client"; -Name: "{group}\PuTTY Manual"; Filename: "{app}\putty.hlp" +Name: "{group}\PuTTY"; Filename: "{app}\putty.exe" +; We have to fall back from the .chm to the older .hlp file on some Windows +; versions. +Name: "{group}\PuTTY Manual"; Filename: "{app}\putty.chm"; MinVersion: 4.1,5.0 +Name: "{group}\PuTTY Manual"; Filename: "{app}\putty.hlp"; OnlyBelowVersion: 4.1,5.0 Name: "{group}\PuTTY Web Site"; Filename: "{app}\website.url" -Name: "{group}\PSFTP"; Filename: "{app}\psftp.exe"; Comment: "Command-line interactive SFTP client" -Name: "{group}\PuTTYgen"; Filename: "{app}\puttygen.exe"; Comment: "PuTTY SSH key generation utility" -Name: "{group}\Pageant"; Filename: "{app}\pageant.exe"; Comment: "PuTTY SSH authentication agent" +Name: "{group}\PSFTP"; Filename: "{app}\psftp.exe" +Name: "{group}\PuTTYgen"; Filename: "{app}\puttygen.exe" +Name: "{group}\Pageant"; Filename: "{app}\pageant.exe" Name: "{commondesktop}\PuTTY"; Filename: "{app}\putty.exe"; Tasks: desktopicon\common Name: "{userdesktop}\PuTTY"; Filename: "{app}\putty.exe"; Tasks: desktopicon\user ; Putting this in {commonappdata} doesn't seem to work, on 98SE at least. @@ -76,4 +90,17 @@ Root: HKCR; Subkey: "PuTTYPrivateKey\shell\edit\command"; ValueType: string; Val [UninstallRun] ; -cleanup-during-uninstall is an undocumented option that tailors the ; message displayed. +; XXX: it would be nice if this task weren't run if a silent uninstall is +; requested, but "skipifsilent" is disallowed. Filename: "{app}\putty.exe"; Parameters: "-cleanup-during-uninstall"; RunOnceId: "PuTTYCleanup"; StatusMsg: "Cleaning up saved sessions etc (optional)..." + +[Messages] +; Since it's possible for the user to be asked to restart their computer, +; we should override the default messages to explain exactly why, so they +; can make an informed decision. (Especially as 95% of users won't need or +; want to restart; see rant above.) +FinishedRestartLabel=One or more [name] programs are still running. Setup will not replace these program files until you restart your computer. Would you like to restart now? +; This message is popped up in a message box on a /SILENT install. +FinishedRestartMessage=One or more [name] programs are still running.%nSetup will not replace these program files until you restart your computer.%n%nWould you like to restart now? +; ...and this comes up if you try to uninstall. +UninstalledAndNeedsRestart=One or more %1 programs are still running.%nThe program files will not be removed until your computer is restarted.%n%nWould you like to restart now?