Skip to content
⌘ NSIS Forum Archive

EclipseNSIS

207 posts

iceman_k#
EclipseNSIS 0.9.6 and EclipseNSIS InstallOptions Editor 0.9.6 released

EclipseNSIS 0.9.6 and EclipseNSIS InstallOptions Editor 0.9.6 are both available for download now.
See the EclipseNSIS home page for details.

Notes:
  • Windows Vista should now be supported, but has not been exhaustively tested with the application.
  • The new nsDialogs plugin is not supported by the InstallOptions editor, however I will explore some sort of support for it in the future.


Changes:

EclipseNSIS
  • Added support for changes in NSIS 2.26:
    o New variables and constants ($EXEPATH, $EXEFILE, $PROGRAMFILES64, $PROGRAMFILES32, $COMMONFILES64, $COMMONFILES32
    o New InstallLib options (LIBRARY_IGNORE_VERSION and LIBRARY_X64).
    o New and changed commands (SetRegView, GetDLLVersionLocal, MessageBox and File)
    o Fixed support for Windows Vista
    o Wizard now supports 32-bit or 64-bit target platforms.
  • Bug Fixes
    o 1714373
    o 1733997
    o 1745754
    o 1760927
    o 1770860


EclipseNSIS InstallOptions Editor
  • Added support for new HLine and VLine controls.
  • Added support for line-breaks in Link controls.
  • Bug fixes:
    o 1734246
xbarns#
🙁 🙁 🙁

I updated my Eclipse and EclipseNSIS today, and where everything worked fine before i now have a problem "compiling".

When i now open any of my .nsi files i am not presented with the option of "CompileScript" in the EclipseNSIS menu, it is greyed out.

If i create a new .nsi file using EclipseNSIS Script Wizard it works fine , until i close Eclipse, when i reopen the file i have the same behaviour as stated above....

I know this probably only is a configuration issue, but i don't get where i go wrong.

Any help or "being pointed in the right direction" would be much appreciated.

Thanks.
xbarns#
Oh sorry should have thought of that

OS: Windows XP Professional SP2, German (fully patched)
Eclispe Version: 3.3.0 Build id: I20070625-1500
********#
Will there be an all-in-one update site distribution for 0.9.6? Downloads ratio of 1/8 for version 0.9.5.1 is good enough to consider experiment successful including the fact the package released two weeks later after a main release.

I would appreciate the option to download all three eslipsensis arts and install them at once by pointing from within an eclipse rather than messing with unzip and eclipse folders.
iceman_k#
Originally posted by xbarns
Oh sorry should have thought of that

OS: Windows XP Professional SP2, German (fully patched)
Eclispe Version: 3.3.0 Build id: I20070625-1500
Hmmm... that should be fine.
Did you check the error log to see if any errors were being reported?
iceman_k#
Originally posted by ********
Will there be an all-in-one update site distribution for 0.9.6? Downloads ratio of 1/8 for version 0.9.5.1 is good enough to consider experiment successful including the fact the package released two weeks later after a main release.

I would appreciate the option to download all three eslipsensis arts and install them at once by pointing from within an eclipse rather than messing with unzip and eclipse folders.
It is available now for download.
xbarns#
well i found two logfiles that i deemed interesting

eclipse\configuration\org.eclipse.update\error_recovery.log

LogEntry.0=START_INSTALL_LOG
LogEntry.1=BUNDLE C:\Programme\eclipse\plugins\org.eclipse.draw2d_3.2.100.v20070529.jar1187335010171.tmp
LogEntry.2=BUNDLE C:\Programme\eclipse\plugins\org.eclipse.gef_3.2.100.v20070620.jar1187335010187.tmp
LogEntry.3=FEATURE C:\Programme\eclipse\features\org.eclipse.gef_3.3.0.v20070620\feature1187335010187.xml
LogEntry.4=ALL_FEATURES_INSTALLED
LogEntry.5=RENAME C:\Programme\eclipse\features\org.eclipse.gef_3.3.0.v20070620\feature1187335010187.xml
LogEntry.6=RENAME C:\Programme\eclipse\plugins\org.eclipse.draw2d_3.2.100.v20070529.jar1187335010171.tmp
LogEntry.7=RENAME C:\Programme\eclipse\plugins\org.eclipse.gef_3.2.100.v20070620.jar1187335010187.tmp
LogEntry.8=END_INSTALL_LOG
eof=eof


eclipse\configuration\org.eclipse.update\install.log

!CONFIGURATION 1187334412890 Fri Aug 17 09:06:52 CEST 2007
!ACTIVITY 1187334428609 Aug 17, 2007 09:07:08.609 file:/C:/Programme/eclipse/ site-install success

!CONFIGURATION 1187334488937 Fri Aug 17 09:08:08 CEST 2007
!ACTIVITY 1187334486390 Aug 17, 2007 09:08:06.390 org.eclipse.rcp.patch1_3.3.0.v20070705_330 feature-install success
!ACTIVITY 1187334488890 Aug 17, 2007 09:08:08.890 org.eclipse.rcp.patch1_3.3.0.v20070705_330 feature-enable success

!CONFIGURATION 1187335010281 Fri Aug 17 09:16:50 CEST 2007
!ACTIVITY 1187334954031 Aug 17, 2007 09:15:54.31 net.sf.eclipsensis_0.9.6 feature-install success
!ACTIVITY 1187335009437 Aug 17, 2007 09:16:49.437 net.sf.eclipsensis_0.9.6 feature-enable success
!ACTIVITY 1187335009437 Aug 17, 2007 09:16:49.437 net.sf.eclipsensis.installoptions_0.9.6 feature-install success
!ACTIVITY 1187335009687 Aug 17, 2007 09:16:49.687 net.sf.eclipsensis.installoptions_0.9.6 feature-enable success
!ACTIVITY 1187335009687 Aug 17, 2007 09:16:49.687 net.sf.eclipsensis.source_0.9.6 feature-install success
!ACTIVITY 1187335009921 Aug 17, 2007 09:16:49.921 net.sf.eclipsensis.source_0.9.6 feature-enable success
!ACTIVITY 1187335009921 Aug 17, 2007 09:16:49.921 net.sf.eclipsensis.utilities_0.9.2 feature-install success
!ACTIVITY 1187335010031 Aug 17, 2007 09:16:50.31 net.sf.eclipsensis.utilities_0.9.2 feature-enable success
!ACTIVITY 1187335010031 Aug 17, 2007 09:16:50.31 org.eclipse.gef_3.3.0.v20070620 feature-install success
!ACTIVITY 1187335010234 Aug 17, 2007 09:16:50.234 org.eclipse.gef_3.3.0.v20070620 feature-enable success


I downloaded all the Items again (Java (5.11 / 6u2), Nsis, Eclipse, EclipseNSIS (0.9.5.1 AND 0.9.6) and tried it again on my machine. I also tried it on a brand new VMWare XP Prof SP1 English. Nothing it shows the same behaviour as described above.

Here is what i do

1. Install Java
2. Install NSIS
3. Install Eclipse
4. Install EclipseNSIS and GEF 3.3.0

am i missing anything ?

🙁 and all because i only wanted to draw my custom pages instead of editing an ini file 🙁


Any Ideas ? Anyone ?
iceman_k#
Originally posted by xbarns
well i found two logfiles that i deemed interesting

eclipse\configuration\org.eclipse.update\error_recovery.log

...

eclipse\configuration\org.eclipse.update\install.log

...
No, the error log I mean can be accessed by going to Window->Show View->Error Log in the Eclipse 3.3 menu.
iceman_k#
Originally posted by xbarns
Ok i went back to Eclipse 3.2.2 and EclipseNSIS 0.9.5.1, everything works again 🙂
But you will then miss all the enhancements that came with NSIS 2.26 and above.
Sorry I could not be of more help.
But if you could check the Eclipse 3.3 error log using the method I described earlier, I may be able to help you.
xbarns#edited
No, the error log I mean can be accessed by going to Window->Show View->Error Log in the Eclipse 3.3 menu.
Nope sorry, no entries , i still have 3.3 installed.

I opened one of my exisiting files as well as creating a new one which i could compile once but after closing and opening again....

But you will then miss all the enhancements that came with NSIS 2.26 and above.
Yes 🙁 , but right now i just need to be able to compile.


If there is anything else you want me to try just let me know i have downloaded all the stuff and i can set up another installation in minutes.


_ edit _

ok i installed again, no errors in the log you mentioned, only when i click on the "Export the NSIS script as an HTML file" Button i get

eclipse.buildId=I20070625-1500
java.version=1.6.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86

Error
Fri Aug 17 15:39:15 CEST 2007
java.lang.reflect.InvocationTargetException


but i guess that is bnot what you are looking for, is it ?
iceman_k#
No that is not what I was looking for.
But since you got that error, perhaps you could double click on it in the Error view to get the detailed stack trace information? Or did Eclipse crash completely?

However, in an attempt to reproduce your problem, I set up an Windows XP SP2 German installation.
I then installed Sun JRE 1.5.0-12, NSIS 2.29, Eclipse 3.3, GEF 3.3 and EclipseNSIS 0.9.6.
I was able successfully open and compile NSIS scripts.
I also tried exporting as HTML without any problems.

Is there something special I need to know about your setup?
Which edition of Windows XP are you using? Is it one of the "N" editions?
xbarns#
No that is not what I was looking for.
But since you got that error, perhaps you could double click on it in the Error view to get the detailed stack trace information? Or did Eclipse crash completely?
Hmm too bad, Eclipse did not crash completely, do you want me to send you the stack trace?

Is there something special I need to know about your setup?
Which edition of Windows XP are you using? Is it one of the "N" editions?
Not that i am aware of, what bugs me the most ist that it happens on different machines (my Laptop, my Desktop and a VMWare running on the Desktop).

My Windows Edition are all Volume License Versions and N would be the one without Media Player or IE right ? But they all have IE and MediaPlayer.
iceman_k#
Originally posted by xbarns
Hmm too bad, Eclipse did not crash completely, do you want me to send you the stack trace?
Sure, go ahead - it can't hurt.

Originally posted by xbarns

Not that i am aware of, what bugs me the most ist that it happens on different machines (my Laptop, my Desktop and a VMWare running on the Desktop).

My Windows Edition are all Volume License Versions and N would be the one without Media Player or IE right ? But they all have IE and MediaPlayer.
Yes, I also installed a Volume License version of XP SP2 German.

If you are familiar with Java programming, you can debug the plugin. The source code is also available as a plugin.
xbarns#
If you are familiar with Java programming, you can debug the plugin. The source code is also available as a plugin.
Well i guess that would be my next problem 🙁 I have no idea about programming. 😁

Here is the stack trace.

http://www.bergens.name/Eclipse_Stack_Trace.txt
xbarns#
😁 😁 😁 😁 😁 😁

I think i might have the solution....

Ok there is 2 ways to save your .nsi File in Eclipse:

1. in a project
2. on the filesystem

It works when i save it in a project but not when i save it in the filespace.

Can you confirm this ?

I switched to using projects now...
iceman_k#
Thanks, that was the key. I can reproduce the problem. I will investigate and hopefully release an update shortly.
iceman_k#
EclipseNSIS 0.9.6.1 and EclipseNSIS InstallOptions Editor 0.9.6.1 released

EclipseNSIS 0.9.6.1 and EclipseNSIS InstallOptions Editor 0.9.6.1 are both available for download now.
See the EclipseNSIS home page for details.

Notes:
This release addresses the problems opening external files.

Changes:

EclipseNSIS

EclipseNSIS InstallOptions Editor


As always, I am looking for any and all bugs you may find. These may be entered in the EclipseNSIS project SourceForge Bug tracker. Feature requests may also be entered.
iceman_k#
Originally posted by xbarns
😁 😁 😁 😁 😁 😁

I think i might have the solution....

Ok there is 2 ways to save your .nsi File in Eclipse:

1. in a project
2. on the filesystem

It works when i save it in a project but not when i save it in the filespace.

Can you confirm this ?

I switched to using projects now...
Did you try the 0.9.6.1 update yet?
It should fix this problem.
xbarns#
Did you try the 0.9.6.1 update yet?
It should fix this problem.
Darn i was busy annoying a customer and forgot all about it.

Just tried it, it works fine, thanks for the effort. 👍
iceman_k#
Originally posted by ********
Will there be an all-in-one update site distribution for 0.9.6? Downloads ratio of 1/8 for version 0.9.5.1 is good enough to consider experiment successful including the fact the package released two weeks later after a main release.

I would appreciate the option to download all three eslipsensis arts and install them at once by pointing from within an eclipse rather than messing with unzip and eclipse folders.
0.9.6.1 is now available as an archived site.
TobbeSweden#
I can't get EclipseNSIS working. I first tried to install it using Eclipse's update manager. That didn't work. I then tried doing it the manual way. That didn't work either. I didn't get any error messages or anything when installing it.

I can see the EclipseNSIS options in the Preferences dialog and there is an NSIS Update Wizard entry in the Help menu. But There isn't a EclipseNSIS menu, and there isn't an nsis perspective and there is no nsis project wizard.

I'm using Eclipse SDK Version: 3.3.1.1 Build id: M20071023-1652 on Windows XP SP2 Swedish with JavaRE 1.6.0_03

What can I do to get it working?
iceman_k#
Originally posted by TobbeSweden
I can't get EclipseNSIS working. I first tried to install it using Eclipse's update manager. That didn't work. I then tried doing it the manual way. That didn't work either. I didn't get any error messages or anything when installing it.
No error messages is good.
That means it worked.

Originally posted by TobbeSweden
I can see the EclipseNSIS options in the Preferences dialog and there is an NSIS Update Wizard entry in the Help menu. But There isn't a EclipseNSIS menu, and there isn't an nsis perspective and there is no nsis project wizard.
You are looking for things that don't exist. There is no NSIS perspective nor is there any such thing as an NSIS project.
What you will find, however, is an NSIS Script Wizard which you can use to create new NSIS scripts.
Alternatively, you can open an existing NSIS script using the File->Open menu item.
If you have an NSIS file in an existing Eclipse project, you should be able to double click on it to open it.
The EclipseNSIS menu will show up once an NSIS script has been opened in the NSIS editor.

Originally posted by TobbeSweden
I'm using Eclipse SDK Version: 3.3.1.1 Build id: M20071023-1652 on Windows XP SP2 Swedish with JavaRE 1.6.0_03

What can I do to get it working?
It appears that everything is actually installed correctly. Just open an NSIS script and see if you can edit and compile it propertly.
TobbeSweden#
Wow! Don't I feel stupid? 😛

One thing though. When I get a compilation error and click on it in the console a new copy of the file with the error in it is opened, even if it's already opened in Eclipse. I think it would be better if it would just jump to the line with the error in the already opened file.

Other than that, great work, and thanks for your help 🙂
iceman_k#
Hmmm... it should jump to the line in the existing editor.
Can you provide details of the file, e.g., is it an external file or a internal file (i.e., part of a project).
How did you open it? Is it possible to attach the file to your reply so that I can test with it?
TobbeSweden#
I opened the file by dragging it from explorer and dropping it in Eclipse. This is the file: (The error is on line 10)
!include MUI.nsh

Name "Test"
OutFile "TestMUI.exe"
ShowInstDetails show
ShowUninstDetails show
InstallDir "$PROGRAMFILES\Test"

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\COPYING_" ; Error on this line
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH

!insertmacro MUI_LANGUAGE "English"

Section "Main Application" sec01
SetOutPath $INSTDIR
File /r '${NSISDIR}\Stubs'
WriteUninstaller "$INSTDIR\uninstal.exe"
SectionEnd

Section UnInstall
RMDir /r $INSTDIR
SectionEnd
Talking about projects... How do I create an installer project?
iceman_k#
OK, thanks. I can reproduce it. I will investigate.

Also, there is no such thing as an "Installer Project".
At least, not that I know of.
You can add your nsi file to any Eclipse project.
If you don't have an Eclipse project, you can create a new Project and set its location to be that of your nsi file.
TobbeSweden#
there is no such thing as an "Installer Project"
Yeah, that's why I got confused... When I'm going to write something in Java I choose "File->New->Project->Java Project". When I'm going to write something in C++ I go "File->New->Project->C++ Project". So naturally I went looking for a "Installer Project" or "NSIS Project" but couldn't find anything... I found a "General Project", guess I can use that...
pospec#edited
EclipseNSIS is very nice, but I had problems with Compile / Test / Compile & Test buttons. I commited my problem with Test button into bugtracker (ID 1830306).

Now my Compile & Test button refuses to launch installer after compiling. I didn't change EclipseNSIS Preferences. It is a pitty, that was best feature at all ;-)

EDIT: I've restarted my computer (after 4 days). It's fuzzy - both "bugs" sometimes work and sometimes don't.