Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

InnoSetup Plugin

<< < (2/4) > >>

ZinnJonas:
ooops

the new path is:

--- Code: ---https://wxledplugin.svn.sourceforge.net/svnroot/wxledplugin/trunk/InnoSetup

--- End code ---

ZinnJonas:
Hi,

I've done the next svn.

there are some small fixes,:
-now you can create an empty File.
-The File will be opened at the end of the creation
-You will be prompt, to overwrite an existing File

some stuff like this

Is there someone, who can help me with a complex Wizard, because I'm not an expert, which Inno Setup
So I don't know every useful setting for an installer.

I've only written some small one with some settings, which wasn't set by the simple Wizard ;D

Br
Jonas

gour:

--- Quote from: ZinnJonas on September 21, 2010, 04:45:33 pm ---Hey all,

I'm currently writing a new plug-in for CodeBlocks for the Inno Setup Installer

--- End quote ---

Thanks a lot for it...

We plan to use CodeBlocks as IDE for upcoming open-source project written in D and few days ago I was considering whether to use CMake or Waf build-system...We'have decided to use Waf despite of the fact that CMake has support to create NSIS installers.

However, it's great to see that there is possibility to get Win installer via CB.  8)

ZinnJonas:
Hey,

i reactivated the project. It is now placed on github:
https://github.com/zinnjonas/cbInno

what happend:
- changed the name to cbInno
- instead of global variable there is now a settings page
- instead of compiling after a successful build will a inno run follow, there is now a "build" in the context menu of .iss files.
- added a log window ( with icon)

Some small change will follow in the next days i guess.

best regards,
zinnjonas

ZinnJonas:
Hey,

currently i had some time to play around with inno again.
I think i will improve the plugin in the following days.
But more important is that i created two inno files for the codeblocks version i use.

Both of the inno files are attached here.

So to use my codeblocks with all the plugins i use currently just use one of the installer generated and uploaded to FileStore.to.

The first one is bundled installer containing a few other installer containing usefull tools for cpp programming.
The second one is codeblocks with plugins only.

That installer and inno are windows tools i guess this plugin won't made it into the contrib. plugins.

CodeBlocks with a few other installer:
http://filestore.to/?d=J0YYVRMJ8B

CodeBlocks with a few Plugins:
http://filestore.to/?d=HBMJNASD5X

currently hosted on filestore.to does anyone knows a better place for them? And should i make installer for the nightly build for windows ? Are there some interested in that ?

To get the versions number correct out of the svn build i modified the autorevisions tool a little bit:
So here is my diff to the Windows cbp and autorevisionstool:

--- Code: ---Index: CodeBlocks.cbp
===================================================================
--- CodeBlocks.cbp (Revision 10406)
+++ CodeBlocks.cbp (Arbeitskopie)
@@ -168,7 +168,8 @@
  <Add directory="sdk/propgrid" />
  </Linker>
  <ExtraCommands>
- <Add before="build_tools\autorevision\autorevision +wx +int +t . include/autorevision.h" />
+ <Add before="build_tools\autorevision\autorevision +def +wx +int +t . include/autorevision.h" />
+ <Add before="build_tools\autorevision\autorevision +def . include/autorevision_setup.h" />
  <Add after="cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks" />
  <Add after="zip -jq9 devel\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc" />
  <Add after='cmd /c &quot;cd sdk\resources &amp; zip -0 -q ..\..\devel\share\CodeBlocks\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.png&quot;' />
@@ -756,6 +757,9 @@
  <Unit filename="build_tools/autorevision/autorevision.cpp">
  <Option target="AutoRevision" />
  </Unit>
+ <Unit filename="codeblocks.iss">
+ <Option target="sdk" />
+ </Unit>
  <Unit filename="include/annoyingdialog.h">
  <Option target="sdk" />
  </Unit>
Index: build_tools/autorevision/autorevision.cpp
===================================================================
--- build_tools/autorevision/autorevision.cpp (Revision 10406)
+++ build_tools/autorevision/autorevision.cpp (Arbeitskopie)
@@ -43,6 +43,7 @@
 bool do_int = false;
 bool do_std = false;
 bool do_wx  = false;
+bool do_def = false;
 bool do_translate  = false;
 bool be_verbose  = false;
 
@@ -54,7 +55,9 @@
 
     for(int i = 1; i < argc; ++i)
     {
-        if(strcmp("+int", argv[i]) == 0)
+        if( strcmp("+def", argv[i]) == 0)
+            do_def = true;
+        else if(strcmp("+int", argv[i]) == 0)
             do_int = true;
         else if(strcmp("+std", argv[i]) == 0)
             do_std = true;
@@ -76,6 +79,7 @@
     {
         puts("Usage: autorevision [options] directory [autorevision.h]");
         puts("Options:");
+        puts("         +def assign define");
         puts("         +int assign const unsigned int");
         puts("         +std assign const std::string");
         puts("         +wx  assing const wxString");
@@ -250,7 +254,6 @@
         in.close();
     }
 
-
     FILE *header = fopen(outputFile.c_str(), "wb");
     if(!header)
     {
@@ -257,12 +260,17 @@
         puts("Error: Could not open output file.");
         return false;
     }
-
-    fprintf(header, "%s\n", comment.c_str());
-    fprintf(header, "//don't include this header, only configmanager-revision.cpp should do this.\n");
+    if(!do_def)
+    {
+        fprintf(header, "%s\n", comment.c_str());
+        fprintf(header, "//don't include this header, only configmanager-revision.cpp should do this.\n");
+    }
     fprintf(header, "#ifndef AUTOREVISION_H\n");
     fprintf(header, "#define AUTOREVISION_H\n\n\n");
 
+    if(do_def)
+        fprintf(header, "#define SVN_REVISION %s\n", revision.c_str());
+
     if(do_std)
         fprintf(header, "#include <string>\n");
     if(do_wx)

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version