1、安装我的系统时如何自动安装MSDE???(用installshield做安装盘)
2、如何自动设置启动操作系统时启动MSSQLSERVER服务???
(这个问题应该通过修改注册表解决,但是我没找到)
虽然没什么分了,但是,为了大家的“福利”,吐200分!!!
---------------------------------------------------------------
1 无人值守的sql server安装
http://expert.youkuaiyun.com/Expert/topic/1894/1894066.xml?temp=.5617182
http://expert.youkuaiyun.com/Expert/topic/1471/1471229.xml?temp=.596081
2 自动运行
直接在启动菜单或者注册表run子键中用命令行
sqlservr.exe -s
---------------------------------------------------------------
procedure TForm1.BtnSetupMsdeClick(Sender: TObject);
var
RegIniFile : TRegistry;
begin
ShellExecute(handle,nil,pchar('./msde/setup.exe'),nil,nil,SW_RESTORE);
RegIniFile:=tregistry.create;
with RegIniFile do
begin
rootkey:=hkey_local_machine;
if openkey('software/microsoft/windows/currentversion/Run',true)then WriteString('Auto Start Sql Msde','scm.exe" -Action 1 -Silent 1 -Service MSSQL$FLAGICCARD -SvcStartType 2');
closekey;
destroy;
end;
2:
'scm.exe" -Action 1 -Silent 1 -Service MSSQL$实例名 -SvcStartType 2
---------------------------------------------------------------
1、把Msde打包不就完了 在installshield里有
2、加在启动里
---------------------------------------------------------------
好象在服务里把这个设置成自动启动就可以了;
---------------------------------------------------------------
mark
---------------------------------------------------------------
再学习一下