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-07-31 21:21
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Solved] How to install INF files with batch processing? (Is what I wrote like this correct?) View 2,877 Replies 9
Original Poster Posted 2007-03-15 22:07 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
```
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall SearchText.inf
```
Please give experts advice!

[ Last edited by HAT on 2008-11-14 at 20:06 ]
Floor 2 Posted 2007-03-16 00:05 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
  Try this?

%SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 SearchText.inf
Floor 3 Posted 2007-03-16 00:11 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
Thanks to lxmxn, the batch script you provided seems installable. (Absolute path should be used) But there is no installation progress bar. Also, it doesn't work. I don't know why. When right - clicked to install, there is a progress bar and it works.

[ Last edited by eech on 2007 - 3 - 16 at 12:15 AM ]
Floor 4 Posted 2007-03-16 00:13 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
Which expert will try with my attachment
Floor 5 Posted 2007-03-16 00:19 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  Which right-click menu does the inf you mentioned add functionality to? I installed it successfully, but it doesn't work.
Floor 6 Posted 2007-03-16 00:38 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
Floor 7 Posted 2007-03-16 04:49 ·  IANA 局域网IP(Private-Use)
中级用户
★★
蝴蝶之吻
Credits 430
Posts 177
Joined 2006-09-20 12:00
19-year member
UID 63170
From 广东深圳
Status Offline
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 .\SearchText.inf
Floor 8 Posted 2007-03-16 07:54 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
Friend on floor 7, thank you. It works
Floor 9 Posted 2007-03-17 00:28 ·  IANA 局域网IP(Private-Use)
中级用户
★★
蝴蝶之吻
Credits 430
Posts 177
Joined 2006-09-20 12:00
19-year member
UID 63170
From 广东深圳
Status Offline
128 indicates the given path. For other values of this parameter and their meanings, please refer to MSDN.
Special note: The last parameter must be the full path of the inf file, and do not use a relative path.
Floor 10 Posted 2008-11-14 17:13 ·  中国 天津 联通
新手上路
Credits 15
Posts 8
Joined 2008-02-06 02:36
18-year member
UID 110264
Gender Male
Status Offline
The one on the 7th floor is easy to use. Thanks.
Forum Jump: