Skip to content
⌘ NSIS Forum Archive

Changes in Custom Page Icon Command?

13 posts

DOCa Cola#

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
DOCa Cola#
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.
DOCa Cola#
yes and no, i use both, and i have nothing changed in my script since i had the older csv installed
Joost Verburg#
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.
DOCa Cola#
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
Joost Verburg#
If it's an InstallOptions bug, try in which version it was introduced: