I am writing an installation script in Wise InstallMaster to install MSDE 2000/SQL Server 2000 to a client's machine.
Here's the problem. I have to use Windows Installer to install MSDE 2000. In the script I execute the Windows Installer file, then I set a registry key in teh script to use the RunOnce functionality to execute a VB application I wrote that uses SQLDMO to install MSDE 2000 using Windows Installer after a forced reboot of the system.
The problem is that upon the reboot after installing Windows Installer Windows shows the Updating User Settings dialog box, and the RunOnce registry command is executed before the Updating User Settings are actually complete.
This causes my VB application to try to install MSDE 2000 before the actual Windows Installer files are able to be used.
I have tried using SLEEP in the VB app for 60 seconds, but that doesn't work, because it seems that the Updating Seconds routine stops and doesn't continue until the SLEEP is finished.
Does anyone have any ideas of how I can get the RunOnce Registry command to NOT execute until AFTER the Updating Settings dialog box finishes updating the Windows Installer setup?
I will give an A and 300 points to anyone who can give me a way to do this.