cai_sebas
5th May 2004 23:20 UTC
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
Yathosho
6th May 2004 00:47 UTC
Re: Icon and Bitmap
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
InstallOptionsAnd 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 docscai_sebas
6th May 2004 17:22 UTC
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.:weird:
Sebas
Yathosho
6th May 2004 18:17 UTC
you might prefer using a visual editor to create io-pages, such as HM NSI Edit.
you forgot to attach an image too.
cai_sebas
6th May 2004 18:24 UTC
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.
Yathosho
6th May 2004 18:30 UTC
Re: Second Question
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
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
cai_sebas
6th May 2004 20:16 UTC
Thanks, it helped.
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:
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
Yathosho
6th May 2004 23:14 UTC
there's no point in using ExecShell with an executable. try Exec or nsExec.
for registry manipulation, check the manual
cai_sebas
6th May 2004 23:29 UTC
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
deguix
7th May 2004 03:02 UTC
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.