anyone have script or procedures to install SQL Server 2008 Express, set up the database for the app and finally install a client .NET WinForm application?
相关问题
- Inno Setup - Run InstallUtil from .Net 4.5 Locatio
- ISCC - /D compiler-parameter seems to have no effe
- Setting DestDir from Inno Pascal?
- Unpin app from taskbar, startmenu using Inno Setup
- How to restrict user input of the directory edit b
相关文章
- In inno setup how to set the unins000.exe with pro
- Is it possible to create checkbox tree view in Inn
- How to add a region drop-down in Inno Setup?
- Signing installer of my program generated by Inno
- How to check 64/32-bit in Inno setup
- Inno Setup - How to create checkboxes at finished
- Inno Setup - BorderIcons dropdown menu
- Inno Setup - How to display a message after instal
In situations like this where I'm relying on third-party products (SQL Server Express), I tend to use command-line driven installs (either directly in a cmd file or called from a 'proper' install tool). This site shows you how to install Express from the command line, then you can use the SQL Express utility for object creation. This method is 'blessed' by Microsoft.
Sometimes the simplest solution is the best, even if that means getting the user of my product to install SQL Express separately before running my install. Well, best for me, anyway :-)
The following script will check for the full version of SQL Server 2008 R2. If full version is already installed, then it skips installing the SQL Server. If the full version is not installed, then it checks for the SQL Express edition. If it is already installed, it will skip the installation. If it is not installed, then it will install SQL Express 2008 R2.
Create a new script. Let's name it sql2008express.iss with the following content
In your script then just include the script i nthe [Run] tag and call the previous created script in the [Code] tag like below:
Other notes: - If the setup kits for the SQL are found in the same folder then it will use them, if not, they will be downloaded from the Internet. - Sorry for the formating, it doesn't work. Copy/paste it in a text editor and format it. It is complete and working.
I hope this will help others too. :)