Archive: Changes in Custom Page Icon Command?


Changes in Custom Page Icon Command?
Has something changed in the way how

[Field 1]
Type=Icon
Text=iconfilename.ico

is used? i tried the newest cvs and instead of the icon file the standard installer icon is shown. i installed an older csv over nsis and it worked again

DOCa Cola


You have to extract the file and write the full path.


yep, i extract them before loading the page and the path is defined with SetOutPath. That worked for me all the time but not in the current cvs.


Did you write the full path to the INI files using WriteINIStr?


yes and no, i use both, and i have nothing changed in my script since i had the older csv installed


Use the correct method. Extract it to a certain location (the $PLUGINSDIR for example after calling InitPluginsDir) and write the location to the file using WriteINIStr.


here are some excerpts from the script

onInit:
CreateDirectory $TEMP\~floptmp
File /oname=$TEMP\~floptmp\empty.ico "empty.ico"

The folder is correctly created and the files are extracted

Custom Page function:
SetOutPath $TEMP\~floptmp
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioEdit.ini" "Field 1" "Text" "$TEMP\~floptmp\empty.ico"
I used "empty.ico" instead of the full path here before
...
InstallOptions::dialog "$PLUGINSDIR\ioEdit.ini.ini"



It does not work, but it has before


If it's an InstallOptions bug, try in which version it was introduced:

http://cvs.sourceforge.net/cgi-bin/v...allOptions.dll


yep, its a bug, it works perfectly in 1.41


Will be fixed tomorrow.


ok, thx


Done.


thx