- NSIS Discussion
- SuperPiMP my setup
Archive: SuperPiMP my setup
kichik
19th December 2008 17:24 UTC
SuperPiMP my setup
I've just read about a cool idea I'd like to implement for NSIS. Users send in their scripts or parts of them and we wax, polish, shine and install cool features. The SuperPiMP'ed scripts are then posted to a website along with explanations of why things were done so other users can learn how to SuperPiMP their own scripts or simply get to know cool new tricks.
I was thinking of posting that in the form of a blog as that would allow neat archiving and the ability to easily post comments. We can install WordPress on nsis.sf.net. I already have a syntax highlighter for my own blog which can be used there. The only obstacle with that would be creating a matching theme.
So if anyone is willing to take on creating a place to put up those things with syntax highlighting and comments that would also look good (doesn't have to be Wordpress), I'm willing to take a script every two to three weeks. If not, I might just implement it as another category on my own blog.
The idea is based on Prototype's pimp my code which is in turn based on insult my code.
kichik
7th January 2009 00:11 UTC
Now that the holiday season is over and people are actually visiting the forums, I want to bring this up again. Any takers or is this going down the drain?
shuffle2
10th January 2009 01:06 UTC
Ok attached and quoted are the parts of my script so far.
Improvements I'd like to see:
- Package 32bit and 64bit binaries
- Let the user pick which parts to install (allow installation of 64bit items in addition to 32bit items if they're running an x64 OS)
- Allow for side-by-side installations (ie svn revision 1200 is separately managed from rev 1201, etc). I think I have this complete filename-wise, but not registry-wise.
- Sprucing up of anything you think is ugly
Thanks a lot for doing this, it is a really great idea!
GetSVNRev.nsi:
OutFile "GetSVNRev.exe"
SilentInstall silent
Section
; Create template for SubWCRev
FileOpen $R0 "svnrev_template.txt" w
FileWrite $R0 '!define PRODUCT_VERSION "$$WCREV$$"'
FileClose $R0
; Call SubWCRev!
Exec "..\Source\Core\Common\SubWCRev.exe ..\ svnrev_template.txt svnrev.txt"
SectionEnd
Installer.nsi attached
shuffle2
10th January 2009 01:07 UTC
ok i guess "preview post" clears your attached files...
kichik
10th January 2009 23:23 UTC
Thanks shuffle2, but I'm afraid that's not exactly what I meant. The idea was taking medium sized and above scripts and improve on those. That means fixing common bugs, using lesser known features, making the code prettier and generally improving whatnot. Adding new features people need to existing scripts could be nice too, but can be covered in Wiki pages. SuperPiMP'ing a script gives everyone a better idea of what should not be done and how it should be done instead with real world examples.
Red Wine
12th January 2009 20:02 UTC
I might not figure correctly how the SuperPimp thing working, so allow me to ask,
Is this some kind of bot which scans/boosts/improves nsis code or men do the job?
Unfortunately, in both cases I don't own a place to host SP, but if it is men's job I could contribute with my small nsis'ing knowledge.
kichik
12th January 2009 20:53 UTC
I wish I had something automatic for that :) It's all manual labor. I'll contact you know once the scripts flow in for SuperPiMP'ing. Thanks.
Red Wine
12th January 2009 21:23 UTC
Aye, Captain.
BuilderBob
15th January 2009 09:43 UTC
I have some header files i'd like to pimp. Did you already find a proper host?
MSG
15th January 2009 10:59 UTC
Just to show my random (and ultimately useless) support - I think this is a very interesting idea. My NSIS is by no means perfect, so I'm looking forward to seeing what the pros can teach us about how to do things right instead. Unfortunately I don't think I have anything specific that I could offer for pimping... I only have one installer framework, and it is 3000 lines not counting the usual includes. And even if you wanted something that big, it's not just mine to give away. >__>
kichik
15th January 2009 11:38 UTC
We still have no candidates. I might take a random open source project's installer eventually to get things started.
Ivanov
15th January 2009 14:22 UTC
Mybe you can take a look at FileZilla project:
http://filezilla.cvs.sourceforge.net...ource/install/
it uses Installoptions and MUI, so it could be shown how to update it to use MUI2 and nsDialogs. Maybe there are also some other things to "pimp"
Yathosho
21st February 2009 21:20 UTC
i've been sick for three weeks, so i need to catch up a lot of work. here is the wordpress theme for the site, it's not finished. css is valid, html isn't and i think the sidebar still needs adjustments. hopefully someone can continue from here. sorry for letting you down!