Cservicesmodule:public atl::catlservicemodulet
The _DEBUG macro is used to differentiate whether the compiler is compiled into a console program.
When you specify that the debug version is compiled, you can compile the program into a console program, register the service through RegServer, and then run the service EXE directly, so that the information that is output through printf can be displayed on the console, as shown below.
When a release ver
Create a project for a Windows service
New Project->c++ Language->atl->atl Project-> Service (EXE)
This creates a Windows Service project.
The resulting solution contains two projects: Services, Servicesps. In fact, the main use of services,vs2012 is not clear why two projects were generated.
Registering Windows Services
When the Windows service is first started, it needs to be registered and registered in a way that can be done by command line or batch processing.
Services.exe-
version installedC-If the file is missing or compared and does not match the calculated valueA-force the reinstallation of all filesU-All necessary user-specific registry entries (default values)M-All necessary computer-specific registry entries (default values)S-All existing fast key modes (default values)V-run and cache local packets from the sourceSet public properties[Property=propertyvalue]Please consult the Windows (R) Installer SDK forOther documentation for command-line syntax.Copyright
Manager root directory such as setup1, and then view the property tag, not the right-click attribute ).2.use vs.netto create a new console program uninst.exe File'Power by: landlordh'For 2000, xp, 2003Module uninstallSub Main ()Dim myProcess As Process = New ProcessIf System. Environment. OSVersion. ToString. IndexOf ("NT 5") ThenMyProcess. Start ("msiexec", "/X {2B65D4A9-C146-4808-AB4B-321FB0779559}") "changed to your own ProductCodeEnd IfMyProcess.
software when it is updated.
1. Software Download
Apache HTTP Server 2.2.6 (for Windows)
MySQL mysql-noinstall-5.0.45-win32.zip
MySQLGUITools (MySQL Administrator, MySQL QueryBrowser and MySQL MigrationToolkit)
(MySQL Administrator is used to start and close MySQL)
PHP php-5.2.5-Win32.zip
PhpMyAdmin 2.11.2.2
Ii. install Apache HTTP Server
The downloaded file is an msi file. You can directly double-click it to install the interface. You need to enter some data to complete th
The new version of MATLAB requires Windows SDK 7.1, not the previous, when running the Mex library. NET4. And because. NET4 + Visual C + + 10 and SDK 7.1 have a certain conflict, the former must be uninstalled before installing the latter one.In the reference1.http://www.cnblogs.com/zzling007/p/6661705.html2.http://www.cnblogs.com/duanshuiliu/archive/2013/04/02/2994776.html3.https://cn.mathworks.com/matlabcentral/answers/233850-how-can-i-install-sdk-7-1-on-windows-10After that, the overall steps
uninstall program.First, write your own Code. The Code is as follows:/// /// Main entry point of the application./// [Stathread]Static void main (){System. Diagnostics. process. Start ("msiexec", "/X {C4A3986F-EA12-4194-BB8B-A9777E78A6ED }");Application. Exit ();// Application. Run (New form1 ());}Where {C4A3986F-EA12-4194-BB8B-A9777E78A6ED} is the productcode property value for the installation project. To view this value, you need to click the name
ServerThe downloaded file is an MSI file. You can directly double-click it to install the interface. You need to enter some data to complete the installation. This method is not used here, but it is recommended to install it like this. Next we will talk about another method for installation, unzip the MSI file, and modify the configuration file. 1. Run the msiexec/A apache_2.2.6-win32-x86-no_ssl.msi, then select "Install", and finally "finish" to unz
, and select "debug"5. "You do not have the permission to debug the server": Modify the Security Settings of IE and "automatically log on with the current user name and password"If not, refer to the MS solution:Against your error message, you should find a solution in this document http://www.gotdotnet.com/team/csharp/learn/whitepapers/howtosolvedebuggerproblems.docElse -------------------------------------------------------------------------------------------------------------------------------
computer. It Associates file extensions with applications and specifies the operations allowed for each file type.
How do I create an unmount link on the shortcut?
In the installation project directory, create a new Uninstall. BAT file.
In the installation project, copy the "productcode" attribute (Value of [12345678-1234-1234-1234-123412341234 ).
Edit Uninstall. BAT to include the following content in a line of the Program (productcode is the value you copied in step 2 ):
the "display Update" button.
Now you can see all the updates. Drag the scroll bar and you can find kb949325:
If you uninstall kb949325, you cannot develop the Silverlight program in Visual Studio. 3. The system prompts you to insert an installation disk.
During installation, you are prompted to insert the installation CD-ROM for Visual Studio 2008
Heath Stewart has a post explaining this problem.
You need to manually remove this problem: first, extract the independent installa
Windows (r) Installer. V 3.01.4000.3959
Msiexec/option
Installation OptionsInstall or configure the product/A Manage and install-install products on the network/J Broadcasting product-M broadcasts to all users and U broadcasts to current usersUninstall a productShow options/QuietQuiet Mode, no user interaction/PassiveNo way to participate in the mode-only display the process bar/Q [n | B | r | F]Set the User Interface LevelN-No user interfaceB-Basic
write down the productcode (select the solution Resource Manager root directory such as setup1, and then view the property tag, not the right-click attribute ).
2.use vs.netto create a new console program uninst.exe File
'Power by: landlordh'For 2000, XP, 2003Module uninstallSub main ()Dim myprocess as process = New ProcessIf system. environment. osversion. tostring. indexof ("nt 5") thenMyprocess. Start ("msiexec", "/X {2b65d4a9-c146-4808-ab4b-321fb
assembly "microsoft.vc80.crt,version =" 8.0.50727.163 ", type =" Win32 ", public Keytoken = "1fc8b3b9a1e18e3b". Processorachitecure = "x86. Or: An error occurred during the installation ofassembly component {9bae13a2-e7af-d6c3-a01f-c8b3b9a1e18e}. Hresult:0x80070bc9.Solution: Open a command prompt in Administrator mode, enter the following instructions and restart your computer to install again:fsutil resource Setautoreset true c \Note that the "C: \" above refers to the drive letter of the loca
: http://msdn.microsoft.com/downloads/default.asp? Url =/code/sample. asp? Url =/msdn-files/027/001/830/msdncompositedoc. xml1. in csetaskclass, read "Settings. ini" to download your msiinstallation file, dotnetfx.exe path, and other settings. (For example, the. NET Framework language version) The getcaptiontext (void) getdialogtext (void) geterrorcaptiontext (void) getininame (void) getproductname (void) Parse () function is used to parse the settings. ini file. 2. In the main. cpp file, the gl
2,
1. Complete the installation package, and write down the productcode (select the solution Resource Manager root directory such as setup1, and then view the property tag, not the right-click attribute ).
2. Create a new console program uninst.exe file with vs.net
#39; power by: landlordh
#39; for 2000, XP, 2003
Module uninstall
Sub main ()
Dim myprocess as process = New Process
If system. environment. osversion. tostring. indexof ("nt 5") then
Myprocess. Start ("
terminal to Lang = zh_cn.gbk.3.9. Install software
1. Do not install programs in the CD directory, or run the installation programs in the CD Mount directory.
In this case, the CD cannot be released when changing the CD. Run the following command to install the CD:
Wine/Media/cdrom0/setup.exe
2. "Wine eject" is required"
If the installation program requires you to change the CD, but the system says you cannot launch the CD, open a new terminal and enter:
Wine eject D:
3. Install the. MSI file.
operations:1. Stop the Windows Installer Service with msiexec/unregserver.2. Download instmsiw.exe and decompress it with WinRAR. Enter the directory.3. Right-click MSI. inf and click Install.4. Install vs.net 2003Else --------------------------------------------------------------------------------------------------------------------------------- Q: The VC package is unavailable or not registered.A:Symptoms:When you create a winforms application, you
. fxinstallrequired()) dodododoand dotnetfx.exe. HKLM \ SOFTWARE \ Microsoft \. netframework \ Policy \ v1.03. to install the. NET Framework, use the following command to install dotnetfx.exe: dotnetfx.exe/Q: A/C: "Install/L/Q" 4 in zookeeper execute. Run the following command in the execcmd () global function to install your own MSI file: msiexec/I
If we use the above native code as our own installer, we can use the following steps to install ou
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.