程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> Delphi >> 安裝程序打包interbase的方法

安裝程序打包interbase的方法

編輯:Delphi
 使用interbase是因其體積小巧,運行效率高。

  下面以inno setup5.0的安裝腳本為例介紹一下最小化打包interbase的方法。本安裝腳本僅適合win2000及以上操作系統,不兼容win9X。本腳本在xp下安裝通過,win2000應該也一樣。如果您有更好的安裝腳本或別的意見建議,歡迎與我聯系 [email protected]

  [Files]

  ;以下為客戶端所需文件,計5個,大小為875K

Source: "E:softib7win32ClIEntininstreg.exe"; DestDir: "{pf}BorlandInterBase7in"
  Source: "E:softib7win32ClIEntinterbase.msg"; DestDir: "{pf}BorlandInterBase7"; Flags: Promptifolder sharedfile
  Source: "E:softib7Set3050.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
  Source: "E:softib7win32ClIEntgds32.dll"; DestDir: "{sys}"; Flags: sharedfile
  Source: "E:softib7win32ClIEntmsvcrt.dll"; DestDir: "{sys}"; Flags: onlyifdoesntexist uninsneveruninstall sharedfile

  ;以下為服務器端文件,所需文件為6個,大小為2.6M

Source: "E:softib7win32Serveradmin.ib"; DestDir: "{pf}BorlandInterBase7"; Flags: onlyifdoesntexist uninsneveruninstall
  Source: "C:Program FilesBorlandInterBaseibconfig"; DestDir: "{pf}BorlandInterBase7"; Flags: Promptifolder
  Source: "C:Program FilesBorlandInterBaseinibguard.exe"; DestDir: "{pf}BorlandInterBase7in"; Flags: sharedfile
  Source: "C:Program FilesBorlandInterBaseinibserver.exe"; DestDir: "{pf}BorlandInterBase7in"; Flags: sharedfile
  Source: "C:Program FilesBorlandInterBaseib_license.dat"; DestDir: "{pf}BorlandInterBase7"; Flags: Promptifolder
  Source: "C:Program FilesBorlandInterBaseininstsvc.exe"; DestDir: "{pf}BorlandInterBase7in"

  [Registry] ;--注冊服務器路徑和卸載要求

  Root: HKLM; Subkey: "SoftwareBorlandInterBaseCurrentVersion"; ValueType: string; ValueName: "ServerDirectory"; ValueData: "{pf}BorlandInterBase7in"; Flags: uninsdeletevalue
  Root: HKLM; Subkey: SoftwareBorlandInterBaseCurrentVersion; Flags: uninsdeletekeyifempty
  Root: HKLM; Subkey: SoftwareBorlandInterBase; Flags: uninsdeletekeyifempty

  [Run]  ;--安裝後運行自注冊文件來注冊客戶端和服務器端,並啟動服務程序

Filename: "{tmp}Set3050.exe"; Flags: runminimized
  Filename: "{pf}BorlandInterBase7ininstreg.exe"; Parameters: "install ""{pf}BorlandInterBase7"""; Flags: nowait runminimized
  Filename: "{pf}BorlandInterBase7ininstsvc.exe"; Parameters: "install ""{pf}BorlandInterBase7"" -auto -z"; Flags: runminimized
  Filename: "{pf}BorlandInterBase7ininstsvc.exe"; Parameters: start; Flags: nowait runminimized
  
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved