Lazarus

Using the Lazarus IDE => General => Topic started by: hayanninja on April 08, 2018, 02:00:46 am

Title: Any way (other than the EXE installer) to set file associations?
Post by: hayanninja on April 08, 2018, 02:00:46 am
I've recently been using fpcupdeluxe to install Lazarus, which unlike the EXE installer, does not set file associations properly. Is there any way to do this post-install, other than manually setting them one by one?

(If not, this is definitely a feature that Lazarus needs to add!)
Title: Re: Any way (other than the EXE installer) to set file associations?
Post by: taazz on April 08, 2018, 04:15:58 am
please provide you patches to the bug tracker.
Title: Re: Any way (other than the EXE installer) to set file associations?
Post by: hayanninja on April 08, 2018, 12:17:14 pm
This might actually be something within my capabilities, so I'll gladly look into it, once I have solid confirmation (rather than just implied) that it doesn't already exist somewhere and I'm just overlooking it.

At the same time: Any file types to be aware of that wouldn't be obvious from a quick look at the Open dialog?
Title: Re: Any way (other than the EXE installer) to set file associations?
Post by: taazz on April 08, 2018, 02:08:50 pm
This might actually be something within my capabilities, so I'll gladly look into it, once I have solid confirmation (rather than just implied) that it doesn't already exist somewhere and I'm just overlooking it.
the installation for windows is made with inno setup (http://www.jrsoftware.org/isinfo.php) and the file "%%tools/install/win/lazarus.iss" holds the script to build the setup. if you open that file you will a section named [registry]
where all the file associations are listed as keys to the registry.
At the same time: Any file types to be aware of that wouldn't be obvious from a quick look at the Open dialog?
here a link to the lazarus.iss file with all the associations directly from your browser https://github.com/alrieckert/lazarus/blob/master/tools/install/win/lazarus.iss just do a search for assocFile and you will land on them copy them to a .reg file(make sure that you use the correct syntax for .reg files) and double click it to get it installed on windows.

For linux I have no idea and I'd rather not spend time searching for the details. IF no linux guru comes along I might be convinced to give it a go when time permits.
TinyPortal © 2005-2018