Old 1st August 2009, 01:14   #1
scubanarc
Junior Member
 
Join Date: Aug 2009
Posts: 7
I am brand new at NSIS scripting, but I'm learning a lot fast.

I have searched the forum and the sample code for the past 2 days for bold code and this is the best example that I have found. However, I don't understand how this code works. I have a label on a custom page that I want to make bold, but I don't get it. Can anyone provide any insight into:

1.) Where you put this code
2.) How it works

My current code is like this. Up where my pages are defined I have this to display a custom page:
code:
Page custom CustomFunction CustomLeave


I have a bitmap to display, so I have this:
code:
Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\logo1.bmp "logo1.bmp"
File /oname=$PLUGINSDIR\logo2.bmp "logo2.bmp"
!insertmacro INSTALLOPTIONS_EXTRACT "custom.ini"
FunctionEnd



Then in my custom function I have this:
code:
Function CustomFunction
WriteIniStr $PLUGINSDIR\custom.ini "Field 2" Text $PLUGINSDIR\logo1.bmp
WriteIniStr $PLUGINSDIR\custom.ini "Field 11" Text $PLUGINSDIR\logo2.bmp
!insertmacro MUI_HEADER_TEXT "Custom Page" ""

!insertmacro INSTALLOPTIONS_DISPLAY "custom.ini"
FunctionEnd



This all works fine; I can see both of my bitmaps on my custom page. My label is "Field 4", and I want to make it bold. Any suggestions are appreciated.

- scubanarc
scubanarc 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