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:
Page custom CustomFunction CustomLeave
I have a bitmap to display, so I have this:
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:
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