News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Do I need admin rights to install codeblocks ?

Started by jokoon, October 05, 2014, 05:02:40 PM

Previous topic - Next topic

jokoon

I'm planning to use codeblocks on a computer I don't have admin rights on. I'm planning to use the mingw version.

The unofficial portable version of codeblocks doesn't seem very up to date...

Do I need admin rights ?

stahta01

#1
Quote from: jokoon on October 05, 2014, 05:02:40 PM
Do I need admin rights ?

Edit: No, you do NOT for Code::Blocks; not sure about the MinGW installer.
(You can just copy the MinGW files from another machine; but, CB MinGW installer might need Admin right.)

I suggest using the zipped installation of CB; I have not verified that it still exists on sf.net.

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]

jokoon

thanks for the quick answer :) !

Yes, I found the "no-setup" zip, but it doesn't seem to come with any compiler.

oBFusCATed

As far as I know the installer automatically requests admin rights if needed.

If you don't have admin access to the computer you have to install in non-default folder.

The compiler we're shipping is TDM 4.8 (I think) and you can install it separately.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

jokoon

Quote from: oBFusCATed on October 06, 2014, 01:12:44 AM
If you don't have admin access to the computer you have to install in non-default folder.

What do you mean ? How do I "install in non-default folder" ?

Do you mean I have to install mingw separately ? Or do I have to supply the codeblock+mingw installer some particular parameter ? Because once I click on that installer I'm asked to supply the admin password.

Miguel Gimenez

Windows has a "smart" ??? system for deciding when to ask for admin rights. If the executable name contains words like INSTALL, SETUP or similar, it will ask for admin rights, even if not needed.

Try removing those dangerous words from the installer's name.

jokoon

#6
Quote from: mgimenez on October 06, 2014, 04:59:05 PM
Windows has a "smart" ??? system for deciding when to ask for admin rights. If the executable name contains words like INSTALL, SETUP or similar, it will ask for admin rights, even if not needed.

Try removing those dangerous words from the installer's name.

This did not help, I renamed the 'codeblocks-13.12mingw-setup-TDM-GCC-481.exe' installer to 'tre.exe', it still asks for a password.

MortenMacFly

There is a special installer for non admin installs.look at the download page for details...
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]

jokoon

Quote from: MortenMacFly on October 06, 2014, 09:38:05 PM
There is a special installer for non admin installs.look at the download page for details...

http://www.codeblocks.org/downloads/binaries#windows

I don't see anything about an installer for non admins.

Anyway, I downloaded TDM-GCC separately from http://tdm-gcc.tdragon.net/ and codeblock no-setup, and it worked.

oBFusCATed

For the record I cannot find such installer, too.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

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]

MortenMacFly

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]