[fpc-pascal] Adding command line parameter to GUI application?
Tomas Hajny
XHajT03 at hajny.biz
Tue Feb 25 22:47:29 CET 2025
On 2025-02-25 22:09, Jean SUZINEAU via fpc-pascal wrote:
> I haven't done it recently but basically on Windows you have keys in
> the registry under HKEY_CLASSES_ROOT to associate your program with a
> specific file extension.
>
> You can view the registry with regedit.
.
.
I'd add that you can define the association either using an installer
used to install your program on the PC, or you can do it manually
without any installer - the latter may be done in two ways, the first
being right clicking a file with the extension you intend to associate
to your program, selecting "Open with" from the context menu, then
selecting "Choosing app on your PC" at the bottom and then selecting the
"Always" button after finding the path to your program; the second being
using the Settings dialog -> Apps -> Default apps -> Choose defaults by
file type and then again "Choosing app on your PC" at the bottom.
Tomas
More information about the fpc-pascal
mailing list