Archive: wheredo i report a bug with install options


wheredo i report a bug with install options
where do i report a bug with install options?
if the custom page is first page and then you cancel the $plugindir is not deleted. if you go to next page then it is deleted.

and how do i get a bmp to show on a custom page?
not sure what i am doing wrong. code follows
---------------------------------------------------
Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\customBMP.ini "customBMP.ini"
File /oname=$PLUGINSDIR\stacon30thnew.bmp ".\Competitor spec program\stacon30thnew.bmp"
!insertmacro MUI_INSTALLOPTIONS_WRITE "customBMP.ini" "Field 1" "Text" "$PLUGINSDIR\stacon30thnew.bmp"
FunctionEnd

Function customBMPpage
Push $R0
Push $R1
Push $R2

InstallOptions::Dialog /NOUNLOAD $PLUGINSDIR\customBMP.ini
Pop $R0



Pop $R0
FunctionEnd
-------------------------------------------------------

[Settings]
NumFields=1


[Field 1]
Type=Bitmap
Text=stacon30thnew.bmp
Left=1
Right=331
Top=1
Bottom=193
Flags=RESIZETOFIT


use the "State" setting instead of the "Text" setting for bitmaps.

and u could delete the pluginsdir manually by inserting the following code at the right function:

IfFileExists"$PLUGISDIR\*.*"0+1

RMDir
/r"$PLUGINSDIR"

state vs text to set bmp
not to nit-pick but the readme says to set path to bmp with TEXT.

of course the STATE worked just like you said it did. (thanks very much by the way) I spent about 14 hours yesterday trying to make that work, which i did finally by reading the system file and using !insertmacro

could someone update the install options to reflect that state will setting STATE will work.

would love to know why though


$pluginsdir not deleted if IO2 page is canceled
how would i detect the cancel button in my install options fucntion and the trigger the delete else i might delete it too early?


could someone update the install options to reflect that state will setting STATE will work.
No, because that's a problem in your script. Just read your own same post for the reason.
how would i detect the cancel button in my install options fucntion and the trigger the delete else i might delete it too early?
InstallOptions::Dialog /NOUNLOAD "$PLUGINSDIR\customBMP.ini"
Pop $R0 ;<- This part is where "cancel" is returned
;when the user click "Cancel".

StrCmp $R0 "cancel" 0 EndCancel ;<- Checking the value
InstallOptions::Dialog "" ;<- Unloading and deleting plugin
EndCancel:

state is not working to set bmp (do i need more caffine?)
is i set the state in the ini file i get a blank page (i forgot to undo the insert macro from last night) i had thought it was working earlier for me.
the folloing is the only way i got it to work. this doest seem to be the right way or the easyest way to do it. code below

I dont understand.
the readme says to use TEXT to set bmp and icons. TEXT only works if i use a hack (which i dont understand really) that i ripped from modernUI system.nsh file. i thought thats what i said in my post.
if thats the right way to do it then so be it, i just ment that the readme did not indicate how to make TEXT work
----------------------------------
Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\customBMP.ini "customBMP.ini"
;File /oname=$PLUGINSDIR\stacon30thnew.bmp ".\Competitor spec program\stacon30thnew.bmp"
File /oname=$PLUGINSDIR\stacon30thnew.bmp ".\Competitor spec program\stacon30thnew.bmp"
!insertmacro MUI_INSTALLOPTIONS_WRITE "customBMP.ini" "Field 1" "Text" "$PLUGINSDIR\stacon30thnew.bmp"
FunctionEnd


ps. thanks for the cancel/ delete help. works like a charm. I hate to leave garbage behind.