How to use the command line sxstrace.exe tool in Win7 system?

  
                

Recently, a user has made an error while installing the QQ application, and an "pop" pops up; the application cannot be started because the parallel configuration of the application is incorrect. For more information, see the application event log or use the command line sxstrace.exe tool. & rdquo; prompt box, the prompt box said to use the command line sxstrace.exe tool to solve, how to operate?

Operation method:

1, start → run → input: CMD Click OK (or press Enter) to open the command prompt window;

2 To know how to use it, you can enter the command and ask the question number to query the parameter: sxstrace.exe/? ;

3. If you enter the traced command: SxsTrace Trace -logfile:SxsTrace.etl, a prompt pops up: SxsTrace failed. The wrong message is: it may be because the operating system does not have the corresponding permissions;

4, start → all programs → attachments & rarr; right command prompt → run as administrator;

5, once again in the command prompt window with administrator privileges to enter the command, there is a prompt to start:

SxsTrace Trace -logfile:SxsTrace.etl

Here are two messages very Important, one is that the tracked message is saved in the SxsTrace.etl file.

6, in the start menu search box, enter: SxsTrace.etl file name to find the file, check the cause of the error and other information;

7, there is an important message, that is, press Enter (Enter) to stop tracking. If you do not stop tracking, even if you open a command prompt window with administrator privileges, enter the trace command, and it will still be wrong;

8. Double-click the SxsTrace.etl file to have a special program associated with it. View;

9, you can also use this command:

SxsTrace Parse -logfile:SxsTrace.etl -outfile:SxsTrace.txt

10, then search for SxsTrace The .txt file can be viewed directly in Notepad;

11. If the tracked information does not understand, you can try to open the installation service:

Start → Run → Enter: Services.msc Click OK (or press Enter) to open the service.

12, find the Windows Installer service, right-click to start;

13, if the boot menu is gray (not available) service attributes → start type → automatic or manual & rarr; application →Start → OK;

14, there is a different operating system version, using the wrong version of the C++ runtime program, will also cause system failure, error prompts, solution: find and operate System matching version can be installed;

15, of course, you can also use special tools to repair system files (note the number of files repaired, if it is 0, there is no repair, alive is not caused by this system failure) .

The above is to use the command line sxstrace.exe tool to solve the process that the program can not be started, if the user can not start the program and the prompt can be repaired with the command line sxstrace.exe tool, then you can follow the above The steps are taken to fix the problem.

Copyright © Windows knowledge All Rights Reserved