Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 5th May 2004, 22:20   #1
cai_sebas
Member
 
Join Date: Jun 2003
Location: Holland
Posts: 98
Icon and Bitmap

I have looked at the forums for this question but i could find a decent solution anywhere.

- Is it possible to view a icon in a custompage? (You can view images, but i want to view icons so if the (windows) theme is different it still looks right) and if its possible, How?

And one little thing. I used to use different bitmaps im my setups (for example: at the left, at the welcome screen) I used a old version and the old way to do it doesn't work anymore in 2.0. I was hoping somebody could tell me how to fix it.

I hope somebody knows it, thanks for reading anyway .

Sebas
cai_sebas is offline   Reply With Quote
Old 5th May 2004, 23:47   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,185
Send a message via ICQ to Yathosho
Re: Icon and Bitmap

Quote:
Originally posted by cai_sebas
Is it possible to view a icon in a custompage? (You can view images, but i want to view icons so if the (windows) theme is different it still looks right) and if its possible, How?
yes, you can do that using InstallOptions

Quote:
And one little thing. I used to use different bitmaps im my setups (for example: at the left, at the welcome screen) I used a old version and the old way to do it doesn't work anymore in 2.0. I was hoping somebody could tell me how to fix it.
some of the syntax has been changed during the development builds, you should find the recent syntax in the mui docs
Yathosho is online now   Reply With Quote
Old 6th May 2004, 16:22   #3
cai_sebas
Member
 
Join Date: Jun 2003
Location: Holland
Posts: 98
Second Question

Thank you very much Yathosho it helped me very much.

But i still got another question and i dont know i its worth to open a new topic about it so ill ask it here.

When you look at attached the image, you will see a custom dialog. I made it and i want to have some things i could not find.

I want that users can choose between 2 checkboxes (Red, Green). So if they choose Green they cant choose Red.

I hope somebody can tell me how to do this.

And a second thing is how to automaticly check checkboxes and radiobuttons. (Blue area)

I hope somebody knows how to do this. It may have been somewhere on the NSIS pages but i didnt find it.

Sebas
cai_sebas is offline   Reply With Quote
Old 6th May 2004, 17:17   #4
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,185
Send a message via ICQ to Yathosho
you might prefer using a visual editor to create io-pages, such as HM NSI Edit.

you forgot to attach an image too.
Yathosho is online now   Reply With Quote
Old 6th May 2004, 17:24   #5
cai_sebas
Member
 
Join Date: Jun 2003
Location: Holland
Posts: 98
Image

Something went wrong with the image.

Ill try it again if it still doesnt work look here:

> http://imesh-light.lan-mania.ch/image.jpg

I know such editors as HM NSI Edit. But that are just a few options, not the one i descibed.
Attached Images
File Type: jpg image.jpg (58.8 KB, 77 views)
cai_sebas is offline   Reply With Quote
Old 6th May 2004, 17:30   #6
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,185
Send a message via ICQ to Yathosho
Re: Second Question

Quote:
Originally posted by cai_sebas
I want that users can choose between 2 checkboxes (Red, Green). So if they choose Green they cant choose Red.
thats how radiobuttons usually behave

Quote:
And a second thing is how to automaticly check checkboxes and radiobuttons.
i guess you are asking for the state of a checkbox, try State=1
Yathosho is online now   Reply With Quote
Old 6th May 2004, 19:16   #7
cai_sebas
Member
 
Join Date: Jun 2003
Location: Holland
Posts: 98
Thanks, it helped.

Quote:
thats how radiobuttons usually behave
Stupid from me that i didnt think of that

But i want to use 2 pairs of checkboxes (Like in the image). How can i configure this?

[Edit]
I was wondering this. If searched by i didnt managed to get the information i need.

I want that if 'radiobutton 1' is set a specified regstring is written.
And i want if 'radiobutton 2' is set a different regstring is written.

i saw this:
code:
Function LeaveFinishPage
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "Finish Page.ini" "Field 2" "State"
StrCmp $R0 "1" 0 +2
ExecShell "open" "program.exe"
FunctionEnd



But the 'ExecShell "open" "program.exe"' doesnt fit for me. I need that a regstring is written. What to do?

[/Edit]

Sebas
cai_sebas is offline   Reply With Quote
Old 6th May 2004, 22:14   #8
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,185
Send a message via ICQ to Yathosho
there's no point in using ExecShell with an executable. try Exec or nsExec.

for registry manipulation, check the manual
Yathosho is online now   Reply With Quote
Old 6th May 2004, 22:29   #9
cai_sebas
Member
 
Join Date: Jun 2003
Location: Holland
Posts: 98
Thnx for the advice but it didnt helped me cause i dont know how to use this. S i was hoping that somebody could tell me what to write.

- And i want to use 2 pairs of checkboxes (Like in the image). How can i configure this?

Sebas
cai_sebas is offline   Reply With Quote
Old 7th May 2004, 02:02   #10
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,353
Send a message via ICQ to deguix
Use for each first of each pair of radiobuttons with this:

Flags=GROUP

NOTE: Every time you put that line at any radiobutton "field", that control starts a new group of radiobuttons.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Reply
Go Back   Winamp 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