- NSIS Discussion
- Changes in Custom Page Icon Command?
Archive: Changes in Custom Page Icon Command?
DOCa Cola
25th March 2003 16:40 UTC
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
Joost Verburg
25th March 2003 16:45 UTC
You have to extract the file and write the full path.
DOCa Cola
25th March 2003 16:49 UTC
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.
Joost Verburg
25th March 2003 16:50 UTC
Did you write the full path to the INI files using WriteINIStr?
DOCa Cola
25th March 2003 17:06 UTC
yes and no, i use both, and i have nothing changed in my script since i had the older csv installed
Joost Verburg
25th March 2003 17:10 UTC
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
25th March 2003 17:22 UTC
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
25th March 2003 19:27 UTC
If it's an InstallOptions bug, try in which version it was introduced:
http://cvs.sourceforge.net/cgi-bin/v...allOptions.dll
DOCa Cola
25th March 2003 19:38 UTC
yep, its a bug, it works perfectly in 1.41
kichik
25th March 2003 21:26 UTC
Will be fixed tomorrow.
DOCa Cola
25th March 2003 21:28 UTC
ok, thx
kichik
26th March 2003 14:37 UTC
Done.
DOCa Cola
26th March 2003 14:39 UTC
thx