BAT batch processing for automatic software installation

Source: Internet
Author: User

BAT batch processing for automatic software installation

This article mainly introduces the function of automatically installing software for BAT batch processing. This article provides sample code directly. If you need it, refer

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

CLS

@ Echo off

ECHO.

Install Diskeeper 7.0.428 with ECHO

ECHO, please wait...

Start/wait % systemdrive % \ install \ Applications \ diskeeper \ Setup.exe/s/v/qn

ECHO.

ECHO updates Diskeeper 7.0.428 to 7.0.430

ECHO, please wait...

Start/wait % systemdrive % \ install \ Applications \ diskeeper \ us_dk70_wup_buildcmd.exe/s/v/qn

ECHO.

ECHO install Flashget 1.4

ECHO, please wait...

Start/wait % systemdrive % \ install \ Applications \ flashget \ fg140.exe/S

ECHO.

ECHO install Symantec Antivirus strongate 8.1

ECHO, please wait...

Start/wait % systemdrive % \ install \ Applications \ sav \ sav810b821.exe/qn

ECHO.

EXIT

Input in notepad and save it as *. bat. The specific path is changed by yourself. Each blank line is a separate one. In dos, if only % is used for Variable Processing in batches, % is used.

Note: The batch processing of "Install Windows Patch" is a bit inappropriate, because there are two types of Windows Patch, one is a simple executable file, that is, there is no icon, the other is a graph, so use another batch processing (/r parameter to indicate including subfolders. "_ Sfx_cab_exe_path" is a feature string. For feature string retrieval, you can use NotePad to open two different patches to find different characters in two texts. You may also use the fc command.

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

For/r % f in (*. exe) do @ (@ findstr _ sfx_cab_exe_path "% f"> nul & @ start/wait % f/u/q/z) | @ start/wait % f/q)

Qchain.exe

 

ECHO is installing Windows Patch. Please wait...

Cd e: \ hotfix

For % a in (*. exe) do start/wait % a-z-q

Qchain.exe

ECHO.

 

ECHO is installing MSN Messenger 6.0. Please wait...

Start/wait e: \ software \ messenger \ MsnMsgs. msi/QB

ECHO.

 

ECHO is installing DirectX 9.0b. Please wait...

Start/wait e: \ software \ dx9 \ dxsetup.exe/install/silent

ECHO.

 

ECHO is installing Windows Media Player 9. Please wait...

Start/wait e: \ software \ WMP9XP.exe/Q: A/R: N

ECHO.

 

ECHO is installing Movie Maker 2.0. Please wait...

Start/wait e: \ software \ wmm2 \ mm1_msi/qn

ECHO.

 

ECHO is installing. NET Framework v1.1. Please wait...

Start/wait e: \ software \ NetFramework \ netfx. msi/QB

ECHO.

 

ECHO is installing Microsoft JavaVM. Please wait...

Start/wait e: \ software \ msjavwu.exe/Q: A/R: N

ECHO.

 

ECHO is installing ISOBuster. Please wait ......

Regedit/s e: \ software \ isobuster. reg

Start/wait e: \ software \ IsoBuster.exe/verysilent

ECHO.

 

ECHO is installing AD-aware 6. Please wait ......

Start/wait e: \ software \ Adaware.exe/s

ECHO.

 

ECHO is installing Winamp. Please wait ......

Start/wait e: \ software \ winamp.exe/S

ECHO.

 

ECHO is installing Adobe Reader 6. Please wait ......

Start/wait e: \ software \ AdbeRdr60.exe-p "-s/v \"/qn \""

ECHO.

 

ECHO is installing Nero Burning ROM 6. Please wait ......

Regedit/s e: \ software \ nero. reg

Start/wait e: \ software \ Nero6009.exe/silent/noreboot

ECHO.

 

ECHO is installing WinRAR. Please wait ......

Start/wait e: \ software \ wrar320.exe/S

ECHO.

 

ECHO is installing Flashget. Please wait ......

Start/wait e: \ software \ flashget.exe/S

ECHO.

 

ECHO is installing Symantec Antivirus release 8.1. Please wait ......

Start/wait e: \ software \ nav81chs.exe/qn

ECHO.

 

ECHO is installing ZoneAlarm Free. Please wait ......

Start/wait e: \ software \ ZoneAlarm.exe/s/noreboot

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.