Old 8th July 2005, 05:14   #1
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
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
saivert is offline   Reply With Quote
Old 8th July 2005, 09:41   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Cool!

Seems like your installer doesn't use unskinit and so the plug-in is not deleted from after the installer quits.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 8th July 2005, 15:48   #3
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
Thumbs up

So cool...! Go nice tips from your example also, thanks.

"Just do it"
onad is offline   Reply With Quote
Old 8th July 2005, 21:54   #4
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
I get !include: could not find: "wansis.nsh" when trying to compile the example and i dont see this file extracted during install
ZmAn3 is offline   Reply With Quote
Old 8th July 2005, 21:56   #5
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
it is in the zip pack thou also is it possible to skin the scroll bar
ZmAn3 is offline   Reply With Quote
Old 9th July 2005, 04:40   #6
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
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??
saivert is offline   Reply With Quote
Old 9th July 2005, 04:58   #7
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
Isn't that what code sharing is about??

the NSIS scripting code is hard enough
ZmAn3 is offline   Reply With Quote
Old 9th July 2005, 05:51   #8
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
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!
ZmAn3 is offline   Reply With Quote
Old 10th July 2005, 19:44   #9
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
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
grahama is offline   Reply With Quote
Old 11th July 2005, 00:00   #10
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 877
This is great! Now I can make a custom installer look for my installers. Now I have to learn how to make winamp skins.
JasonFriday13 is offline   Reply With Quote
Old 11th July 2005, 04:34   #11
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
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:
http://saivert.inthegray.com/uploads/nsis/wansis.7z

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):
http://saivert.inthegray.com/uploads/nsis/wansis.zip
saivert is offline   Reply With Quote
Old 11th July 2005, 21:54   #12
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
heres a forum colors skin and header and checkbox bmps
Attached Files
File Type: zip forumtheme.zip (51.5 KB, 726 views)
ZmAn3 is offline   Reply With Quote
Old 12th July 2005, 03:16   #13
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 877
When I clicked the direct link for the wansis zip file above, this is the page I saw:

Quote:
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.
JasonFriday13 is offline   Reply With Quote
Old 12th July 2005, 04:36   #14
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
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)
Comperio is offline   Reply With Quote
Old 12th July 2005, 08:38   #15
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
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)

Last edited by saivert; 12th July 2005 at 09:48.
saivert is offline   Reply With Quote
Old 13th July 2005, 21:21   #16
rsegal
Senior Member
 
rsegal's Avatar
 
Join Date: Feb 2003
Location: Toronto, Canada
Posts: 227
Pretty slick saivert. This skinning stuff is awesome.
rsegal is offline   Reply With Quote
Old 13th July 2005, 22:39   #17
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
can anybody upload a screenshot please?
Yathosho is offline   Reply With Quote
Old 15th July 2005, 16:58   #18
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
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
saivert is offline   Reply With Quote
Old 15th July 2005, 19:00   #19
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
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
ZmAn3 is offline   Reply With Quote
Old 15th July 2005, 21:58   #20
SuperPat
Guest
 
Posts: n/a
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.
  Reply With Quote
Old 15th July 2005, 22:18   #21
SuperPat
Guest
 
Posts: n/a
It would be possible to have the sourcecode of your plugin?
  Reply With Quote
Old 15th July 2005, 22:52   #22
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
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
grahama is offline   Reply With Quote
Old 16th July 2005, 00:02   #23
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
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

Last edited by saivert; 16th July 2005 at 00:41.
saivert is offline   Reply With Quote
Old 16th July 2005, 09:13   #24
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
cool plugin, though i'm afraid to see more bad examples of using it. think i gotta get back to skinning
Yathosho is offline   Reply With Quote
Old 16th July 2005, 15:30   #25
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
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
grahama is offline   Reply With Quote
Old 16th July 2005, 18:09   #26
SuperPat
Guest
 
Posts: n/a
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.
  Reply With Quote
Old 17th July 2005, 01:49   #27
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
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.
Attached Files
File Type: zip osxtheme.zip (60.1 KB, 733 views)
ZmAn3 is offline   Reply With Quote
Old 17th July 2005, 04:46   #28
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to 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.
Attached Images
File Type: jpg installbuttonbug.jpg (26.0 KB, 740 views)

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 17th July 2005, 08:11   #29
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
the show details button also does that
ZmAn3 is offline   Reply With Quote
Old 17th July 2005, 09:24   #30
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
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.
Attached Files
File Type: zip wansis_lcd_theme.zip (16.4 KB, 693 views)
ZmAn3 is offline   Reply With Quote
Old 17th July 2005, 12:50   #31
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
July 17th 2005

@ZmAn3: I'm working on wansis to make it do what you did manually using resource editor, and so one can just use the default dialog resources.

Currently I'm having trouble with the code for the unskinit function (not the macro, but the plug-in function itself). I can't get it to unskin NSIS properly. I have tried a lot, but the NSIS dialog doesn't have the correct size and some of the controls look messed up. I hav undone everything I have done in the skinit function (like unsubclassing, setting BS_PUSHBUTTON for buttons previously BS_OWNERDRAW, fixing the colors back to the windows defaults and so on).

Here is the latest source code, hope someone will take a look:
wansis_source_july_17th_2005.7z 70,1 KB
I'm not releasing the binary of this source code as it is buggy.

I will also implement Desktop Alpha Blending feature (with a nice drop shadow effect) if I can get UpdateLayeredWindow to work. Must be making a 32 bit BMP with Alpha channel.
saivert is offline   Reply With Quote
Old 17th July 2005, 17:40   #32
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
that sounds cool
ZmAn3 is offline   Reply With Quote
Old 17th July 2005, 18:00   #33
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
thanks for the OS X skin
For myself, I am going to wait a bit and see how the plug develops. Kudos to all for pushing it forward as this is an extremely relevant direction....
g
grahama is offline   Reply With Quote
Old 17th July 2005, 18:43   #34
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
saivert
what are you using as a compiler so i can get it? version ect
ZmAn3 is offline   Reply With Quote
Old 18th July 2005, 23:03   #35
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
July 19th 2005

@ZmAn3: I'm using Microsoft Visual Studio .NET 2003
You can also compile using the compiler that is included in Platform SDK but you should also get the standalone compiler pack from Microsoft since the platform one only is for IA64 and not for x86 architecture (I lost you there didn't I??).
Actually any C compiler for Win32 should work. Try Bloodshed Dev-C++ which is an IDE bundled with MinGW (minimalistic GNU for Windows).


Some questions:
1. Should I start using the term "theme" instead of "Skin"?
2. Can I only expect to see themers/skinners around here and no programmers whatsoever? I really like the themes, but I need some help with the programming as well. I don't want credit for it all alone. Nothing good comes out of that.
3. I'm thinking about the button that suddenly isn't skinned anymore. This is because NSIS itself resets the window style of the button in order to set it as the default button (the one that is automagically clicked when someone hits enter).
I will NOT check up on this button each 25 ms either (think of the CPU use). SO I will have to use some other method.

Kudos to all that has showed interest in this.

New version is also out:
Download: wansis.7z 332 KB
Latest source: wansis-source.7z 94,8 KB

Changes in this release:
Added: Included all the themes made by ZmAn3. Also fixed the example scripts and modified ZmAn3's custom UI. Renamed it to "flatui.exe" though, and using this custom UI in the example script for the forum and OSX themes.

Bugfix: The plug-in should now unload properly so the $PLUGINSDIR folder can be deleted.

Bugfix: The install button on the directory page now remains skinned even after clicking the browse button. Also fixed a similar problem on the instfiles page when clicking Show Details button.

EDIT: Online documentation

Last edited by saivert; 19th July 2005 at 01:46.
saivert is offline   Reply With Quote
Old 19th July 2005, 13:50   #36
Superpat
Guest
 
Posts: n/a
I found an other bug:

in the install dir page, if you change the insttall dir without use the browse button, the next button unskinnit itself.
Solution, add this code in your ChildDlgProc function:

/* Same lame fix for the Next button unskinning itself after changing the install dir */
if (uMsg == WM_COMMAND && LOWORD(wParam)==1019/*IDC_???*/)
{
FixMainControls();
}
  Reply With Quote
Old 19th July 2005, 14:25   #37
Superpat
Guest
 
Posts: n/a
I found an other bug,

The Show inst Détail button is unskinned throughout all installation. It is skinned only at the end of the installation.
  Reply With Quote
Old 20th July 2005, 05:21   #38
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
@superpat: I will fix that for the next release.

Some treats for you while you wait:

Steam theme:
wansis_steam_theme.7z 59,7 KB

A new theme. Taken from the Z-Axis Winamp skin. Looks kinda cool.
new_theme.7z 73,2 KB (includes compiled sample installer)
saivert is offline   Reply With Quote
Old 20th July 2005, 08:42   #39
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
i think it should be called a skin if its the 2 base graphics for the plugin but if you make a icon header and wizard bitmap then it's more of a theme
ZmAn3 is offline   Reply With Quote
Old 20th July 2005, 08:59   #40
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
is it possible to change the text in the caption?
Yathosho 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