[INSTALLER] The setup program for Windows, things must be fixed for 0.9.30
Original Reporter info from Mantis: lainz
-
Reporter name:
Original Reporter info from Mantis: lainz
- Reporter name:
Description:
- The File Association for .lpi is wrong, please repair this.
- The Program isn't listed in "Default Programs" in Windows 7, this is easy to add and is usefull (for example if the file associations for .pas, .pp, .lpi are changed by other program, to restore associations to Lazarus).
Here is an sample code to add file extensions in Inno Setup (the Lazarus setup maker):
NOTE 1: add all the code below for those extensions (like in 0.9.28 setup):
lfm lpi lpk lpr inc pas pp
And if you have other extensions add too. Change the icon values for the icons you want.
NOTE 2: this code uses Inno Setup 5.4.0 (tested with Unicode version) with ISPP (Inno Setup Pre Processor).
[Registry]
; This creates the .lfm association managed by Lazarus, must be created always.
Root: HKLM; Subkey: "Software\Classes\Lazarus.AssocFile.lfm"; ValueType: String; ValueData: "Nintendo Game Boy"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Classes\Lazarus.AssocFile.lfm\DefaultIcon"; ValueType: String; ValueData: "{app}{#MyAppExeName}"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Classes\Lazarus.AssocFile.lfm\Shell\Open"; ValueName: Icon; ValueType: String; ValueData: "{app}{#MyAppExeName}"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Classes\Lazarus.AssocFile.lfm\Shell\Open\Command"; ValueType: String; ValueData: """{app}{#MyAppExeName}"" ""%Version 3.0"""; Flags: uninsdeletekey
; This associates .lfm files with Lazarus (only must be registered if the user selects "Associate with .lfm" in the setup tasks.
Root: HKLM; Subkey: "Software\Classes.lfm"; ValueType: String; ValueData: "Lazarus.AssocFile.lfm"; Flags: uninsdeletevalue
; Register Lazarus program with Associations, must be created always.
Root: HKLM; Subkey: "Software\Lazarus\Capabilities"; ValueType: String; ValueName: "ApplicationDescription"; ValueData: "Open Source IDE for Free Pascal."; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Lazarus\Capabilities\FileAssociations"; ValueName: ".lfm"; ValueType: String; ValueData: "Lazarus.AssocFile.lfm"; Flags: uninsdeletekey
; Finally register Lazarus in the Default Programs control panel (Only for Windows Vista and Windows 7, but doesn't cause any problems on older Windows editions):
Root: HKLM; Subkey: "Software\RegisteredApplications"; ValueType: String; ValueName: "Lazarus"; ValueData: "Software\Lazarus\Capabilities"; Flags: uninsdeletevalue
Steps to reproduce:
Install lazarus and right clic an .lpi file, you can see the bug.
Go to control panel and go to Default Programs, lazarus isn't listed.
See image attached.
Mantis conversion info:
- Mantis ID: 18382
- OS: Windows
- OS Build: 7
- Platform: i386
- Version: 0.9.31 (SVN)
- Monitored by: » Vincent (Vincent Snijders)
- Target version: 1.0.0
- LazTarget: 1.0