开发者

How can I restore my Delphi associations without re-installing the IDE?

Today I lost my 开发者_如何学编程Delphi-2007 associations; does any way exist to restore my Delphi file associations (.pas, .dpk, etc) without running the installer of Delphi?


Type assoc /? at a command prompt. This will show you how to associate file extensions with file types.

If the basic registry is not corrupted, you can use assoc *.pas BSD.pasfile to reconnect Delphi 2007 with Pascal source files. Repeat the above with the other file types to reconnect them:

assoc *.dpk BDS.dpkfile
assoc *.dfm BDS.dfmfile

and so forth.

If this is too much work, use the registry repair option in the D2007 installer.


i will suggest looking for a Repair option in Add/Remove Programs.

i know that the version of Delphi i use has a "Registry only" install to fix per-user issues.

Can also try a System Restore to the point in time before you screwed it up.

Finally you can just manually re-create the associations (Open With...)


Newer Delphi versions (verified for 10.3+) allow setting IDE file associations through Options -> File Association menu.

You can select all Delphi related or some specific extensions. Don't forget to press Save when closing the dialog to apply extension change.

Note: If you have multiple Delphi versions installed, you can only associate single IDE.

How can I restore my Delphi associations without re-installing the IDE?


Usually quicker than 'Open with':

In Win 7:

Paste into the address field at the top of the window: Control Panel\All Control Panel Items\Default Programs\Set Associations

In XP:

My Computer->Tools->Folder Options-> File Types

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜