PDA

View Full Version : How about a GUI


PiBe
30th March 2001, 17:35
I like NSIS, but now it have much variables.
How about to make a GUI, i think it´s a good idea.
:)

PabUK
1st April 2001, 01:43
I thought about making one but I don't have the time. Anyone else care to give it a try? It would be very difficult to keep up with all the new versions of NSIS but it would give those people put off by scripts a nice system to work with.

Koen van de Sande
1st April 2001, 08:17
Good idea, a GUI. But at the moment, I don't have time to create it. It would't be too hard - but it depends on what you want in there.

First, you need a page with some generic settings (SetCompress, SetDateSave, etc).
Then you need a page with the different sections (a list), and you can modify them. But in such a program, you can't do anything 'cool' with if-statements and such, because it's too complex.

I'll think about it. Is anyone else already working on this? I can't start for another 3 weeks.

PabUK
1st April 2001, 13:01
I wouldn't mind helping out if I have the time, but I only program in Visual Basic.

Bor
1st April 2001, 13:17
I also thought of it. But if you program it you got to keep in mind the constant adding of features. I mostly program in Delphi.

Koen van de Sande
1st April 2001, 20:00
Well, I can do both Visual Basic and Delphi. But creating a good design is very important.
It should contain 'macro' functionality, for example, you can set for an OCX file 'Register' and then it's automatically added to the script. Same for version checking (but that's not implemented in NSIS yet).

After Easter, I'll have time to work on it. Personally, I'd go with Delphi because it doesn't require all those pesky Micro$oft Runtimes.

RM
9th April 2001, 20:41
I started to program a NSIS Gui.

If anyone want to join this small project, you are welcomed to contact me:
ranmanor@iname.com .
(or if he wants me to join him...).

PabUK
9th April 2001, 21:05
RM you didn't mention what programming language you are using so how do we know if we can help? Please specify!

I too have started an NSIS project, but not a GUI. Its called NSIS Assistant and is just for editing the script files and compiling them without having to copy makensis everytime you create a setup for a new project.

RM
10th April 2001, 07:39
I forgot to mention it, stupid me. =)
I'm using Visual C++ .

I thought making the GUI as a wizard.

If anyone has ideas for the gui, please mail me....
thanks.

Koen van de Sande
10th April 2001, 17:32
A wizard is nice, but you should be able to save your project, and open up the wizard again later (to add some files, etc).

You could make a wizard with Tab pages, where every page is a step, so you can easily switch between steps.
Ease of use is important.

But more important is maintaining script integrity. If you make a change to an existing script, it shouldn't mess up the script.

Just my thoughts. I can't help because I don't know C++. Isn't a 'lower-level' language like VB or Delphi easier for these 'GUI-oriented' applications?

rainwater
10th April 2001, 20:23
Most likely you would create a project file that would store the settings in a standard format your program can read. Then it could generate the script. But unless you are buiding some type of parser, it wouldnt be able to read .nsi files. It would be sort of a nsi compiler that compiles project files to .nsi not the other way around.

dallas_k
16th April 2001, 01:09
I Started working on one last Sunday.
Download it from my WebSite. Comments, complaints, etc. are welcome.

johnni_m
16th April 2001, 12:52
the Pimpette, great so far, but it would be nice with a open function, everytime you make an update you have to make a new script

dallas_k
16th April 2001, 22:41
Yes that would be nice. I will work on that also.

rm'
17th April 2001, 03:24
/me jumps in on the parade...

It's definetely not a gui, but it's close to a wizard :)

http://www.easynsigenerator.da.ru

It's done in... believe it or not... Pascal Turbo.


I'm helping Kaboon get in a real GUI... so far, it does the basics... not very extensible though. As of yet, you can only get in a max of 64 installation files, but it's a start. In VB (yes... ms runtimes are evil, but it's all I know). When Kaboon decides to release it, you can all see it.

Sadly, you can't pick up where you left of.

rm'
17th April 2001, 03:26
oh... forgot something... Wouldn't it be just that much easier if the script builder also compiles? Just a thought. In that case, it'd have to be built in C++, considering that's the language of NSIS.

liquidmotion
21st January 2002, 20:08
boy did i save the day or what? :)

just a few months late is all :)

cya

Koen van de Sande
22nd January 2002, 18:08
Brings back memories... :rolleyes: :confused: :) :D

Kaboon
23rd January 2002, 10:33
Hehehe... yeah it sure does Koen! :D

I gave up the total Easy Nsi Generator project btw. Haven't had any application to pimp. But I'll start to take a look at NSIS again soon. ;)

SmartyMan
31st January 2002, 21:12
I am working on a GUI for NSIS; it already works, the software speaks english but the docs are in german (no time for translation). If anyone here in the forum is interested in viewing/testing the beta, I would post the archive (currently 53KB rar archive) here in the forum.

If you like to take a look on how i work first, then visit http://www.smarty-online.de

SmartyMan

spanky
31st January 2002, 22:57
heh, is it just me or do other people find GUIs annoying? I had no trouble at all getting my NSIS script up and running. The provided documentation was enough to get me started.
I read through MakeNSIS.html and the examples before I got started. This way I was familiar with NSIS's abilities and the way it worked.

With a GUI your installation script will only be as powerful as the GUI allows it to be. Further "touching" up can be done by hand, of course, but at that point why not write the whole thing from scratch?

What would be more useful is a bunch of generic templates for people to use. (such as full working scripts with a few variables for them to change) This would help the newcomers by giving them a head start and allow them to add/modify as they see fit. And better yet, you won't be limited by a GUI and bothered with updating it with every NSIS release. In my opinion I think this serves a better purpose.

SmartyMan
2nd February 2002, 22:22
---
With a GUI your installation script will only be as powerful as the GUI allows it to be. Further "touching" up can be done by hand, of course, but at that point why not write the whole thing from scratch?
---
So you do your programming using a DOS-Console and with makefiles, instead of (for expample) viaual studio or somthing? ;)
Of course a GUI for NSIS must support script editing by hand, and of course there is no real need for a GUI when making trivial/little installers.
Imagine a installer for about 600 files and 90 folders - would you want to type all the SetOutDir/File etc commands by hand?

If you have no need for a GUI - fine, but I think that the existing of this thread proves, that other users have.

spanky
3rd February 2002, 00:12
Originally posted by SmartyMan

Imagine a installer for about 600 files and 90 folders - would you want to type all the SetOutDir/File etc commands by hand?

If you have no need for a GUI - fine, but I think that the existing of this thread proves, that other users have.

In some cases a GUI can be time-saving and practical. But I think the main reason for a demand lies in the fact that some people don't want to make the effort and spend the time to write their own script. They just want to click a few buttons in a wizard-guided interface and be done with it.

It just surprises me that someone would take the time to write a piece of software and not take the time to learn NSIS to package it. The script only has to be written once (and in some cases modifed from time to time) so it's not a big headache. (it was a breeze to write my first script (using ver. 1.h) and I have enjoyed adding new features to it when new versions of NSIS came out) This is why I think templates would come in handy.. it would allow the lazy folks to modify a few strings/variables and be done with it. (but maybe I am wrong, who knows.. maybe there are more point-and-click folks out there than I thought)

SmartyMan
3rd February 2002, 23:53
Originally posted by spanky

In some cases a GUI can be time-saving and practical. But I think the main reason for a demand lies in the fact that some people don't want to make the effort and spend the time to write their own script. They just want to click a few buttons in a wizard-guided interface and be done with it.

I agree with that - but in this context your posting sounds to me like you want to punish those guys.
I am often angry with my clients as they dont read the docs and calling our support hotline instead, wasting their time with asking "stupid" questions, but is that a reason for removing all the docs from our products?
As you said, GUIs can be practical and time saving, so lets focus on that o make our life a little easier:)

spanky
4th February 2002, 03:09
Originally posted by SmartyMan

I agree with that - but in this context your posting sounds to me like you want to punish those guys.
I am often angry with my clients as they dont read the docs and calling our support hotline instead, wasting their time with asking "stupid" questions, but is that a reason for removing all the docs from our products?
As you said, GUIs can be practical and time saving, so lets focus on that o make our life a little easier:)

I didn't meant to come across that way at all! :D
It's just that most NSIS users are developers and most developers are not the wizard interface point-and-click types.
Either way it's great to see others making an effort towards making NSIS an easier, more user-friendly application.

(um, if I didn't make any sense it's because I am wasted right now.. I just came back from the bar. !!!)

SmartyMan
4th February 2002, 22:36
Originally posted by spanky


It's just that most NSIS users are developers and most developers are not the wizard interface point-and-click types.
Either way it's great to see others making an effort towards making NSIS an easier, more user-friendly application.

Ad 1: Maybe I am not a real developer, because I like to create new Methods by rightclicking the class using the context menu, and I like juming direktly to the desired function in a 7000 lines class using a combobox with autolocator :D
Ad 2: I agree with that, but maybe you're right with 1. since there are no requests according to my GUI from the forum members so far.
I can live with that - less testers means less work for me ;)

crish
10th February 2002, 15:43
i played a little bit with my vb
and made a nsis analyzer
now i can parse a nsi script and put it into a tree

some more functions for READING a existing file are also in there
if I'll get it i'll try to write changes back

SmartyMan
10th February 2002, 23:36
Originally posted by crish
i played a little bit with my vb
and made a nsis analyzer
now i can parse a nsi script and put it into a tree

some more functions for READING a existing file are also in there
if I'll get it i'll try to write changes back
Maybe you should take a look at this file before you proceed.
This GUI ist nearly finished and primarly needs some beta testing before it gets a "1.00" version number.

Any comments are welcome.

bballer182
10th February 2002, 23:46
has anyone tried using the php NSIS generator at the firehose.net site, fairly simple. But like Smarty Man said your script could only be as powerful as the gui.

try it at www.firehose.net\free\nsis\makensitemplate.phtmlwww.firehose.net\free\nsis\makensitemplate.phtml (http://www.firehose.net\free\nsis\makensitemplate.phtml)

crish
11th February 2002, 07:44
no the available functions in nsisplus arent enough for me
i wanted to have a windowed version of nsis that support almost all
possible things in there with the comfort of a tool like setup factory

i use the tree only for analysing my script

i try to add wizards and forms for adding removing sections functions vars registry stuff language support and much more

SmartyMan
11th February 2002, 22:25
Originally posted by crish
no the available functions in nsisplus arent enough for me
Any examples about Whats missing?


i try to add wizards and forms for adding removing sections functions vars registry stuff language support and much more

So maybe I should stop developing NSISplus and wait for your results?:D
My aim is not to replace the need of a text editor but to reduce its need, because I cant see how a GUI can do all the things possible in NSIS without using a text editor.

crish
12th February 2002, 07:57
ok since your prog is a script editor its ok

but I want a gui where u dont need to know anything about scripting when u create a simple installer ( there is such a wizard tool somewhere i've seen)

i also want to have real language support :
just choose from a listview a language module (nsh file)
where the texts are in, so it would be better I think
(u dont need to know what Completedttext or so is exactly)

the next one : i can drag n drop files i want into my prog and then double click for extra options like destdir or renaming or for dlls replace after reboot or so

ok i need a function editor but thats only for experts

i'll try to add standards like a reboot option or a startmenu chooser

like in professional installers - maybe i dont get it working but i try

your version of a gui is a complete other way best wishes but I try an other way ...

SmartyMan
13th February 2002, 22:53
Originally posted by crish

but I want a gui where u dont need to know anything about scripting when u create a simple installer
Did you realy take a look t NSISplus?
For a simple installer you need these steps:
1. Select File/New, choose a name --> you will get a ready for use framework
2. Open the main section and D&D the file you want to install on the OutDir item
3. Press F5 (compile)

i also want to have real language support :
just choose from a listview a language module (nsh file)
where the texts are in, so it would be better I think
I would prefer using different templates for that, because a) editing is easier (just one file) and b) transporting the installer scripts is easier (I use to work alternately on my PC and my Vaio, and som of my projects are develpoed in groups, so even more computers are included)

When do you expect to publish a beta that shows how you GUI will work?

crish
19th February 2002, 17:44
ok

i also use different includes for language support
u can select your fav one from a listbox

one for each language (only german at the moment)
what my prog does is :

drag n drop of files in the listview
ability for own functions ( real scripting)

guis for general, files options , dir options and so on
if u like i can post the exe somewhere
there u can see what i mean

liquidmotion
20th February 2002, 02:15
sure, i'd love to see it :)

SmartyMan
23rd February 2002, 23:50
Originally posted by crish
ok
if u like i can post the exe somewhere
there u can see what i mean
Why dont you post it here in the formu, so that all of us can see what it will be?

BTW: if anyone here is interested in a new beta of NSISplus, i can post it here, too.

crish
24th February 2002, 11:55
does absolutely nothing ....

only starts if u have vb 6 runtimes installed also commondialog ocx
and u need to register the ocx included in the zip below ...

the prog can load a nsi file and parse (some parts)

thats my intention for a installmaker gui

very much to do i know

i try to add more functions

crish
24th February 2002, 11:56
and here IS the ocx for the outlookbar ..

the max size of uploads are a little bit too small for progs ...

crish
25th February 2002, 19:16
update
now can read a nsi file

can read : general things like name
file properties
sections
functions (with content)
writeregstr (more reg stuff comes)
structure

not working :
adv. general stuff
uninstall
language

and : writing any parts does not work

SmartyMan
25th February 2002, 23:25
Originally posted by crish
and here IS the ocx for the outlookbar ..
Sorry, but I cant get this starting... the vb6 runtime is there, I thing there must be another dependency missing.

crish
26th February 2002, 14:28
thats the deps of the exe :

ADVAPI32.DLL
GDI32.DLL
KERNEL32.DLL
MSVBVM60.DLL
NSISW.EXE
NTDLL.DLL
OLE32.DLL
OLEAUT32.DLL
RPCRT4.DLL
USER32.DLL

and the vb project says this files :

Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; mscomctl.ocx
Object={86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCT2.OCX
Object={38911DA0-E448-11D0-84A3-00DD01104159}#1.1#0; Comct332.ocx
Object={3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0; RICHTX32.OCX
Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; Comdlg32.ocx
Object={FE0065C0-1B7B-11CF-9D53-00AA003C9CB6}#1.1#0; COMCT232.OCX
Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0; comctl32.ocx
Object={400A4126-B881-4443-9644-438C5727D147}#1.0#0; obar2k.ocx
Object={74701400-9DD9-11CF-A662-00AA00C066D2}#1.0#0; iemenu.ocx

commoncontrols
richtextcontrol
ie (i have 6.0)

created with : vb 6 sp 5

dont forget to register the obar2k.ocx with regsvr32 !
(i have put the obar2k.ocx into my system32 dir u should do this to
also i only tried it on windows 2000)

SmartyMan
26th February 2002, 23:06
Originally posted by crish
thats the deps of the exe :

ADVAPI32.DLL
GDI32.DLL
KERNEL32.DLL
MSVBVM60.DLL
NSISW.EXE
NTDLL.DLL
OLE32.DLL
OLEAUT32.DLL
RPCRT4.DLL
USER32.DLL

My dependency walker shows me exactly the same list.

Object={74701400-9DD9-11CF-A662-00AA00C066D2}#1.0#0; iemenu.ocx

This is missing on my system.


dont forget to register the obar2k.ocx with regsvr32 !

Do you really think that I would forget this even though you have said this before?:)

crish
27th February 2002, 06:25
sorry !

u would not be the first who forgot this !

attached : v 0.00.0006

working on winnt 4.0 with ie 5.5

SmartyMan
28th February 2002, 23:48
Originally posted by crish

attached : v 0.00.0006

working on winnt 4.0 with ie 5.5
It starts now - sorry, no comments yet, maybe I can find some time for looking at your work this weekend.

AMandato
13th March 2002, 05:33
I wanted to post a new subject about a NSIS editor I created called Venis (http://www.mandato.com/venis/). Well I found this forum and I hope the creation of my editor does not upset anyone.

Venis key features:
*Syntax highlighting of key words.
*Compiler output view.
*File tools (saving, open, close, print).
*Edit tools (copy, paste, cut, select all).
*Compiler execution and final program execution for testing.

I decided on an SDI (Single Document Interface) because typically you are only working with one NSI file. I did allow multiple instances of the program to be opened. There is a compile results view, a tool bar, and the typical tools most IDE's have (Find, Replace, Goto...). Tomorrow (Thrusday, May 13, 2002) I will post the first release.

Any feedback would be appreciated.

Thanks!

Smile2Me
13th March 2002, 06:57
http://www.mandato.com/venis/. Any feedback would be appreciated.

Cannot find server:

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

--------------------------------------------------------------------------------

Please try the following:

Click the Refresh button, or try again later.

If you typed the page address in the Address bar, make sure that it is spelled correctly.

To check your connection settings, click the Tools menu, and then click Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP).
If your Network Administrator has enabled it, Microsoft Windows can examine your network and automatically discover network connection settings.
If you would like Windows to try and discover them,
click Detect Network Settings
Some sites require 128-bit connection security. Click the Help menu and then click About Internet Explorer to determine what strength security you have installed.
If you are trying to reach a secure site, make sure your Security settings can support it. Click the Tools menu, and then click Internet Options. On the Advanced tab, scroll to the Security section and check settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0.
Click the Back button to try another link.

Cannot find server or DNS Error
Internet Explorer


Good luck,
Hendri.

SmartyMan
15th March 2002, 18:06
Originally posted by AMandato
I wanted to post a new subject about a NSIS editor I created called Venis (http://www.mandato.com/venis/)

Any feedback would be appreciated.

Thanks!
Some feedback:
* My system is not located on C: and my programms are not installed in "program files", so any of your attempts to open MSIE directly fails with an error message.
Hint: Using ShellExecute(hwnd, "open", <path to html file>, ...) will work on all systems.
* makeNSIS can be found via registry instead of asking the user for its location.
* When makeNSIS fails e.g. with "file not found - aborting creation process", then the script was NOT compiled successfully, even if venis reports this ;)
* Using SDI is OK, but you should add the possibility to load more than one file, because the user surely wants to copy some code from other install scripts, when creating a new script. I suggest adding a button line at the bottom of the window to switch between the loaded files.

AMandato
16th March 2002, 15:45
Awesome! Hey do not be afraid to give me more suggestions. I originally thought of some kind of tabbing system for multiple files but opted to design with just one single file.

Using myself at work, I was thinking about making a feature that would leave the file you last opened and keeping the same cursor position.

I think I am going to make a forum/feature request page on the Venis website so others can request features.

I want to make a feature to load different word files for the older builds of NSIS.

If anyone has developed with Power++, I want to create a toolbar that can allow drag and drop programming. I may make an example with File and MessageBox functions and see if others would like this.

Thanks,

Angelo

AMandato
26th July 2002, 19:16
Venis, Visual Enviornment for NSIS, has been updated. A few minor additions and bug fixes are outlined in the history page.

Next version of Venis will include unique features which will allow fast editing and development of NSIS scripts. Look for it in a month or two.

Thanks everyone for the input!

Angelo

http://www.spaceblue.com/venis/