Menu

#354 SetFont with sample again

2.0 Series
closed-fixed
5
2005-05-11
2005-05-02
Anonymous
No

Look to the sample...

Discussion

  • Amir Szekely

    Amir Szekely - 2005-05-03
    • assigned_to: nobody --> kichik
     
  • Amir Szekely

    Amir Szekely - 2005-05-03

    Logged In: YES
    user_id=584402

    Again, no sample is attached. If you're having trouble
    attaching with this tracker, try uploading to stashbox.org
    and posting the link here.

    Please don't open any more new bug reports for this issue,
    append to the this one.

     
  • Nobody/Anonymous

    Logged In: NO

    ; kichik, here is the sample:

    ;NSIS Modern User Interface
    ;Basic Example Script
    ;Written by Joost Verburg

    ;--------------------------------
    ;Include Modern UI

    !include "MUI.nsh"

    ;--------------------------------
    ;General

    ;Name and file
    Name "Modern UI Test"
    OutFile "Basic.exe"

    ;Default installation folder
    InstallDir "$PROGRAMFILES\Modern UI Test"

    ;Get installation folder from registry if available
    InstallDirRegKey HKCU "Software\Modern UI Test" ""

    SetFont Tahoma 8

    ;--------------------------------
    ;Interface Settings

    !define MUI_ABORTWARNING

    ;--------------------------------
    ;Pages

    !insertmacro MUI_PAGE_LICENSE "${NSISDIR}
    \Contrib\Modern UI\License.txt"
    !insertmacro MUI_PAGE_COMPONENTS
    !insertmacro MUI_PAGE_DIRECTORY
    !insertmacro MUI_PAGE_INSTFILES

    !insertmacro MUI_UNPAGE_CONFIRM
    !insertmacro MUI_UNPAGE_INSTFILES

    ;--------------------------------
    ;Languages

    !insertmacro MUI_LANGUAGE "Arabic"

    ;--------------------------------
    ;Installer Sections

    Section "Dummy Section" SecDummy

    SetOutPath "$INSTDIR"

    ;ADD YOUR OWN FILES HERE...

    ;Store installation folder
    WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR

    ;Create uninstaller
    WriteUninstaller "$INSTDIR\Uninstall.exe"

    SectionEnd

    ;--------------------------------
    ;Descriptions

    ;Language strings
    LangString DESC_SecDummy ${LANG_ENGLISH} "A test
    section."

    ;Assign language strings to sections
    !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
    !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy}
    $(DESC_SecDummy)
    !insertmacro MUI_FUNCTION_DESCRIPTION_END

    ;--------------------------------
    ;Uninstaller Section

    Section "Uninstall"

    ;ADD YOUR OWN FILES HERE...

    Delete "$INSTDIR\Uninstall.exe"

    RMDir "$INSTDIR"

    DeleteRegKey /ifempty HKCU "Software\Modern UI Test"

    SectionEnd

     
  • Amir Szekely

    Amir Szekely - 2005-05-11
    • labels: --> User-Interface
    • milestone: --> 2.0 Series
    • status: open --> closed-fixed
     
  • Amir Szekely

    Amir Szekely - 2005-05-11

    Logged In: YES
    user_id=584402

    Thank you! That's all I needed. The problem has been fixed
    in the latest CVS version. modern.exe used ANSI_CHARSET for
    the font instead of DEFAULT_CHARSET. I've made SetFont force
    DEFAULT_CHARSET just like CreateFont.

     

Log in to post a comment.