Nearly forgot: add the .CHM to the PuTTY installer. This involves
[sgt/putty] / 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