Archive: Preview skins, like in Winamp installer


Preview skins, like in Winamp installer
I want to make an installer with skins for some player (about 50 skins).
How to make a preview of each skin (like in Winamp installer)?

Thanks.


i guess the winamp-installer uses a installoptions page with bitmaps included. you have to make one bitmap for each skin.. or write a clever plugin which extracts the images from the skin and arranges them properly in one image file.


I have wrote a winamp installer script, you can download in
http://foobar.nease.net/nsis/nsi/winamp.nsi.cab


Ok. Bluenet, thanks for the script, I'll try to understand how to do it for myself.
But just another question: Winamp shows only 2 skins in one window, but if there are 50 skins - is it possible to scroll their bitmaps in one window? I think it's not a good idea to show only 2-4 skins in every window, and to click ~20 times "Next" to see all of them.


Mabye two options:
1. InstallOptionsEx maybe can do it (ScrollBar controls).
2. Build a plugin with auto scrolls..


InstallOptionsEx maybe can do it (ScrollBar controls).
Nope.

You could use a listbox or a droplist where you could select a skin and then use a bitmap control to put the skin's picture when it's selected.

Originally posted by Dkom
Ok. Bluenet, thanks for the script, I'll try to understand how to do it for myself.
But just another question: Winamp shows only 2 skins in one window, but if there are 50 skins - is it possible to scroll their bitmaps in one window? I think it's not a good idea to show only 2-4 skins in every window, and to click ~20 times "Next" to see all of them.
You can use Droplist to show all of your skins, I will write a example later for you :)

But 50 skins you must extract 50 BMP to user's system before you show your skins. The installer may become large.

Here is the script to show more skins.
http://foobar.nease.net/nsis/nsi/ShowSkins.zip


Bluenet, I can't download your script. This link shows that page _http://ad.nease.net/404.html


Broken for me too.
It can't be huge, why not use the forum attach file facility?

-Stu


it is to big to attach to the forums because of the bmps he has in there .

im gonna put it on my server hope he doesnt mind
http://www.emeraldcpu.com/zman3/ShowSkins.zip


checkout his other examples here
http://foobar.nease.net/nsis/


I have upload the zip file. But I don't known it lost? The web is owner space and I have never delete it. I upload again.
Thanks ZmAn3's server. My other examples is wrote in Chinese, if somebody interest I would rewrite to English.


Replace the BMP to reduce the installer size. Now upload to forum.


Thanks, Bluenet. It's a big help for me.
So, I'll put the checkbox near droplist to check / uncheck every skin.
Is it possible to see all checked skins in the next window (for example "Checked Skns:" and in droplist I'll write skin names one under another (simply to put text in droplist) or is it possible to to make next window as Sections where only skin names and checkboxes and some of them (wich was checked in previous window) will be checked (as a result a can choose skin in "preview window" or if I don't want to list (see) all of them, I'll use simple "sections window"). Results of "sections window" must owerwrite those from "Preview window".
Sorry, if my questions are too annoying:).


hello,

I am a little in the same case (it is to install skins for StreamRipper).
my installer uses radio buttons for the choice of the skin to be put by default, but your system of list with preview likes me much.
how to make for the choice in the list changes the value in the "WriteINIStr ...".
I hope to render comprehensible myself because I am French


I guess what you want is how to check which skin user selected. In my example $2 store the index of the droplist, the top of item is 0 and so on. Aslo you can use ReadINIStr and StrCmp to do this.


Originally posted by bluenet
I guess what you want is how to check which skin user selected. In my example $2 store the index of the droplist, the top of item is 0 and so on. Aslo you can use ReadINIStr and StrCmp to do this.
I'm a newbie... Could you tell me how can I use ReadINIStr and StrCmp to do that...

or could you tell me how can i do the below function:
user select a skin & push 'install' button, then the installer install the suitable skin.




^_^ bluenet, are you chinese?

Finally, I'm sorry for my poor english. XD

Hi, I have rewrite the example, you can see the code between Section and SectionEnd.

to X-Ray, I am Chinese.


Originally posted by bluenet
Hi, I have rewrite the example, you can see the code between Section and SectionEnd.

to X-Ray, I am Chinese.
oh ~ Thank, bluenet.
I'm chinese too, but I'm so stupid. http://forum.hkgolden.com/faces/banghead.gif