News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Code blocks .cbp file will not associate with code blocks

Started by Chay Hawk, September 13, 2014, 09:02:02 PM

Previous topic - Next topic

stahta01

#15
You might post which CB Installer you are using.

There are at least 3 for CB 13.12; of which I would guess one installs the association and one does not.
The third one I have no idea which way to guess.

Edit: Looks like the third type I remember was replaced by two other types.
The ones ending in nosetup.zip will NOT installs the association.

I would guess the ones with setup and without the nosetup would install the associations.

But, this is just a guess.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Chay Hawk

I am using the codeblocks-13.12mingw-setup-TDM-GCC-481 version.

stahta01

Quote from: Chay Hawk on September 16, 2014, 01:35:48 AM
I am using the codeblocks-13.12mingw-setup-TDM-GCC-481 version.

I would think it would install the associations; but, there is a lot of people on the web with file associations and Windows 8 questions.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

As far as I know it's C::B itself that registers the file-endings not a setup program.
You can try to (temporary) rename the folder the C::B exe is in (e.g. from CodeBlocks to CodeBlocks.tmp), and run C::B from explorer.
Now C::b should ask whether to associate it with some file-endings.
Chose yes (or whatever it's called exactly) and see if it helps.
Change the foldername back (after closing C::B) and run it again.
You should get the same question.

But if setting it explicitely from the "Settings"-dialog does not work, this might not work too.

Check for antivirus and other (programmers-)system breaking stuff, that might "protect" your registry from being changed.

Chay Hawk

#19
That didnt work either. I guess i'll just have to live with it until i find a solution, there isn't really anything I can do :/

MortenMacFly

What happens is you double click on the file in the explorer, choose the application to launch with and store this as default? This should result pretty much on the same thing what cb does.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Chay Hawk

I got it solved, I had to actually re install my OS because it was causing me tons of problems, so now everything is good. Thanks for the help though.