How to learn OS to open file with a proper program
Hi. I've got a question.I create a program which elements are .exe file and some other (not exe) needed to launch the program. Than, user can save what he has done to a file with .di suffix. When a user downloads this program, and want to open he's .di file, he's asked which program does he want to use to open it. So the question it, how to do that system already knows that this type of files is opened by my program?
Regards
Re: How to learn OS to open file with a proper program
You will have to use platform-specific mechanisms for this. On windows it's a matter of adding a key to the registry.
Re: How to learn OS to open file with a proper program
Quote:
Originally Posted by
jacek
You will have to use platform-specific mechanisms for this. On windows it's a matter of adding a key to the registry.
Yep, but how to do that this is set automatically to a person which installs this program
Re: How to learn OS to open file with a proper program
It depends how you install the application. For example NSIS can do this without any problems.
Re: How to learn OS to open file with a proper program
Quote:
Originally Posted by
jacek
It depends how you install the application. For example NSIS can do this without any problems.
Really? NSIS is one or installator I was looknig at in past days, but I didn't know this feature
Re: How to learn OS to open file with a proper program