|
正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!
您需要 登录 才可以下载或查看,没有账号?立即注册
x
Setup.Rul
2、FeatureEvents.rul
- //---------------------------------------------------------------------------
- // The Installed event is sent after the feature WebSite
- // is installed.
- //---------------------------------------------------------------------------
-
- export prototype WebSite_Installed();
- function WebSite_Installed()
- begin
- //------------------------------------------------------------------------
- //附加数据库
- if !MAINTENANCE then
- //Server=[IS_SQLSERVER_SERVER];User id=[IS_SQLSERVER_USERNAME];Pwd=[IS_SQLSERVER_PASSWORD];DataBase=wxd;Max Pool Size=200;Connect Timeout=300;Connection Lifetime=3;
- AttachDB( szServer, szUser, szPassword);
- endif;
-
- //---------------------------------------------------------------------------
- end;
- //---------------------------------------------------------------------------
- // The Installing event is sent after the feature WebSite
- // is installed.
- //---------------------------------------------------------------------------
-
- export prototype WebSite_Installing();
- function WebSite_Installing()
-
- begin
-
-
-
- end;
- //---------------------------------------------------------------------------
- // The UnInstalling event is sent just before the feature
- // ExampleDatabase is uninstalled.
- //---------------------------------------------------------------------------
-
- export prototype ExampleDatabase_UnInstalling();
- function ExampleDatabase_UnInstalling()
- begin
- //-------------------------------------------------------------------------------------------
- //分离数据库EXEC sp_detach_db @dbname = '数据库名称'
- //Server=[IS_SQLSERVER_SERVER];User id=[IS_SQLSERVER_USERNAME];Pwd=[IS_SQLSERVER_PASSWORD];DataBase=wxd;Max Pool Size=200;Connect Timeout=300;Connection Lifetime=3;
- //DetachDB();
- //-----------------------------------------------------------------------------------------------------
- end;
- //---------------------------------------------------------------------------
- // The Installing event is sent after the feature ExampleDatabase
- // is installed.
- //---------------------------------------------------------------------------
-
- export prototype ExampleDatabase_Installing();
- function ExampleDatabase_Installing()
- begin
-
-
- end;
- //---------------------------------------------------------------------------
- // The UnInstalled event is sent after the feature ExampleDatabase
- // is uninstalled.
- //---------------------------------------------------------------------------
-
- export prototype ExampleDatabase_UnInstalled();
- function ExampleDatabase_UnInstalled()
- begin
- DeleteDir(ProgramFilesFolder+"//"+@COMPANY_NAME+"//示例数据库",ALLCONTENTS);
- DeleteDir(ProgramFilesFolder+"//"+@COMPANY_NAME+"//示例数据库",ONLYDIR);
- end;
复制代码
|
|