Archive: Problem with InstallOptions in latest development snapshot


Problem with InstallOptions in latest development snapshot
I got the latest CVS development snapshot today and have run into a problem with a install options

I have a custom page at the end of my installer that allows the user to perform certain actions once they hit "Finish" to close the installation. These actions are selectable in a list of checkboxes.

If I select a checkbox and then hit the "Back" button to return to the previous page InstallOptions will crash. If I leave the default settings I have set for the checkboxes and hit "Back" everything works great. Also if I leave the default checkbox selections and hit "Finish" to finish the install process everything works great. Any thoughts on why this could be happening? Everything worked great prior to the latest snapshot.


More details....

I replaced the InstallOptions.dll with an older version and everything works great. I tried to build a debug version of InstallOptions.dll to see what was wrong but I keep getting the following compiler errors. I'm pretty sure these constants are defined as I was able to look them up on MSDN so I don't know why I'm getting errors. Maybe an out of date library or something.

C:\Program Files\NSIS\Contrib\InstallOptions\InstallerOptions.cpp(765) : error C2065: 'COLOR_HOTLIGHT' : undeclared identifier
C:\Program Files\NSIS\Contrib\InstallOptions\InstallerOptions.cpp(800) : error C2065: 'IDC_HAND' : undeclared identifier

Anyone have a debug version of InstallOptions available?


Have you got a link control on your Finish page?
If so then that is causing the problem, and removing that should fix it.

This is a bug, and is yet to be fixed (I am waiting for it to be fixed myself)

-Stu


No, no link control.


Ok, another bug :(

Have you tried moving the custom page to before the Finish page?

-Stu


Essentially it is before the finish page as I have eliminated the standard finish page completely. My custom page replaces what would be the regular finish page.


To compile IO you need the latest Platform SDK.

Please try InstallOptions.dll in the latest CVS version.


Hi rsegal,

Can you post more info? Which OS version, attach ini file and script function for your custom page function

TIA


Try latest CVS, a bug has been fixed by Kichik


I haven't tested it extensively but the latest dev snapshot's seem to work for me. Thanks all for your help.