Author Topic: Simple Hobbyist Installer for Windows  (Read 15078 times)

Offline Kogrom

  • Multiple posting newcomer
  • *
  • Posts: 12
Simple Hobbyist Installer for Windows
« on: July 06, 2009, 10:02:45 am »
Original Code::Blocks Installer (8.02) has an old compiler, old IDE files, and without wxWidgets binary. I want to make Installer which includes new parts. I already make alpha version. It is very primitive, but included all the parts:

http://code.google.com/p/codeblocks-mix/downloads/list

This Installer is not very good. May be I will make better Installer if you will give me some advices.

I hope you understand my English :)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5905
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Simple Hobbyist Installer for Windows
« Reply #1 on: July 06, 2009, 10:14:58 am »
Original Code::Blocks Installer (8.02) has an old compiler, old IDE files, and without wxWidgets binary. I want to make Installer which includes new parts. I already make alpha version. It is very primitive, but included all the parts:

http://code.google.com/p/codeblocks-mix/downloads/list

This Installer is not very good. May be I will make better Installer if you will give me some advices.

I hope you understand my English :)

Really wonderful. Here is my suggestion:

1,  what does the CodeBlocksMix.exe really contains?

MinGW compiler? wxWidgets source code? or it is an on-line demand installer?


I suggest rename the license.txt to readme.txt

Quote
This Hobbyist Installer includes Code::Blocks rev5678 (2009.06.21), MinGW-gcc 4.4.0 (TDM), and wxWidgets' Library (unicode, monolithic, static) ver 2.8.10.

2,  I'd prefer this installer looks like the installer in TDM-MinGW, which has an update functionality. Also, it can update to the latest nightly build version :D

Thanks!!
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Kogrom

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Simple Hobbyist Installer for Windows
« Reply #2 on: July 06, 2009, 10:44:52 am »
I suggest rename the license.txt to readme.txt
Ok.
2,  I'd prefer this installer looks like the installer in TDM-MinGW, which has an update functionality. Also, it can update to the latest nightly build version :D
Installer includes 3 parts. wxWidgets part is available only in source. It is not easy to update. Only if I make whole part.

But I have some another problems now. My Code::Blocks not always finds the MinGW, and wxWidgets not close integrated with IDE.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5905
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Simple Hobbyist Installer for Windows
« Reply #3 on: July 06, 2009, 10:49:46 am »
Also, I suggest you can try a portable Code::blocks. Which need a CbLauncher.exe in the root.
see

http://forums.codeblocks.org/index.php/topic,10360.0.html
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Kogrom

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Simple Hobbyist Installer for Windows
« Reply #4 on: July 06, 2009, 07:46:08 pm »
Also, I suggest you can try a portable Code::blocks. Which need a CbLauncher.exe in the root.
see

http://forums.codeblocks.org/index.php/topic,10360.0.html
I think it is useful information. May be if I'll edit some data about MinGW's path in "default.conf", Code::Blocks will find MinGW. But it can work not only in portable version. I 'll test it at this week.

Next problem is wxWidgets. It is not clear for beginners how to do wxWidgets applications with Code::Blocks. I want to make it more easy. But in this choice wxWidgets must be included in IDE, and must be more simple wizard to make wxWidgets' "Hello World": if  I have only one type of library then less answers I need.

Offline sdfwds4

  • Single posting newcomer
  • *
  • Posts: 7
Re: Simple Hobbyist Installer for Windows
« Reply #5 on: July 11, 2009, 09:06:58 am »
i am new, and finding a version C::B like this one has including wxWidgets and MinGW. Maybe this one is which i want to find. think you!
There is a suggestion, CodeBlocksBundle.exe maybe is good name for this Installer. :lol:

Offline Kogrom

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Simple Hobbyist Installer for Windows
« Reply #6 on: July 12, 2009, 09:02:19 pm »
There is a suggestion, CodeBlocksBundle.exe maybe is good name for this Installer.
May be. Then my English will be better, I shall decide.

Now I learn NSIS Modern GUI. I want to make my Installer like original.
And I find looking for a good xml-plugin for NSIS. I shall use it for changing MinGW options (location) in "default.conf". Because then user make a new Code::Blocks' install, in this file remain an old MinGW's location.
« Last Edit: July 13, 2009, 12:54:07 pm by Kogrom »

Offline Kogrom

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Simple Hobbyist Installer for Windows
« Reply #7 on: August 11, 2009, 01:08:02 pm »
I took the file from SVN and make Installer with Modern Interface.

This Hobbyist Installer includes Code::Blocks rev 5716 (2009.07.27), MinGW-gcc 4.4.0 (TDM), and wxWidgets' Library (unicode, monolithic) ver 2.8.10. User can select directory to install Code::Blocks and MinGW files, but wxWidgets can be installed only in C:\wxWidgetsUM, because there are some problems to find wxWidgets in folder who have spaces in name.

Original code consists in one file. I am parted this file. You can see the code in this SVN:
http://codeblocks-mix.googlecode.com/svn/trunk/

All source and Installer:
http://code.google.com/p/codeblocks-mix/downloads/list

I hadn't made good test for this Installer. I think it may have some errors.
« Last Edit: August 11, 2009, 01:09:53 pm by Kogrom »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5905
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Simple Hobbyist Installer for Windows
« Reply #8 on: August 11, 2009, 01:14:17 pm »
Great!
I think C::B users can benefit from your hard working.

Edit
I think you can use "global IDE varialbe" to set the MinGW path.

Something like:

Setting->compiler and debugger setting -> Toolchain executable:
then fill the edit control with   (#MinGW_Path)

But I haven't tried that.
« Last Edit: August 11, 2009, 01:18:51 pm by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Kogrom

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Simple Hobbyist Installer for Windows
« Reply #9 on: August 11, 2009, 01:24:17 pm »
Great!
I think C::B users can benefit from your hard working.
Thank You for moral support. I want to have Code::Blocks installer with wxWidgets binary included, with new MinGW. But nobody make it. So I am begin this work. But I am not a good programmer though.

Offline Kogrom

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Simple Hobbyist Installer for Windows
« Reply #10 on: August 11, 2009, 01:38:37 pm »
I think you can use "global IDE varialbe" to set the MinGW path.

Something like:

Setting->compiler and debugger setting -> Toolchain executable:
then fill the edit control with   (#MinGW_Path)
I cannot make it. I haven't see the button to make this setting in "Settings->compiler and debugger setting -> Toolchain executable".

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5905
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Simple Hobbyist Installer for Windows
« Reply #11 on: August 11, 2009, 01:45:50 pm »
 "Menu-> Settings-> compiler and debugger setting -> Global compiler setting -> Toolchain executable".
It's here. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Kogrom

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Simple Hobbyist Installer for Windows
« Reply #12 on: August 11, 2009, 02:01:05 pm »
I think I see what you mean. Yes, I can show to IDE where is MinGW. But I want to show to Windows where is MinGW. And I add MinGW/bin to Windows Path. It is useful then I build wxWidgets or something.

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Re: Simple Hobbyist Installer for Windows
« Reply #13 on: August 27, 2009, 11:52:43 pm »
I did something like this several years ago. It had the update functionality as well as being able to figure out if you needed the Unicode or ANSI version and installed the proper one.

I'll admit that it had bugs, but overall it worked pretty well.

Maybe this time around, someone else's installer would be better appreciated.

Offline wrenhal

  • Single posting newcomer
  • *
  • Posts: 3
Re: Simple Hobbyist Installer for Windows
« Reply #14 on: September 19, 2009, 12:25:04 am »
I haven't downloaded and tried to install this, but I do think it would have made my experience alot more enjoyable.  I spent several hours last night trying to get 8.02 to work on Vista and had most of it working and then realized that cb would error when I tried to save my project files...  OUCH...  So then I realized I could use the nightly build and it worked finally.  Took me forever to get it working.