Control Service Issue

Got a problem you cannot solve? Try here.
Post Reply
hess_joel
Posts: 47
Joined: Mon Nov 21, 2005 1:52 pm
Location: Eden Prairie, MN

Control Service Issue

Post by hess_joel »

I'm using the Install MSI plugin to install the MSDE after the Apply Install Action, then trying to use the Control Service Action to start the SQL instance that was just installed, but it doesn't seem to be working. I am specifying "MSSQLSERVER" for the service name and Start the service on install option.
I can start the service via a batch file, but it looks kind of sloppy.

Ideas?

BTW, as a recent Installshield convert, I've been very impressed with the quick response to questions posted here.

Thanks,

Joel Hess
Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Post by Gizm0 »

The default name of MSDE is trully MSSQLSERVER or MSSQL$INSTANCENAME.So if you are specifying an INSTANCENAME parameter at your install, you should use that as the Service Name.

~InstallAware Clipboard Data~
~Control Service~
~{4CEE83AC-E2A5-49BE-BCB8-BCF1086E7261}~
~MSSQLSERVER~
~~
~0~
~2~
~TRUE~

This is the a sample code to control a service on Installation.
Note that you have to check "Wait for service state change completion".
Post Reply