Sample MSDE 2.0 install script

 

[Files]
; APPLICATION EXECUTABLE:
Source: MyApplicationPath\myProject.exe; DestDir: {app}; CopyMode: alwaysoverwrite
;DATABASE FILES AND CONNECTION FILE:
Source: MyApplicationPath\MyDatabase.MDF; DestDir: {app}
Source: MyApplicationPath\MyDatabase.LDF; DestDir: {app}
; MSDE SETUP FILES:
Source: MyApplicationPath\MSDESetup\Setup.exe; DestDir: {app}\msde
Source: MyApplicationPath\MSDESetup\Setup.rll; DestDir: {app}\msde
Source: MyApplicationPath\MSDESetup\SQLRESLD.dll; DestDir: {app}\msde
Source: MyApplicationPath\MSDESetup\setup\SqlRun01.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun02.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun03.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun04.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun05.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun06.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun07.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun08.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun09.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun10.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun11.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun12.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun13.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun14.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun15.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun16.msi; DestDir: {app}\msde\setup
Source: MyApplicationPath\MSDESetup\setup\SqlRun.cab; DestDir: {app}\msde\setup
;Source: MyApplicationPath\MSDESetup\MSDESetup.exe; DestDir: {app}\msde
[Run]
; MSDE SETUP
Filename: "{app}\msde\Setup.exe"; Parameters: "SECURITYMODE=SQL instancename=""MyInstanceName"""; WorkingDir: {app}\msde; StatusMsg: Installing Microsoft Data Engine
;PROGRAM EXECUTABLE - doesn't get run because Windows Installer steals control -
Filename: {app}\MyProject.exe; Flags: nowait postinstall skipifsilent

你可能感兴趣的:(Install,script,sample,2.0,MSDE)