Skip to content
⌘ NSIS Forum Archive

No Icons in Install Options

6 posts

Techkid#

No Icons in Install Options

My script that uses Install Options. The Install Options Icon doesnt work. The only way to get it to work is to leave Text Blank and i get the default which is what it is supposed to do. The Script worked fine until I when on vaction. After getting home I did a cvs update and compiled the script they no longer had icons.
Techkid#
If figured it out. It used to expect the icons to be in the plugins dir but now it expects to be in the installer directory.

I not sure if this a feature or not?!
Techkid#
Yes, Joost I did.

Function .onInit
    InitPluginsDir
FunctionEnd
Function INSTALLWIZARD
      SetOutPath $PLUGINSDIR
      File "_RESOURCES_\CR.ini"
      File "_RESOURCES_\reinstall.ico"
      File "_RESOURCES_\update.ico"
      File "_RESOURCES_\uninstall.ico"
      Call GetParameters
      Pop $0
      StrCmp $0 "/INSTWIZ" "" INSTALL
        !insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE_INSTWIZ)" "$(TEXT_IO_SUBTITLE_INSTWIZ)"
        !insertmacro MUI_INSTALLOPTIONS_DISPLAY "CR.ini"
      INSTALL:
FunctionEnd 
kichik#
That's actually a bug fix of a bug fix. It's always best to give it full path. In b0 I have made calls to any DLL set the current directory to the DLL directory (in your case $PLUGINSDIR), but that broke some old plug-ins behaviour so I reverted it only for plug-ins, hence IO not doing what it did in b0.