View Full Version : Install MSDE

01-20-2005, 10:35 AM
I am able to install MSDE, but I need to install my SQL script to create my database and stored procedures. How can I do this?? When I add my SQL Script, it appears that runs before MSDE is installed and even when MSDE is installed, I either have to manually start the service or reboot. Please help!

03-17-2005, 01:35 PM
try this bit of code:

if(ServiceExistsService ( szServiceName )) then
ServiceStartService ( szServiceName, szStartServiceArgs );

Insert it after your MSDE installation or before you run your SQL script

Hope it helps.

12-15-2005, 12:43 PM
First of all you need to create a New Installscript under "Behaviour and Logic -> Installscript"

and replace the content with the green code below

#include "ifx.h"

export prototype StartSQL(HWND);

function StartSQL(hMSI)
ServiceStartService ("MSSQLSERVER","");
ServiceStartService ("SQLSERVERAGENT","");


then you will create a new custom action (Installscript) named "sqlscript" and in the function name combo select startSQL

finally you need to add the script in a specific secuence go to sequences-> installation-> User Interface-> Interface

and select the created custom actions "sqlscript" and locate it before ISSQLServerFilteredList

hope it works...