Archive: InstallOptions bug


InstallOptions bug
I've just found a horrible bug in the latest InstallOptions dll.
InstallOptions does not always write changes to the ini files on page leave. I want to validate the page in the leave function, but the ini files aren't updated so I am unable to validate the changes.
I'm running on Windows XP.

There is a sort of pattern, like if I use the browse function for FileRequest, it does not save the path to the ini file, but if I actually type the path in, it does write to the ini file.

I may have to remove the FileRequest and DirRequest browse buttons to force users to enter the path's to get the validation to work :(

-Stu


Another bug I just found is that when I use multiple FileWrite's, nothing is written. I have to use a single FileWrite, or say 3 in a row maximum for anything to be written.
Either that is the problem, or the problem is me opening the same file more than once in the same section.

To fix this, I changed all multiple FileWrite's to a single one, and now only open the file once.

-Stu


Do you have the ini file open in your installer during the InstallOptions::dialog/initDialog calls? If so then I suspect this is the root cause of your first problem.

If not, can you give a simple example script that shows this behaviour?


I was scared you were going to say that; I'm lazy :p
I'll make you one up as soon as I can, but just trying it with the IO test script I was unable to achieve it.

And no, I never had the file open.

-Stu


Any news?