![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-04 11:04 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » Can batch processing automatically install software? (without having to press manually) |
| Printable Version 2,683 / 10 |
| Floor1 devilip | Posted 2007-04-29 12:20 |
| 初级用户 Posts 12 Credits 36 | |
|
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 ] |
|
| Floor2 devilip | Posted 2007-04-29 12:24 |
| 初级用户 Posts 12 Credits 36 | |
|
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! |
|
| Floor3 honghunter | Posted 2007-04-29 19:42 |
| 中级用户 Posts 135 Credits 321 | |
|
It is said that it is relatively convenient to implement this requirement with AutoIt.
|
|
| Floor4 devilip | Posted 2007-04-29 20:04 |
| 初级用户 Posts 12 Credits 36 | |
|
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). |
|
| Floor5 112183883 | Posted 2007-04-29 21:41 |
| 初级用户 Posts 31 Credits 128 | |
|
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.
|
|
| Floor6 zlmy0405 | Posted 2007-04-29 22:16 |
| 新手上路 Posts 4 Credits 8 | |
|
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! |
|
| Floor7 dingamao | Posted 2007-04-29 22:16 |
| 初级用户 Posts 47 Credits 118 | |
|
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.
|
|
| Floor8 fengjing001 | Posted 2007-04-30 03:11 |
| 初级用户 Posts 37 Credits 69 | |
|
Learning...
|
|
| Floor9 mawith | Posted 2007-04-30 04:05 |
| 新手上路 Posts 7 Credits 16 | |
| Floor10 flyinspace | Posted 2007-04-30 05:12 |
| 银牌会员 Posts 517 Credits 1,206 | |
|
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. |
|
| Floor11 devilip | Posted 2007-04-30 11:03 |
| 初级用户 Posts 12 Credits 36 | |
|
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.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |