China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-04 10:04
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Can batch processing automatically install software? (without having to press manually) View 2,681 Replies 10
Original Poster Posted 2007-04-29 12:20 ·  意大利
初级用户
Credits 36
Posts 12
Joined 2007-03-20 06:12
19-year member
UID 82319
Gender Male
Status Offline
I'm a computer repairman. I have to reinstall the same software repeatedly every day. Sometimes I even forget to install some software, which makes me very tired. I made a batch script to start and install software one by one, but I often need to set it manually. I wonder if I can use a batch script to achieve fully automatic installation without having to press the buttons manually! Please help me, experts! Waiting online.

[ Last edited by devilip on 2007-4-28 at 11:48 PM ]
Floor 2 Posted 2007-04-29 12:24 ·  意大利
初级用户
Credits 36
Posts 12
Joined 2007-03-20 06:12
19-year member
UID 82319
Gender Male
Status Offline
Supplement, I found a piece of code online:
@echo off
for %%i in (*.exe) do %%i /passive /norestart /nobackup
This statement is opened, but it cannot be installed automatically, and you still need to press manually!
Floor 3 Posted 2007-04-29 19:42 ·  德国 柏林州 柏林 Strato公司
中级用户
★★
Credits 321
Posts 135
Joined 2007-02-04 04:48
19-year member
UID 78578
Gender Male
Status Offline
It is said that it is relatively convenient to implement this requirement with AutoIt.
Floor 4 Posted 2007-04-29 20:04 ·  意大利 伦巴第 米兰
初级用户
Credits 36
Posts 12
Joined 2007-03-20 06:12
19-year member
UID 82319
Gender Male
Status Offline
What is AutoIt? Can you explain it?
I implemented it with VBS, but the effect is not good because it needs to wait for a few seconds and press a key. I don't know if VBS can automatically calculate the installation process (because I don't know how).
Floor 5 Posted 2007-04-29 21:41 ·  中国 浙江 杭州 电信
初级用户
Credits 128
Posts 31
Joined 2006-10-23 08:05
19-year member
UID 67855
Gender Male
Status Offline
If the focus of the interface is already defaulted to the next step and the current window is on top, you can use a script to send keyboard simulation to the window instead of pressing manually.
Floor 6 Posted 2007-04-29 22:16 ·  中国 河北 石家庄 电信
新手上路
Credits 8
Posts 4
Joined 2007-03-25 00:20
19-year member
UID 82811
Gender Male
Status Offline
This is not bad either!
@echo off
for %%i in (*.exe) do %%i /passive /norestart /nobackup
for %%i in (*.exe) do %%i /passive /norestart /nobackup
......
It can automatically open the program you want to install. After the first one is installed, it will automatically open the second one, and so on. Hehe...
Learned another trick, thank you, second floor!
Floor 7 Posted 2007-04-29 22:16 ·  中国 广东 佛山 电信
初级用户
Credits 118
Posts 47
Joined 2007-03-10 16:00
19-year member
UID 81323
Gender Male
Status Offline
In this case, it's better to use AutoIt. It can perfectly simulate keyboard and mouse actions, and it originally appeared as a script for writing installation programs.
Floor 8 Posted 2007-04-30 03:11 ·  中国 湖南 邵阳 电信
初级用户
Credits 69
Posts 37
Joined 2007-01-01 14:22
19-year member
UID 75195
Gender Male
Status Offline
Learning...
Floor 9 Posted 2007-04-30 04:05 ·  中国 广东 广州 海珠区 电信
新手上路
Credits 16
Posts 7
Joined 2007-03-07 06:25
19-year member
UID 80977
Gender Male
Status Offline
Floor 10 Posted 2007-04-30 05:12 ·  中国 广东 广州 白云区 电信
银牌会员
★★★
Credits 1,206
Posts 517
Joined 2007-03-25 01:18
19-year member
UID 82819
Gender Male
Status Offline
Speechless. If you want to do it like this. Just be lazy once.

Make a script with KeyMaster..

Then it's all good..

KeyMaster now also supports vbs scripts.
知,不觉多。不知,乃求知
Floor 11 Posted 2007-04-30 11:03 ·  意大利 伦巴第 米兰
初级用户
Credits 36
Posts 12
Joined 2007-03-20 06:12
19-year member
UID 82319
Gender Male
Status Offline
I'm already using AutoIt to write scripts! AutoIt can perfectly detect the information in the window! With its application, there's no need to sleep for a while like in VBS and then press, which would cause errors on different computers.
Forum Jump: