Nearly forgot: add the .CHM to the PuTTY installer. This involves
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 28 Dec 2006 10:39:56 +0000 (10:39 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 28 Dec 2006 10:39:56 +0000 (10:39 +0000)
making the manual shortcut in the Start menu point to one or other
of the two help files depending on the version of Windows;
fortunately Inno Setup has no difficulty doing that.

git-svn-id: svn://svn.tartarus.org/sgt/putty@7028 cda61777-01e9-0310-a592-d414129be87e

windows/putty.iss

index 01a7374..6fe5a96 100644 (file)
@@ -48,6 +48,7 @@ Source: "pscp.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion re
 Source: "psftp.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete\r
 Source: "plink.exe"; DestDir: "{app}"; Flags: promptifolder replacesameversion restartreplace uninsrestartdelete\r
 Source: "website.url"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r
+Source: "..\doc\putty.chm"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r
 Source: "..\doc\putty.hlp"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r
 Source: "..\doc\putty.cnt"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r
 Source: "..\LICENCE"; DestDir: "{app}"; Flags: restartreplace uninsrestartdelete\r
@@ -55,7 +56,10 @@ Source: "..\README.txt"; DestDir: "{app}"; Flags: isreadme restartreplace uninsr
 \r
 [Icons]\r
 Name: "{group}\PuTTY"; Filename: "{app}\putty.exe"\r
-Name: "{group}\PuTTY Manual"; Filename: "{app}\putty.hlp"\r
+; We have to fall back from the .chm to the older .hlp file on some Windows\r
+; versions.\r
+Name: "{group}\PuTTY Manual"; Filename: "{app}\putty.chm"; MinVersion: 4.1,5.0\r
+Name: "{group}\PuTTY Manual"; Filename: "{app}\putty.hlp"; OnlyBelowVersion: 4.1,5.0\r
 Name: "{group}\PuTTY Web Site"; Filename: "{app}\website.url"\r
 Name: "{group}\PSFTP"; Filename: "{app}\psftp.exe"\r
 Name: "{group}\PuTTYgen"; Filename: "{app}\puttygen.exe"\r