Archive: No Icons in Install Options


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.


Works perfectly fine for me. Attach the script and I'll have a look if you want.


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?!


Did you use InitPluginsDir and extract he icons to $PLUGINSDIR?


Yes, Joost I did.


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
>

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.