InstallOptions::show gives error
The following code gives an Application error.
InstallOptions::show
Please refer to the attached image.
Thanks & Regards,
Ajay Chawla
Archive: InstallOptions::show gives error
InstallOptions::show gives error
The following code gives an Application error.
InstallOptions::show
Please refer to the attached image.
Thanks & Regards,
Ajay Chawla
Please always provide code samples with more than one line.
1)Did you used this statement:
InstallOptions::initDialog /NOUNLOAD $PLUGINSDIR\yourfile.ini
before you called your "InstallOptions::show"
Some plugins crash if you do not use /NOUNLOAD option.
2) Did you extracted your file to $PLUGINSDIR like shown below???
Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\test.ini test.ini
FunctionEnd
My advice is READ carefully InstallOptions README, second is execute and study the Installoptions examples that are shipped with NSIS. As well you can use MUI macros for Installoptions show in NSIS help - "Using InstallOptions for custom pages".
Good luck!
main.nsi contains 2 the 'page custom' statements for test1.nsi and test2.nsi.
main.nsi
page custom showTest1 LeaveTest1
page custom showTest2 LeaveTest2
--------------test2.nsi-------------------------------
Var hwnd
!define BM_SETCHECK 0x00F1
Function ShowTest1
call IsSQLExpressInstalled
pop $3
strcmp $3 "1" Exit +1
call IsSQLServer2005Installed
pop $3
strcmp $3 "1" Exit +1
InstallOptions::initDialog /NOUNLOAD "$PLUGINSDIR\SqlProducts.ini"
Pop $hwnd
InstallOptions::show
Pop $0
Exit:
FunctionEnd
; Other functions......
When I click next on Test1, It successfully executes InstallOptions::initDialog and then it generates 'Application Error' attached above.
Thanks
Ajay Chawla
Attach your INI file.
-Stu
InstallOptions::show gives error
Please find the attached SqlProducts.ini file
Thanks
Ajay Chawla
INI file is fine, except the image control path should just be "image.bmp".
Are you actually extracting the INI file to $PLUGINSDIR?
-Stu
InstallOptions::show gives error
Yes, I have extracted image.bmp using
File /oname=$PLUGINSDIR\image.bmp "image.bmp"
Here is the attached nsi file. This might help trace the error.
Thanks,
Ajay Chawla
The path in the INI file to the image should just be "image.bmp"...
Text=image.bmp
It's probably crashing because you've got \\ instead of \ in the INI file path on the InstallOptions call. You don't need two. That only applies in the INI file itself.
-Stu
I can't get your code to crash with a stack overflow. Attach a complete example that reproduces the crash and state the NSIS version used.