Program Package SQL Server and enable automatic installation

Source: Internet
Author: User

1. Prepare the MSDE installation file. There is a setup. ini file under the MSDE directory. The content in the file is changed to the following:
[Options]
Securitymode = SQL
Sapwd = sa
Disablenetworkprotocols = 0
The above indicates installation in hybrid mode with the password SA.
2. Package your applicationProgram.
3. create a small program, and there is a form with two single-choice buttons (or buttons). The first text is: Install SQL database, and the second text is: install your program
In the double-click event of the first single-choice button, write: Run (\ MSDE \ setup.exe in the current directory ),
In the double-click event of the second single-choice button, write: run(installation file that you package. EXE)
The generated EXE file is named start.exe, which means double-click the installation of the first SQL database call and double-click the installation of the second application call.
4.then copy the msdefilename folder, the program you pack, and start.exeto a folder. In this example, start.exe will display your interface, which can be installed by double-clicking. it takes a short time to install the database. It takes more than a dozen seconds to complete. after the installation is complete, restart. the SQL Server icon appears in the lower right corner of the screen.
In this way, although it is a little troublesome, it is also very easy to install the database as soon as you double-click it.
You only need to double-click it to install it.

The client does not need to install SQL Server 2000. The INI file is run when the client runs the program. Set the connection server name, database name, user name, and password in the INI file.

If you have any questions, please discuss them.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.