Discover create silent install from exe, include the articles, news, trends, analysis and practical advice about create silent install from exe on alibabacloud.com
For introduction to WIndows Services, I have previously written an article: http://blog.csdn.net/yysyangyangyangshan/article/details/7295739. It may not be very detailed about how to write a service. Now we will introduce how to develop and install windows Services in the form of code.
Development Environment: Win7 32-bit; tool: visualstudio2010.
The. net environment comes with Windows 7. Because both manual installation and program installation are r
the new service page and add the followingCode:
PROCESS p = new process ();P. startinfo. filename = "program path and file name ";P. Start ();
After the token is completed, generate the token (fake name is w2.exe ). Find the generated EXE file in the corresponding folder, and find the two. EXE files with short names. Copy the file to the root directory of the
is the method for adding records to the database class that I wrote in advance. You can also use other methods to write records to the database.// DB. querysql ("insert into sysmsg (sysmsg) values ('" + xmsg + "')");}Catch{// Do not perform any operations}}
Private void timerincluelapsed (Object sender, system. Timers. elapsedeventargs E){Logmessage ("Check service running! ");}}}
Install Windows Services
Windows Services are different fr
");}Private void logmessage (string xmsg){Try{// Insert a record with the Information xmsg to the database. below is the method for adding records to the database class that I wrote in advance. You can also use other methods to write records to the database.// DB. querysql ("insert into sysmsg (sysmsg) values ('" + xmsg + "')");}Catch{// Do not perform any operations}}Private void timerincluelapsed (Object sender, system. Timers. elapsedeventargs E){Logmessage ("Check service running! ");}}}
records to the database.// Db. QuerySQL ("Insert into SysMsg (SysMsg) values ('" + xMsg + "')");}Catch{// Do not perform any operations}}
Private void timerincluelapsed (object sender, System. Timers. ElapsedEventArgs e){LogMessage ("Check service running! ");}}}
--------------------------------------------------------------------------------Install Windows ServicesWindows Services are different from common Windows applications. It is impossible to
InstallMySQLThe system prompts: Cannot create windows service for mysql. error: 0.
The reason is that the old mysql service exists in the system. The solution is as follows:
To permanently delete the old mysql service, you must run the following command on the command line with the administrative permission:C: \> SC delete mysql[SC] DeleteService SUCCESS
When installing the service, if a similar situation occurs, check whether the service is a legacy
HKTLog:autovacuum Launcher startedLog:database system is ready to accept connections 7. Create a Database e:\pgsql>e:\pgsql\bin\createdb-h127.0.0.1 MyDB Create user E:\pgsql>e:\pgsql\bin\createuser-h 127.0.0.1 usernameIs the new role a super user? (y/n) YE:\pgsql> 8. Open the graphical operator interface to manage the database E:\pgsql\bin\pgAdmin4.exe Pgadmin
1. wince_cab_manager3.0 production wizard
Run this software. Application Information dialog box:
Figure 1
After entering the company name and program name, next:
Figure 2
Select the supported devices as needed. Next step:
Figure 3
Select the processor type required to install the cab file. Generally, select all/CEF. Next:
Figure 4
After the Wizard is completed, the last step is to tell the basic cab installation project to be created. The fol
[Switch to] C # create a Windows Service and install it,
This document describes how to create a windows service.Create a project
1Create a windows Service Project
2Right-click Service1.cs and view the code for compiling the operation logic code.
3In the code, OnStart is used to execute service events. Generally, the thread-based execution method is used to f
"); }6, add the service installation program, click on the service class, the right to add the installation program. 7. Click on the Installer class.8, change the installation service name, StartType changed to Automatic.9, ServiceProcessInstaller1 Right-click Property account changed to LocalSystem.10, compile this service, install. There are two types of installation methods:(1), windows+r (Run command prompt), input cmd Run command: C:\Windows\M
I recently installed WIN7, after the disk, always prompts "Setup can not locate existing partitions, and can not create new system partitions," thought a lot of ways, always can not be solved, and then after many search, in the last night finally put the system installed.
I use a U disk installation system, because my CD-ROM drive is not good, sometimes can not read out, and sometimes read out, so just think of a U disk to
It took a day to create a Windows Server Standard SP2 virtual machine on VM10.0, and then, with loadrunner11.0 installed on that virtual machine, the biggest trouble was finding the installation package, Patch, But the network is really a big knowledge garden, it will not abandon you whether the problem is too much, haha ~First, create Windows Server Standard SP2:First, locate an image file for the Windows
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.