did you want me to post the entire code? Its about 300 lines haha.
I was hoping you would post the entire code, with all the non-relevant parts removed. As it is, the code which I'm running is not the same as the code which you are running, so there's little chance of finding a solution.
actually I tested it a few more times after that and it is opening the statefile and reporting the values so I think that part is good. Is there a way that following it reading those values I can have it go to the CASE ID_INSTALL:? Or is there some other way I should have it initilize installing again?
I'm glad that the original problem is apparently resolved.
As for the follow-up question, i feel I'm out of my depth here. Either my knowledge of Windows software development isn't great enough (others here may be better placed), or a lack of a clear view of the code as a whole leaves me a bit out of my depth here. I was certainly willing to follow up on the original question, but maybe it's time for me to withdraw, rather than promise something I can't deliver.