PDA

View Full Version : MSDE install reboot again



AVOrsa
01-16-2005, 02:27 PM
I've read everything I could find in this forum but no definite answer.
The problem seems to be old but I'm new to it.

Need to install MSDE then run some scripts.
Can not use merge modules since Microsoft does not recommend this.

Still can't figure out if installing as a Prerequisite is as bad as using the merge module. Please advise on that.

So I use LaunchAppAndWait to run Setup.exe with command line.

Probem MSDE installation asks to reboot.
And it is better to reboot because if you do not there will be other problems.

Where should I put the LaunchAppAndWait?
Into the custom action? Where in the sequence?
What is the return code of MSDE isntall that tels that reboot is needed?
How do I force the reboot from the script?
How do I resume the installation from where it stoped?

May be there was a full nice solution posted a while ago but I can't find it.

dstmartin
01-18-2005, 08:06 AM
In my experience with MSDE, the most common reason for reboot calls is that MDAC updated. If you review the MSDE.log file or MDAC.log you will find that MDAC triggered the reboot. There are other reboot calls generated and in my experience you are well-advised to heed the reboot call.


I've read everything I could find in this forum but no definite answer.
The problem seems to be old but I'm new to it.

Need to install MSDE then run some scripts.
Can not use merge modules since Microsoft does not recommend this.

Still can't figure out if installing as a Prerequisite is as bad as using the merge module. Please advise on that.

So I use LaunchAppAndWait to run Setup.exe with command line.

Probem MSDE installation asks to reboot.
And it is better to reboot because if you do not there will be other problems.

Where should I put the LaunchAppAndWait?
Into the custom action? Where in the sequence?
What is the return code of MSDE isntall that tels that reboot is needed?
How do I force the reboot from the script?
How do I resume the installation from where it stoped?

May be there was a full nice solution posted a while ago but I can't find it.

kwicker1958
01-19-2005, 02:23 PM
I don't use the Pre-req. Also, since my app installs files that forces a reboot, as does the MSDE, I only want the user to see one reboot, so I've put my MSDE install in the OnFirstUIAfter event.

-------------------
//This will look to see if user has Microsoft SQL installed. If so, but user
//previously uninstalled our app, this won't run the msde.exe again.
RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE);
szKey = "Software\\Microsoft\\Microsoft SQL Server\\InstanceName\\MSSQLServer";
if (RegDBKeyExist ( szKey )=1) goto ContinueWithoutMSDE;
RegDBSetKeyValueEx ( "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\" , "RunSetup" , REGDB_STRING , SRCDIR ^ "\\Setup.exe -TEST", -1 );
MessageBox ("Your system requires the installation of Microsoft Desktop Engine, which will reboot your system. Please close all other applications and save your data. Press OK to continue.",WARNING);
SdShowMsg ("Installing MSDE. Please be patient. Machine will reboot when MSDE installation is complete.", TRUE);
LaunchAppAndWait(SRCDIR ^ "msde\\setup.exe", "/settings setup.ini sapwd=XXXXX /L*v c:\ggmsde.log /qn", LAAW_OPTION_WAIT);
System (SYS_BOOTMACHINE);
exit;


ContinueWithoutMSDE:
----------------------
HTH