Old 3rd July 2014, 00:18   #1
atfpodcast
Junior Member
 
Join Date: Jun 2014
Posts: 30
Question NSIS editor

Is there a editor out there to create scripts for NSIS that's current with the latest 2. build?
atfpodcast is offline   Reply With Quote
Old 3rd July 2014, 03:35   #2
atfpodcast
Junior Member
 
Join Date: Jun 2014
Posts: 30
I found one that uses the eclipse editor. its a program that makes Andriod programs but the IDE works with the NSIS plugin.
atfpodcast is offline   Reply With Quote
Old 3rd July 2014, 08:31   #3
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
HM NIS Edit is an older program but it has good syntax highlighting, which I've been using since 2005.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 3rd July 2014, 08:41   #4
atfpodcast
Junior Member
 
Join Date: Jun 2014
Posts: 30
I tried it but it was missing some syntax data from the current compiler.
Quote:
Originally Posted by JasonFriday13 View Post
HM NIS Edit is an older program but it has good syntax highlighting, which I've been using since 2005.
atfpodcast is offline   Reply With Quote
Old 3rd July 2014, 10:06   #5
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
That's fine, I use it because it's simple and takes very little configuration to use. I haven't used Eclipse but it's plugin nature makes it easier to keep up to date.

I might consider writing my own editor in C to replace HM NIS Edit (written in Delphi 5). I might even use wxWidgets so it works on Linux as well.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 3rd July 2014, 10:09   #6
atfpodcast
Junior Member
 
Join Date: Jun 2014
Posts: 30
Quote:
Originally Posted by JasonFriday13 View Post
That's fine, I use it because it's simple and takes very little configuration to use. I haven't used Eclipse but it's plugin nature makes it easier to keep up to date.

I might consider writing my own editor in C to replace HM NIS Edit (written in Delphi 5). I might even use wxWidgets so it works on Linux as well.
its sourceforge so i know the source is there you just need the data struct to conver to C.

I would love to see an up to date IDE that works as the compiler gets updated.
atfpodcast is offline   Reply With Quote
Old 3rd July 2014, 10:52   #7
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
I think the major part would be writing the syntax highlighting and analyzing part, the rest is mostly UI stuff. I don't know Delphi, so trying to decipher the source to port it properly would probably take longer than a clean-room based approach.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 3rd July 2014, 10:54   #8
atfpodcast
Junior Member
 
Join Date: Jun 2014
Posts: 30
i was refering to the data structures. Then again a syntax.ini file would work with in depth sub text for mouse over that explains the syntax.

Quote:
Originally Posted by JasonFriday13 View Post
I think the major part would be writing the syntax highlighting and analyzing part, the rest is mostly UI stuff. I don't know Delphi, so trying to decipher the source to port it properly would probably take longer than a clean-room based approach.
atfpodcast is offline   Reply With Quote
Old 3rd July 2014, 13:31   #9
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
There is a updated syntax file for v2.4x somewhere on the forum or wiki.

I just made one for somewhere between v3.0b0 and v3.0b1.
Attached Files
File Type: ini Syntax.ini (7.4 KB, 188 views)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 4th July 2014, 08:20   #10
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
I recommend Sublime Text. I don't see the point installing a software you can only use to create NSIS scripts, while it doesn't offer any benefit over any other editor available (InstallOptions editor is hardly such a benefit since it's been declared obsolete).



Sublime Text is available for Windows, OS X and Linux, comes with syntax highlighting, command completion, build system and most useful snippets. NSIS plugins (including support for nsL Assember or BridleNSIS) are available through Package Control or GitHub. On top of that you can use most plugins in online code editors such as Ace (formerly Mozilla Bespin) and other modern editors like GitHub's own Atom.

See the NSIS Wiki for more screenshots!

PS: You can use Sublime Text indefinitely without paying at the cost of a nag-screen once per day, which I find –considering the editor's basic capabilites– more than fair
Yathosho is offline   Reply With Quote
Old 4th July 2014, 10:45   #11
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
Quote:
Originally Posted by Yathosho View Post
I don't see the point installing a software you can only use to create NSIS scripts
Compile & Run; I would not use a editor that does not support this. The syntax highlighting in HMNE is not that good because it is not context sensitive so it will highlight a parameter even if it does not apply to that particular instruction.


Quote:
Originally Posted by Yathosho View Post
PS: You can use Sublime Text indefinitely without paying at the cost of a nag-screen once per day, which I find –considering the editor's basic capabilites– more than fair
Not really:

Quote:
Sublime Text 2 may be downloaded and evaluated for free, however a license must be purchased for continued use

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 4th July 2014, 14:14   #12
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
Personally, I evaluated it for a year and bought a license when the first Sublime Text 3 betas came out. Anyway, that's not the point. I just wanted to point to an excellent alternative to HM NIS Edit. Even when I was mostly using a Windows computer, I even preferred Notepad++ over HM NIS Edit, the latter which I abandoned when nsDialogs became available, since the former was already more useful and had the all of the latter's features. Even vim or emacs already support NSIS 3.0a syntax.

In end, I just think everybody should try a couple of available editors and see what suits them best. And there is plenty to choose from: http://nsis.sourceforge.net/Category...t_Environments
Yathosho is offline   Reply With Quote
Old 4th July 2014, 15:11   #13
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
I used HMNE in the past, then EditPlus and now I'm using SciTe with a custom makensisandrun builder.

I might give Sublime Text 3 a try if I can figure out how to override things that come from a package...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 5th July 2014, 14:07   #14
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
If I do decide to go ahead and write an editor based on wxWidgets, I can use the Scintilla wrapper module already included with wxWidgets (SciTe uses Scintilla). For development I would use the nsis build system (NSIS Menu uses wxWidgets) as I'm lazy and don't want to build a stand-alone build system just yet .

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 5th July 2014, 17:48   #15
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
Quote:
Originally Posted by JasonFriday13 View Post
If I do decide to go ahead and write an editor based on wxWidgets, I can use the Scintilla wrapper module already included with wxWidgets (SciTe uses Scintilla).
I started working on a Scintilla based NSIS editor a while back but I ran into some Scintilla problems. The plan was to use background loading/saving and all that fancy stuff and only have one Scintilla window and multiple Scintilla documents (swap when you switch tabs) but something related to saving/restoring multiple? rectangle? selections prevented this from working 100% so I'd recommend using one Scintilla window per tab.

Also, the readonly mode is a bit stupid, it is also readonly to the programmer so a output pane cannot be readonly and therefore the user can mess with it while you are appending the compiler output!

A Notepad2 port (on our wiki?) probably has some Scintilla NSIS syntax support you might want to take a look at.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 6th July 2014, 12:55   #16
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
Cheers, that's something else I can look at for the highlighting.

I'm considering building a custom syntax engine by modifying the sources used in nsis, and including the same headers from makensis for the tokens, to strip it down to a straight analyzer. Then it's just the link between this and the text control, which I'm also considering building from scratch, which will probably end up being merged into one. This will give the editor the same scope and context that makensis expects.

svn is no help here, all it shows in the diff file is the extra line in Sconstruct for building the editor (yeah, I've already setup the basic build environment for it based off NSIS Menu).

For now the working title is NSIS Editor (how imaginative ).

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 10th July 2014, 21:11   #17
shadowpoa
Member
 
Join Date: Jun 2011
Posts: 52
have you heard about this project? sounds interesting..

https://hackage.haskell.org/package/nsis
shadowpoa is offline   Reply With Quote
Old 12th July 2014, 11:25   #18
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
Interesting. I don't know Haskell so it's not much use to me, but the idea looks cool.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 20th August 2014, 07:05   #19
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 562
Send a message via ICQ to T.Slappy
It looks like there is no good editor for NSIS so everyone wants to write his own

I also started writing the NSIS editor I wrote Visual & Installer which is a MS Visual Studio extension so it supports all the stuff like syntax highlighting, code completion, compile and build but even more like regions, code collapsing, braces matching, go-to, etc etc.
Check www.visual-installer.com for more details.

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2022: www.visual-installer.com
or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 20th August 2014, 07:34   #20
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
Yeah, I'm using wxWidgets so hopefully it will work on linux, mac, and windows. I'm slowly doing bits on it. I already have the basic layout of the gui, and wxWidgets already provides closeable tabs, and auto-sizing scrollable windows (which I'm painting directly onto the background) based on a virtual size, plus auto paint clipping. I have the piece-chain code from catch22.net, and after a few minor mods it's cross-platform.

Next is figuring out how to translate the info into wxWidgets code ready to be painted, and writing the painting code from scratch. Then syntax highlighting (plus reading the OutFile line for installer execution on windows), then I can think about implementing the editing side (including the cursor, selecting, copying, pasting, and deleting text).

This is a long term learning project for me. I don't actually like C++ as it's teaching me some bad habit's that I can't use in vanilla C, plus I keep getting out-of-context class errors, which for me are hard to diagnose.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 20th August 2014, 08:16   #21
stass
Senior Member
 
Join Date: Nov 2012
Posts: 166
T.Slappy
Quote:
Check www.visual-installer.com for more details.
This editor is paid ! This unpleasant nonsense. Draft NSIS - free without any commerce.
stass is offline   Reply With Quote
Old 22nd August 2014, 11:03   #22
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 562
Send a message via ICQ to T.Slappy
Quote:
Originally Posted by stass View Post
T.Slappy

This editor is paid ! This unpleasant nonsense. Draft NSIS - free without any commerce.
Yes, it is paid.

As Visual Studio is commercial product there are many fees and costs (for us as developer of V&I). But I hope many users who use Visual Studio will find NSIS useful so NSIS community will grow.

VS is the best IDE for developing/programming and NSIS is the best tool for creating software installations.
The idea was to include whole NSIS building process into Visual Studio - I wanted to easier life of many developers so they can use both systems in one place

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2022: www.visual-installer.com
or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump