radstudio logo

Fixing your lost delphi (.pas) Explorer file association for RadStudio

I recently installed Visual Studio 2015 RC and found that after the application install I had lost my default pascal (.pas) Explorer file association i.e. double clicking a file in Explorer to load in an already open RadStudio The first step (under Win7) to re-associate the file extension to allow an already open RadStudio to load the clicked on pascal file is unfortunately to run "Modify, Repair, Uninstall" for your existing RadStudio installation, for my case XE8.

Its faster to do this from an ISO image than the Start menu which will load files over the internet, its still going to take a while but an SSD can make life a little faster.

After its finished and you have selected as part of the install to associate all the files back to RadStudio you should be good to go.

However in my case I had tried to re-associate the .pas file extension with BDS.exe and BDSLauncher.exe which meant my "UserChoice" registry settings was still pointing to the wrong program. It may just have worked to do this still rather than Repairing the XE8 install, I'll have to try that next time.

  • Find the Registry setting HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
  • Find the .pas extension
  • Change the "UserChoice" "Progid" value to "BDS.PasFile". You should see an entry for this in the "OpenWithProgids"
  • Filed under: Embarcadero  Tags: Embarcadero, Delphi, Cpp, Xe8

0 Responses to “Fixing your lost delphi (.pas) Explorer file association for RadStudio”

Sorry, comments have been closed for this post.
(default) 11 queries took 5 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1DESCRIBE `posts`17171
2DESCRIBE `comments`11111
3DESCRIBE `tags`220
4DESCRIBE `categories`221
5DESCRIBE `posts_tags`221
6DESCRIBE `categories_posts`221
7SELECT `Post`.`id`, `Post`.`url`, `Post`.`title`, `Post`.`icon`, `Post`.`metadesc`, `Post`.`metakeys`, `Post`.`categories`, `Post`.`tease`, `Post`.`body`, `Post`.`private_body`, `Post`.`created`, `Post`.`modified`, `Post`.`status`, `Post`.`allow_comments`, `Post`.`tags`, `Post`.`hitcount`, `Post`.`hitcount_rss` FROM `posts` AS `Post` WHERE `Post`.`url` = 'fixing-your-lost-delphi-pas-explorer-file-association-for-radstudio' LIMIT 1110
8SELECT `Comment`.`id`, `Comment`.`post_id`, `Comment`.`body`, `Comment`.`author`, `Comment`.`url`, `Comment`.`email`, `Comment`.`ip`, `Comment`.`status`, `Comment`.`junk_score`, `Comment`.`created`, `Comment`.`modified` FROM `comments` AS `Comment` WHERE `Comment`.`status` = 2 AND `Comment`.`post_id` = (108) 000
9SELECT `Tag`.`id`, `Tag`.`tag`, `PostsTag`.`post_id`, `PostsTag`.`tag_id` FROM `tags` AS `Tag` JOIN `posts_tags` AS `PostsTag` ON (`PostsTag`.`post_id` = 108 AND `PostsTag`.`tag_id` = `Tag`.`id`) 440
10SELECT `Category`.`id`, `Category`.`category`, `CategoriesPost`.`post_id`, `CategoriesPost`.`category_id` FROM `categories` AS `Category` JOIN `categories_posts` AS `CategoriesPost` ON (`CategoriesPost`.`post_id` = 108 AND `CategoriesPost`.`category_id` = `Category`.`id`) 110
11UPDATE `posts` AS `Post` SET `Post`.`hitcount` = Post.hitcount + 1 WHERE `Post`.`id` = 10810