Skip to content
⌘ NSIS Forum Archive

wansis - Skinned NSIS

85 posts

saivert#

wansis - Skinned NSIS

This is very old code which I recently found on my harddrive. I made it a while back.

It's basically a plug-in for NSIS which will apply a winamp based skin on your installer (hence wansis).

You can download the installer (which will set up shortcuts and copy files to your NSIS directory) or a 7-zip archive.

Installer: wansis_setup.exe (201 KB)

7-zip archive: wansis.7z

You might also be interested in this unzip plug-in I made. I know there already is one, but I had to make my own. My unzip plug-in (named nsisunz) will output extract progress to installer log window.
nsisunz.7z
kichik#
Cool!

Seems like your installer doesn't use unskinit and so the plug-in is not deleted from after the installer quits.
ZmAn3#
I get !include: could not find: "wansis.nsh" when trying to compile the example and i dont see this file extracted during install
saivert#
The installer is broken. Sorry for that one. I will delete it and just go with the 7z (7-zip) archive. Easier that way. Anyone here knows how to extract and copy files anyway.

Scroll bars can be skinned, but only under Windows 2000/XP. I think I will have to use code from the AlbumList (by Safai Ma) plug-in for Winamp to do that one.

I'm happy that you guys like it. But since the source code is included, you can work on it too. Isn't that what code sharing is about??
ZmAn3#
Since your inbox is full and the message won't send I'll have to respond to your private msg here.

I never could figure out C ,So I do what I can, I make
header graphics Wizard Bmps and crap.
[/quote]http://zman3.deviantart.com/
answered a few posts ect..




[quote]

saivert wrote on 07-09-2005 06:27 AM:
So you think NSIS is hard, huh?
Well... my friend (at least I hope so).

I think NSIS is pretty easy to learn, except that in some situations you want extra power and then NSIS can be a bit hard to deal with. You must certainly use your imagination when working with NSIS scripts.

I assume many of the visitors on the NSIS forums also know their fair share of C, C++, Delphi and other high-level programming languages. This is a forum for discussing the development of plug-ins as well. Not just a joint for you freebie script hungry guys.

Give some back!
grahama#
this is very cool....
except, where is the wansis.nsh ?
the prospect of creating your own skins is very exciting

also, is it possible with a little C jiggering to make custom shapes instead of the standard box ?
g
JasonFriday13#
This is great! Now I can make a custom installer look for my installers. Now I have to learn how to make winamp skins.📻 🙂
saivert#
I made a complete new directory structure layout for the new release of my archive.
Now you can extract it right in your NSIS folder and it should go along with the new NSIS v2.7 directory layout.
You will find the examples in examples\wansis, the skins in contrib\wansis\skins, the extractskin utility program in contrib\wansis, the documentation in docs\wansis, the plug-in itself in plugins as usual and the alleged missing include file in includes this time.
I really hope this helps. You can compile the examples without having extracted the archive in NSIS directory since the exmaples use !addplugindir and !addincludedir appropriately.
If any of the moderators here can remove the link to the installer in the post that starts this topic I will be glad. The installer is broken and I suggest people to download the 7z file instead. I can post a link to a zip file if people don't manage to install 7-zip. It's not that hard.

Here is the 7z archive with wansis and wansis.nsh included:
wansis.7z ( 168.89 Kb )

and if you guys are afraid of triggering my download hits counter then use this direct link:


and the zip version for you 7-zip phobics out there:
wansis.zip (195.19 Kb)

Again in a direct link version (which does not trigger a PHP script to track downloads):
ZmAn3#
heres a forum colors skin and header and checkbox bmps
JasonFriday13#
When I clicked the direct link for the wansis zip file above, this is the page I saw:

High security alert!!!

You are not permitted to download the file "wansis.zip" because it is infected with the virus "Adware/Beginto.DR".

URL = http://saivert.inthegray.com/uploads/nsis/wansis.zip

File quarantined as:

http://www.fortinet.com/VirusEncyclo...e%2FBeginto.DR
🙄 The 7-zip direct link works. Just giving the heads up to everyone, including saivert.
Comperio#
JasonFriday13,
I downloaded the same zip file from the link you listed above and I don't get any warning. I even manually scanned the files before and after extracting. Still nothing.

The warning you got might be a false positive in the virus scanner you are using. (I'm using AVG with the lastest signatures as of 7/11/2005)
saivert#edited
okay

Yup. It must be false positives. I have Norman Internet control (a firewall and av software package) and did not get any warnings. I archived it on a 100% virus free computer as well.

Nice skins. Hope you make some good use of it. Maybe in a real-world installer soon. Did the new directory layout make more sense?

I have repackaged the "Winamp forum theme" skin and included another example using the new skin.

Download: wansis-waforum-theme.7z (115.72 Kb)
saivert#
Screenshots and new version out!

Yes! you heard it. New version on the run.

In version 1.2 (wich this one is named) you got skinned scrollbars baby! And I have fixed the display issue with a blue underlined text appearing on some of the buttons (especially on InstallOptions pages).

Download wansis 1.2:
wansis.7z 191KB

Download Winamp forum skin and example:
wansis_waforum_theme.7z 130KB

Screenshots of wansis:

Screenshot #1 34,4KB
Screenshot #2 31,8KB
Screenshot #3 27,5KB
ZmAn3#
if your gonna be working on this i have a request can you do somthing about the close min button ect of course then it will take it a way from the winamp skins
Guest#
Hello,

I can see in the screenhot :http://home.no.net/nxs/nsis/wansis/s...creenshot3.jpg

that you have succeeds in putting images in the background of the buttons, how did you make?

That made several months that I search.
grahama#
At this point, the skins seem pretty vector'y and non 3D.
Is that a constraint of winamp skins or can you make XP/OS X like skins that are more in the 'eye candy' territory...
;
probably a stupid question but I thought I'd ask
g
saivert#edited
wansis source code

In wansis I'm only mimicing the skinning engine used in Winamp classic skins (2.x style). I'm not planning on making freeform skin plug-in for NSIS as that would require me to replace the NSIS UI entirely. Now wansis is only owner-drawing the controls and customizing the colors.

The source code for the latest version of wansis is located here:

wansis-source.7z 75KB
This 7-zip archive contains a Microsoft Visual Studio .NET 2003 project and solution file.
And remember: The code isn't pretty. It just works.

I hope you can learn how wansis really works from this. Inspect my code thoroughly.

@grahama: And I think the flat fixed skinning of Winamp 2.x is pretty eye-candy. It's just the imagination which sets the boundaries.

@SuperPat: If you read up on the BS_OWNERDRAW style of the BUTTON control class in the Win32 API you will lear how to draw the buttons and so on. Most controls in Win32 support customized drawing code, except scrollbars which require some more heavier coding (detours library is nice).

EDIT: Created wiki page --> http://nsis.sourceforge.net/wiki/Wansis
Yathosho#
cool plugin, though i'm afraid to see more bad examples of using it. think i gotta get back to skinning 🙂
grahama#
yes, aesthetics is definitely and eye of the beholder thing 🙂
;
maybe, I'll take a stab at making one this week.
guess what I am looking for is XP or Mac OS X like graphic skins...Could be fantastic for incroporating the client's branding colors....
g
Guest#
Thanks for the sourcecode, I will study it. The aim is to extract the portion of code which makes it possible to change the skin button.
ZmAn3#
Givin the current state of the plugin i think this is about as close to a osx type theme as I can get at the moment.
deguix#
There is a problem when you use the directory page before installing. The button "Install" becomes a non-skinned button if I click on "..." button to select an installation directory or if I change the path manually.
ZmAn3#
A lcd type theme / skin
this also comes with a resource hacked modern ui .exe file so i could make as many controls flat as possible (Anyone know a way to make the progress bar flat?) so they dont have the 3d border looking crap and the script has some code to enable the description text by default so its not the disabled 3D looking crap.