You are here

NSIS 2.38 Portable Development Test 2

135 posts / 0 new
Last post
ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
NSIS 2.38 Portable Development Test 2

Base App: NSIS

Category: Development

About:
NSIS is the scripting language used to write all of the launchers for the applications on this site, NSIS Portable includes the full NSIS package so beginning users will have examples, tutorials and help files to work from. It it highly recommended to download another application from this site and use those scripts as samples for creating your own portable apps.

Download NSIS Portable 2.38 Dev Test 2

Release Notes:

2008-07-23
Updated to use latest PortableApps.comInstaller
Added the new TextReplace plugin

2008-07-14
Updated NSIS to 2.38

2008-05-08
Development Test 3 - Fixed Patrick's suggestions

2008-05-06
Bug Fixes

2008-05-05
Updated NSIS to 2.37

2008-04-22
Added more Includes.

2008-04-18
Added more Includes. Please let me know what other Includes required for compiling PortableApps.com apps are missing, and I will add them in.

2008-04-14 Please delete previous install and start fresh
PortableApps.com required plugins and includes are now kept in /Data/Plugins or /Data/Include (thanks wraithdu for the tip)
nsisconf.nsh is now moved between the app dir and /Data/settings

2008-04-11
Updated to NSIS 2.36
The non-default NSIS plugins and includes that are required to compile PortableApps.com apps are now stored in DefaultData and moved in on first run. This eases the update process when upgrading the internal version of NSIS

Hint: Thanks to rayven01 for discovering this
If you use the NSISPortable.ini file to control which exe is loaded, you can launch the NSIS menu, the compiler or the zip2exe converter. the following sections are for each setup respectively.

Menu

[NSISPortable]
NSISDirectory=App\NSIS
SettingsDirectory=Data\settings
NSISExecutable=NSIS.exe
AdditionalParameters=
DisableSplashScreen=false

Compiler

[NSISPortable]
NSISDirectory=App\NSIS
SettingsDirectory=Data\settings
NSISExecutable=makensisw.exe
AdditionalParameters=
DisableSplashScreen=false

Zip Converter

[NSISPortable]
NSISDirectory=App\NSIS
SettingsDirectory=Data\settings
NSISExecutable=bin\zip2exe.exe
AdditionalParameters=
DisableSplashScreen=false

High Res Logo:
Old NSIS logo

Shawn Faucher
Shawn Faucher's picture
Offline
Last seen: 12 years 10 months ago
Developer
Joined: 2007-10-23 22:14
Looks good

This one is a good candidate for actually using the ini file. The following makes it skip the "quicklaunch" window and open the compiler directly:

[NSISPortable]
NSISDirectory=App\NSIS
SettingsDirectory=Data\settings
NSISExecutable=makensisw.exe

formerly rayven01

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
cool find. I actually want

cool find. I actually want the quicklaunch to load so beginning users can see the documentation and stuff too.

The developer formerly known as ZGitRDun8705

Shawn Faucher
Shawn Faucher's picture
Offline
Last seen: 12 years 10 months ago
Developer
Joined: 2007-10-23 22:14
Sure

That makes sense. And with the ini file we don't have to have two launchers, etc.. best of both worlds. Wink

formerly rayven01

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Great!

*sings* 'You've made me so... very happy'.

Anywho, I think this is Simeon's job, but my registry is all good on an admin account.

Now the Very Pick PAF Stuff.

  • Add your copyright in the \Other\Source\Readme.txt, and the launcher number is wrong.
  • Wow, that's a lot of pre-install code, is that to accomodate for SmithTech's NSIS Portable, too? Also, line 2.11 show's an update for 4.57, which is 7-Zip, but I'll let it slide. Blum
  • Looks like the splash still fades in, which seems gone for good now, line 184 - 200 to 0.
  • In App\AppInfo, I think it's appicon.ico, and then appicon1.ico would precede. Double check OpenOffice.org Portable on that.
  • Missed a period at the end of the Description line the the AppInfo.ini. Blum *hides form Zach*

All else looks good, great work, and thanks.

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
1. will do

1. will do
2. oops, can you tell i copied the 7-zip installer, maybe i should double check all my apps lol
3. will do
4. will change
5. will fix

Thanks for being picky, it keeps quality up.

Edit: I made the changes, but before I upload, I wanted to do this. Can I get some help on that?

The developer formerly known as ZGitRDun8705

Simeon
Simeon's picture
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Cool

I like the full package but I use the ini to launch makensis.exe cause I'm used to it Smile
It leaves nothing if I make a clean install. But if I upgrade from Smithtech's version, it leaves HKEY_CURRENT_USER\Software\NSIS behind. I dunno why. Win XP - restricted account.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Updated to development test

Updated to development test 2. I fixed the issues Patrick found, and added a feature, see the main post for details.

The developer formerly known as ZGitRDun8705

Simeon
Simeon's picture
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I already posted

that it leaves HKCU/Software/NSIS behind and Zach said :"I took care of that".
At first I though that would be due to my updating from Smithtechs version but then I figured out that it wasn't because of that.
I closed the main program and only kept the makensis.exe open because I only needed the makensis. But closing the main program resulted in the launcher closing and cleaning everything. But the makensis.exe is still open and able to write to the registry. So I think that's the problem for the left keys.
So I think it would be good if the launcher would only close if al the programs that can be started by the main program (makensis.exe and the converter) are closed. Should be easy in NSIS.

Looking forward to DevTest3 Smile

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Good find Simeon! Now I get

Good find Simeon!

Now I get to have fun trying to fix this lol. I'll try to have something up tonight, but possibly not until the weekend.

The developer formerly known as ZGitRDun8705

Simeon
Simeon's picture
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
yeah

It was a find with a journey. Took me a while to figure it out Smile
I'll be happy to help with the code if you need it or with the testing if you're done.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
ok....head back to the

Development Test 3 is up, and should fix the issue.

The developer formerly known as ZGitRDun8705

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Lol Nice

I got my website blocked by my school. Blum

FTP it is.

OliverK
OliverK's picture
Offline
Last seen: 1 year 6 days ago
Developer
Joined: 2007-03-27 15:21
That's good.

That's good. Smile

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Good job slick....how'd that

Good job slick....how'd that one happen?

The developer formerly known as ZGitRDun8705

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Proxy?

I'm gonna say they're very good, and caught the few times I used the proxy I had up there. Blum

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
lol oops

lol oops

back to the issue at hand tho, how's the dev test look, and does it work as expected? I know i'm part of the beta testing team too, but it's a lot easier for person x to break my work than it is for me to break my work.

The developer formerly known as ZGitRDun8705

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Yep

All seems good, it continues running when NSIS is closed, and Zip2Exe is running. Registry still seems clean.

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Cool, thanks for testing.

Cool, thanks for testing.

The developer formerly known as ZGitRDun8705

Simeon
Simeon's picture
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Same here

All good. You did a good job on shortening my code Smile

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
lol thanks...what code did I

lol thanks...what code did I shorten?

The developer formerly known as ZGitRDun8705

Simeon
Simeon's picture
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
just the

"check for multiple exes running"-code I posted in the other thread. Mine was like 20 lines long and yours is something like 8 so I was impressed and wondered why I only came up with the "long version" Smile

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
oh lol ok....i didn't even

oh lol ok....i didn't even see your post show up in the other thread lol, i'll go double check that, but yeah, shorter is probably better.

The developer formerly known as ZGitRDun8705

Skeletorfw
Offline
Last seen: 12 years 1 month ago
Joined: 2008-02-11 18:20
*sigh*

Time to start learning to code in NSIS I guess Blum

good release Biggrin

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Lol yeah it is, get to work

Lol yeah it is, get to work Wink

Thanks.

The developer formerly known as ZGitRDun8705

Dijaboro
Dijaboro's picture
Offline
Last seen: 6 months 3 weeks ago
Joined: 2007-04-19 02:49
works fine

thx a lot ... works fine ... finally i can delete my old 2.25 Wink

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
thanks for testing.

thanks for testing.

The developer formerly known as ZGitRDun8705

Bruce Pascoe
Offline
Last seen: 10 years 5 months ago
Joined: 2006-01-15 16:14
Nice.

Now I have no excuse not to switch from crappy Inno Setup to NSIS. One issue I noticed, though, almost right away... if the compiler is open and you run NSISPortable.exe to get the menu back (I tend to close stuff out of habit and then realize I need it back), you get a blank menu window. Might want to fix that...

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Fixed. Dev Test 4 is

Fixed. Dev Test 4 is uploaded now.

The developer formerly known as ZGitRDun8705

Bruce Pascoe
Offline
Last seen: 10 years 5 months ago
Joined: 2006-01-15 16:14
That was fast!

Thanks!

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Just had to add 1

Just had to add 1 line....cause it was an issue that I had in the past. The current working directory gets hijacked, so I had to reset it for the SECONDARYLAUNCH setup as well as the standard LAUNCH

The developer formerly known as ZGitRDun8705

digitxp
digitxp's picture
Offline
Last seen: 10 years 9 months ago
Joined: 2007-11-03 18:33
Works great for me

Only one thing that I can wish for:
In SmithTech's, I can link it to files with CafeMOD, but now it makes the menu rather than the compiler. Could it be possible to make a minilauncher so that it launches the compiler?

Insert original signature here with Greasemonkey Script.

Simeon
Simeon's picture
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Use the sample ini

in the main post. It does what I think you want.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

digitxp
digitxp's picture
Offline
Last seen: 10 years 9 months ago
Joined: 2007-11-03 18:33
The only thing is

I also want to use the menu Blum

Insert original signature here with Greasemonkey Script.

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
If you want both opened,

If you want both opened, just launch the compiler from the menu Wink

The developer formerly known as ZGitRDun8705

Bruce Pascoe
Offline
Last seen: 10 years 5 months ago
Joined: 2006-01-15 16:14
No, I know what he's asking.

No, I know what he's asking. He wants it so that files associated with NSIS Portable via CafeMOD open directly into the compiler, but launching NSIS Portable normally launches the menu.

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Ah...i get it now....I think

Ah...i get it now....I think that means command line support lol....i'll have to figure out how to add that in...and pray that CAFEMod accepts the command line in the association.

The developer formerly known as ZGitRDun8705

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Updated to NSIS version 2.35

Updated to NSIS version 2.35 Development Test 1

The developer formerly known as ZGitRDun8705

Simeon
Simeon's picture
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
doesnt work

I upgraded from your previous version on a limited xp account and it left the HKCU/Software/NSIS branch behind. It also seemed that the backup of the existing branch wasn't working. Can you confirm that on a limited account? Unfortunately I don't have the time atm to go deeper but maybe I can do it later this week.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
I'll test when I get home

I fixed it. Somehow Dev Test 4 of the old NSIS version lost some code to check for each separate process. It's been added back in, and all should work fine now.

The developer formerly known as ZGitRDun8705

Simeon
Simeon's picture
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Thanks

for the quick fix. DevTest2 works ok in Win XP limited.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Bruce Pascoe
Offline
Last seen: 10 years 5 months ago
Joined: 2006-01-15 16:14
Another menu bug

It you run NSISPortable, the menu pops up. If you then close the menu, it reappears again. Closing it a second time makes it go away for good. Why do I have to close it twice, though? OS is Vista Ultimate, if it matters.

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
LaunchAndExit

It seem it's automatically going to LaunchAndExit, and there's nothing to skip to TheEnd when needed.

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
I had noticed that behavior

I had noticed that behavior before, but I thought I fixed it. Maybe that was another fix that was somehow lost between DT3 and DT4

The developer formerly known as ZGitRDun8705

John T. Haller
John T. Haller's picture
Online
Last seen: 11 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Better Fix

A better fix would be to leave the menu launch untouched (it doesn't need a wrapper) and place the wrapper around the compiler. Then edit the menu to launcher the wrapper around the compiler instead of the compiler itself. That would eliminate the issue entirely and make coding easier.

You could probably ditch the splash entirely and we could just add the red bar from the splash to the bottom of the menu screen.

To edit the menu, just open the menu directory and edit index.html. I was doing this on the 1/2 finished version I didn't get around to releasing. Might as well learn from what I played with for this Smile

Sometimes, the impossible can become possible, if you're awesome!

LOGAN-Portable
LOGAN-Portable's picture
Offline
Last seen: 9 years 5 months ago
Developer
Joined: 2007-09-11 12:24
Does this include all

Does this include all plugins needed to compile portable apps launchers and installers also?

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Yep

Yea.

Nathan9222
Nathan9222's picture
Offline
Last seen: 8 months 3 weeks ago
Developer
Joined: 2007-12-06 22:35
ok

so far so good, but some registry is left behind. they r left at HKEY_CURRENT_USER\Software\NSIS and within that it leaves HKEY_CURRENT_USER\Software\NSIS\MRU i do not think anything else is left behind but that, but i will test this on a clean computer to find out. Also just because i know someone will post something that says "did u close the app and see if they got deleted?" the answer is yes i closed it and the keys never got deleted.

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Which System?

Which operating system is this on?

Nathan9222
Nathan9222's picture
Offline
Last seen: 8 months 3 weeks ago
Developer
Joined: 2007-12-06 22:35
im using......

im using Windows Xp. i think its confirmed that it leaves thos registry keys. It left them on another computer i used it on also. They are both Windows Xp.

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Nathan9222
Nathan9222's picture
Offline
Last seen: 8 months 3 weeks ago
Developer
Joined: 2007-12-06 22:35
hmmm i just...

i just noticed something, it seems to only make that registry key when u compile a script but not when u launch the program. or maybe its just me. here ill download a fresh copy and see what happens, maybe something got messed up.

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Nathan9222
Nathan9222's picture
Offline
Last seen: 8 months 3 weeks ago
Developer
Joined: 2007-12-06 22:35
k i just tried a fresh copy and..

i tried a fresh copy and it still makes the same key but now they r being deleted. Its weird how previously they werent being removed. I will do more testing to make sure nothing else is left behind.

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Thanks

For re-trying. Maybe you were looking at local keys still or something.

digitxp
digitxp's picture
Offline
Last seen: 10 years 9 months ago
Joined: 2007-11-03 18:33
Fatal Error

Jee, NSIS Portable just happened to stick a splash in front of me. When I terminate it, it just restarts :(.

Insert original signature here with Greasemonkey Script.

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
We Know

We know it restarts, it's mentioned above.

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
I uploaded a new version

I uploaded a new version that should have fixed that. Download the latest and try again?

The developer formerly known as ZGitRDun8705

Nathan9222
Nathan9222's picture
Offline
Last seen: 8 months 3 weeks ago
Developer
Joined: 2007-12-06 22:35
has anyone...

has anyone gotten this when scanning with clamwin?
"PortableApps\NSISPortable\App\NSIS\Stubs\zlib_solid: Trojan.Zlob-2395 FOUND"
I uploaded it to virustotal.com and got the following results. It might be a false positive but just wanted to point it out.

Antivirus	Version	Last Update	Result
AhnLab-V3	2008.4.1.2	2008.04.02	-
AntiVir	7.6.0.80	2008.04.02	-
Authentium	4.93.8	2008.04.02	-
Avast	4.7.1098.0	2008.04.02	-
AVG	7.5.0.516	2008.04.02	-
BitDefender	7.2	2008.04.03	-
CAT-QuickHeal	9.50	2008.04.02	-
ClamAV	0.92.1	2008.04.02	Trojan.Zlob-2395
DrWeb	4.44.0.09170	2008.04.02	-
eSafe	7.0.15.0	2008.04.01	-
eTrust-Vet	31.3.5666	2008.04.02	-
Ewido	4.0	2008.04.02	-
F-Prot	4.4.2.54	2008.04.02	W32/Trojan2.AIES
F-Secure	6.70.13260.0	2008.04.02	-
FileAdvisor	1	2008.04.03	-
Fortinet	3.14.0.0	2008.04.02	-
Ikarus	T3.1.1.20	2008.04.02	-
Kaspersky	7.0.0.125	2008.04.03	-
McAfee	5265	2008.04.02	-
Microsoft	1.3301	2008.04.01	-
NOD32v2	2995	2008.04.02	-
Norman	5.80.02	2008.04.02	-
Panda	9.0.0.4	2008.04.02	-
Prevx1	V2	2008.04.03	Generic.Dropper.xCodec
Rising	20.38.22.00	2008.04.02	-
Sophos	4.28.0	2008.04.02	-
Sunbelt	3.0.978.0	2008.03.18	-
Symantec	10	2008.04.03	-
TheHacker	6.2.92.262	2008.04.02	-
VBA32	3.12.6.3	2008.03.25	-
VirusBuster	4.3.26:9	2008.04.02	-
Webwasher-Gateway	6.6.2	2008.04.02	-
Additional information
File size: 35840 bytes
MD5: aac2137a4c11bcfff2e404ac3c3512d4
SHA1: 3625dd9e35c43c22adb79880871e2bd3d15f539a
PEiD: -
Prevx info: http://info.prevx.com/aboutprogramtext.asp?PX5=DD2DC0D100FFC6358C5E00E50C34C100F14D6EBA

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Bruce Pascoe
Offline
Last seen: 10 years 5 months ago
Joined: 2006-01-15 16:14
False positive

Sounds like a false positive. I just scanned the whole NSIS Portable folder in ClamWin with the latest definitions and got nothing.

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Updated internal version of

Updated internal version of NSIS to 2.36

The developer formerly known as ZGitRDun8705

Bruce Pascoe
Offline
Last seen: 10 years 5 months ago
Joined: 2006-01-15 16:14
2.36

2.36 Dev Test 1 works flawlessly in my use. No apparent bugs and no registry entries or other traces left behind. I think this is ready for pre-release...

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Thanks Bruce

Thanks Bruce Smile I just thought of some changes I wanna make for the PortableApps required plugins and how that gets implemented, DT2 will be posted tomorrow nite. I wanna make it check to see if the specific plugin already exists in the /App/NSIS/Plugins dir, and if it doesn't, then move it, instead of only moving them from /App/DefaultData on the first launch. With this implemented, users (and myself) can add plugins as they become necessary, and keep them in DefaultData so that the plugins aren't lost on an update then.

The developer formerly known as ZGitRDun8705

Bruce Pascoe
Offline
Last seen: 10 years 5 months ago
Joined: 2006-01-15 16:14
How about

It's my understanding that DefaultData is supposed to be for first-run stuff only... the launcher is supposed to copy its contents into Data if Data is empty.

What you could do is put the PA-required plugins into DefaultData\plugins, this way on first run they get copied into Data\plugins, and then as part of the launch you copy whatever is in Data\plugins into App\NSIS\Plugins. The reason? This way if the user adds plugins, they get backed up with all the user's other data. DefaultData doesn't get backed up in a data-only backup as it's considered part of the app.

wraithdu
Offline
Last seen: 9 years 2 weeks ago
Developer
Joined: 2007-06-27 20:22
!addincludedir / !addplugindir

I have a good solution to this...one that I may use for my default install as well. There are two compiler commands

!addincludedir
!addplugindir

These give the compiler additional search locations for for includes and plugins. If these commands are placed in the 'nsisconf.nsh' file located in the NSIS root directory, then they are compiled with every script. Relative paths are funny with this file, so use fully qualified paths relative to the NSIS base directory -

!addincludedir "${NSISDIR}\..\..\Data\Include"
!addplugindir "${NSISDIR}\..\..\Data\Plugins"

This should keep everything nice and separate, and intact during upgrades Smile

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
thanks for the tip, that

thanks for the tip, that works great

The developer formerly known as ZGitRDun8705

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Updated to 2.36 Dev Test 2

Updated to 2.36 Dev Test 2

The developer formerly known as ZGitRDun8705

digitxp
digitxp's picture
Offline
Last seen: 10 years 9 months ago
Joined: 2007-11-03 18:33
Noticed the change.

Though I have some home made includes, and I don't want to get into the prog folder (My new drive is rather slow). Any way to add that moving of the includes/plugins into the pre-install code?

Insert original signature here with Greasemonkey Script.

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
plugins aren't moved at all,

plugins aren't moved at all, they sit in /Data/Plugins or /Data/Include....wraithdu pointed out a compiler option that adds their path to a list of paths the compiler looks in

The developer formerly known as ZGitRDun8705

digitxp
digitxp's picture
Offline
Last seen: 10 years 9 months ago
Joined: 2007-11-03 18:33
I meant

move it from App from Dev Test 1.

Insert original signature here with Greasemonkey Script.

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
oh u mean to upgrade the

oh u mean to upgrade the previous install...Well seeing as I don't know what custom plugins you have, I can't really do that. Not all of the plugins and includes are in the /Data subdirectories, only the non-default files that are required to compile PortableApps.com apps. Plus, I tried doing something similar for another app of mine, and was told that in Dev Test stage we shouldn't worry about making in-place upgrades work. If you want your custom includes, just copy them over. They're just small txt files so it shouldn't take too long.

The developer formerly known as ZGitRDun8705

Jacob Mastel
Offline
Last seen: 1 year 9 months ago
Developer
Joined: 2007-06-13 19:36
Context Menu

Would you consider adding a context menu for NSIS portable?? It's fairly easier I could post the regkey's that will do it. Example: While the menu is running instead of launching a new window you could just right click on your .nsi file and click compile and it would do it. The only other thing I noticed is that we should make it so the launcher remembers to change the drive letter in past file locations. That's really handy when your constantly on the go and developing in your spare time. Smile

Release Team Member

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Updated to Dev Test 3, see

Updated to Dev Test 3, see main post for details.

The developer formerly known as ZGitRDun8705

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Small update, added another

Small update, added another include file. I didn't change the version number.

The developer formerly known as ZGitRDun8705

haustin
Offline
Last seen: 10 years 10 months ago
Joined: 2007-09-19 17:59
Great job!

Everything's clean, as found by previous testers.

There's a topic about nsExec in this post. It would be handy if your script would use ExecDos and if the installer would include it in DefaultData\plugins. Also, the Apps\NSIS\Menu\index.html can replace the nsExec line with:

<a href="EX:Docs\ExecDos\Readme.txt">ExecDos</a> - launch command line tools<br>

(in alphabetical order, of course. :-))

You could also consider an INI option ItemsToLaunch=N, where N is a combination of: 1=menu, 2=compiler, 4=zip2exe, 8=manual, etc. (e.g., compiler + manual = 2 + 8 = 10).

        ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "ItemsToLaunch"
        StrCpy "$ITEMSTOLAUNCH" $0
; ...
    LaunchNow:
        Sleep 100
        SetOutPath "$EXEDIR\App\NSIS"

        ; $ITEMSTOLAUNCH default behavior = 1 (menu)
        ; if set to 8 (manual only), do 9 (menu + manual)
;   LaunchItem8:    
        IntOp $0 $ITEMSTOLAUNCH & 8
        StrCmp $0 "0" LaunchItem4                   ; is bit 8 set?
            IntOp $ITEMSTOLAUNCH $ITEMSTOLAUNCH ^ 8 ; ... yes, unset it
            ExecShell open "${MANUALCHM}"           ; can't wait on Shell Open
    LaunchItem4:
        IntOp $0 $ITEMSTOLAUNCH & 4
        StrCmp $0 "0" LaunchItem2                   ; is bit 4 set?
            IntOp $ITEMSTOLAUNCH $ITEMSTOLAUNCH ^ 4 ; ... yes, unset it
            StrCmp $ITEMSTOLAUNCH "0" 0 +3          ; any other launch bits set?
                ExecWait "${ZIP2EXE}"               ; ... no, this was last one
                Goto CheckRunning
            Exec "${ZIP2EXE}"                       ; ... yes, there's more
    LaunchItem2:
        IntOp $0 $ITEMSTOLAUNCH & 2
        StrCmp $0 "0" LaunchItem1                   ; is bit 2 set?
            IntOp $ITEMSTOLAUNCH $ITEMSTOLAUNCH ^ 2 ; ... yes, unset it
            StrCmp $ITEMSTOLAUNCH "0" 0 +3          ; any other launch bits set?
                ExecWait "${COMPILEREXE}"           ; ... no, this was last one
                Goto CheckRunning
            Exec "${COMPILEREXE}"                   ; ... yes, there's more
    LaunchItem1:
        ExecWait "${DEFAULTEXE}"                    ; no need to check (you made it this far)
        
    CheckRunning:

I compiled and tested this code with various values of ItemsToLaunch (including none at all), and they all worked. N.B. AdditionalParameters entry is ignored (which item would you apply them to?). Note that the SaveRegKey label isn't used, so it should be commented out like LaunchItem8 above. Also, CopyDefaultIndlucdes has an interesting spelling. Blum

And, this topic addresses the buggy-yet-it's-always-been-that-way-so-it's-not-a-bug INI file handling in current launchers. With the suggested changes, a user's NSISPortable.ini could look like this:

[NSISPortable]
DisableSplashScreen=false
# 1=menu, 2=compiler, 4=zip2exe, 8=manual (e.g., compiler + manual = 2 + 8 = 10)
ItemsToLaunch=10

Overall, an excellent project almost ready for release.

-hea

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Thanks, i'll give this a

Thanks, i'll give this a look over Sunday night, i'm busy all weekend.

The developer formerly known as ZGitRDun8705

digitxp
digitxp's picture
Offline
Last seen: 10 years 9 months ago
Joined: 2007-11-03 18:33
Hmm...

If you're going to replace nsexec w/ execdos, replace advsplash, too, etc. etc. with the common PortableApps plugins.
Maybe make a PortableApps edition NSIS.
Also, I'm starting to think this really deserves to be official, since we portableize using NSIS, it would be respectful to Portableize NSIS.

Insert original signature here with Greasemonkey Script.

David Dixon II
David Dixon II's picture
Offline
Last seen: 4 months 2 weeks ago
Developer
Joined: 2007-06-11 22:54
Im Confused ;)

NSIS Is Made Portable By NSIS Pardon COOL!

Na na na, come on!

Patrick Patience
Offline
Last seen: 2 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Haha

That is quite ironic.

digitxp
digitxp's picture
Offline
Last seen: 10 years 9 months ago
Joined: 2007-11-03 18:33
If your

largely expanding brain can't handle the capacity :P, let me explain it to you :P:
The local install of NSIS was tracked, copied, and portableized/compiled using the local install. I know, it's cool! But it leaves me wondering, why NSIS over AHK? The splash???

Insert original signature here with Greasemonkey Script.

David Dixon II
David Dixon II's picture
Offline
Last seen: 4 months 2 weeks ago
Developer
Joined: 2007-06-11 22:54
And I Quote

And i quote

" The local install of NSIS was tracked, copied, and portableized/compiled using the local install. "

HUH????????????? Pardon

i think u made it worse Blum

Na na na, come on!

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
That explanation makes no

That explanation makes no sense at all lol. And where did the AHK mention come from?

The developer formerly known as ZGitRDun8705

Stevoisiak
Stevoisiak's picture
Offline
Last seen: 2 years 10 months ago
Joined: 2008-02-05 11:22
Ok.

First, He made a copy of the regular NSIS from his hard drive. Then, he opens his local installed version of NSIS, to alter the copied NSIS.

Simplifying daily life through technology

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Yes, that is what I did to

Yes, that is what I did to make NSIS portable. I was just stating that digitxp's explanation made no sense.

The developer formerly known as ZGitRDun8705

Stevoisiak
Stevoisiak's picture
Offline
Last seen: 2 years 10 months ago
Joined: 2008-02-05 11:22
I know

I was clarifying for the guy who was confused

Simplifying daily life through technology

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
based on all the smilies he

based on all the smilies he used, I don't think he's really confused, he just finds it funny that NSIS was used to make NSIS Portable. Also, if your response was to him, it should have been a reply to him, not to myself.

The developer formerly known as ZGitRDun8705

David Dixon II
David Dixon II's picture
Offline
Last seen: 4 months 2 weeks ago
Developer
Joined: 2007-06-11 22:54
.

u found it out. i was just trying to be funny Wink

but my sis was confused as ever Blum

Na na na, come on!

haustin
Offline
Last seen: 10 years 10 months ago
Joined: 2007-09-19 17:59
Even cooler...

Once there's a working NSIS Portable [alpha, beta, pre-release, etc.], you don't need a local NSIS install at all.

Zach's Portable releases are the first and only NSIS version I've ever used. Smile

If you keep two copies, you can make arbitrary changes to NSIS Portable all day long, recompiling the new NSIS Portable with the old one. Can't beat that with a stick.

It's self-hosting. Shock

-hea

GrzegorzJZD
Offline
Last seen: 11 years 5 months ago
Joined: 2008-04-20 19:00
error with lzma compression

I can make PortableApps easily thanks to NSIS Portable, but it has a kind of bug.

It works perfect on my desktop (Pentium IV 1,7GHz, 768MB RAM, 80GB HDD), but it stuck every time I trying to build PortableInstaller on my laptop (AMD Sempron 3200+ 2GHz, 512MB RAM, 80GB HDD).

This is weird, because it works on my desktop, but on laptop it doesn't. It take about 100% CPU usage and block hole computer. PortableInstaller is growing up about 1MB per 30min. All in all I have to kill NSIS processes cause it blocks my computer. Sometime changing 'lzma' compression to zip helps.

Does anyone experience such problems?

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Using lzma compression is a

Using lzma compression is a bit slower, but that sounds like an odd situation. I've had NSIS slow my computer down while compiling PortableApps.comInstaller, but never used up 100% CPU. How large are the folders that you are compiling the installer for? As folders/files get bigger, compiling the installer takes longer.

The developer formerly known as ZGitRDun8705

GrzegorzJZD
Offline
Last seen: 11 years 5 months ago
Joined: 2008-04-20 19:00
It depend on App I'm making

It depend on App I'm making portable. Usually about 20MB, only OpenOffice is an exception (it's about 150~200MB).

NSIS getting well for about first 5MB of PortableApps.comInstaller, after that it stuck. After a few minutes CPU usage back to normal (less than 8~20%), but process of creation Portable Installer is running, but never ending.

I have no idea what is the reason and how to fix it? If I use nonportable NSIS (specially without plugins form NSIS 2.36 Portable Development Test 3, it is working).

P.S. There is new version --> NSIS 2.37 http://nsis.sourceforge.net/Download

ZachHudock
ZachHudock's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2006-12-06 18:07
Thanks for pointing me to

Thanks for pointing me to the update. I'll try to get that out soon. As for your issue, I'm not sure what to say, I have not had these issues and cannot reproduce the situation.

The developer formerly known as ZGitRDun8705

Nathan9222
Nathan9222's picture
Offline
Last seen: 8 months 3 weeks ago
Developer
Joined: 2007-12-06 22:35
actuallly.........

I have had this happen to me a lot when I have to recompile Celestia, it will do good for a while then it will just stop and my cpu usage goes to 100 percent and I cant do anything for about 20-30min. This happens when I use NSIS Portable idk about just a regular install.

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Pages

Log in or register to post comments