无忧启动论坛

标题: 这段reg没哪个工具能转inf,该咋转换为inf [打印本页]

作者: 5238869    时间: 2018-10-24 11:12
提示: 作者被禁止或删除 内容自动屏蔽
作者: caocaofff    时间: 2018-10-24 11:44
[Version]
Signature="$CHICAGO$"
Provider=test

[DefaultInstall]
; DelReg=新建文本文档.txt_DelReg
AddReg=新建文本文档.txt_AddReg
; reg-root-string, [subkey], [value-name], [flags], [value]
;DelReg=新建文本文档.txt_DelReg
; reg-root-string, subkey, [value-name]
;Delfiles=新建文本文档.txt_Delfiles
; file-name[,,,flag]
;Renfiles=新建文本文档.txt_Renfiles
; new-file-name,old-file-name
;Copyfiles=新建文本文档.txt_Copyfiles
; destination-file-name[,source-file-name][,temporary-file-name][,flag]
;UpdateInis=新建文本文档.txt_UpdateInis
; ini-file,ini-section,[old-ini-entry],[new-ini-entry],[flags]

[DestinationDirs]
; -01 or 0xffff The directory from which the INF was installed.
; 01 SourceDrive:\path.
; 10 Windows directory.
; 11 System directory. (%windir%\system on Windows 95, %windir%\system32 on Windows NT)
; 12 Drivers directory.(%windir%\system32\drivers on Windows NT)
; 17 INF file directory.
; 18 Help directory.
; 20 Fonts directory.
; 21 Viewers directory.
; 24 Applications directory.
; 25 Shared directory.
; 30 Root directory of the boot drive.
; 50 %windir%\system
; 51 Spool directory.
; 52 Spool drivers directory.
; 53 User Profile directory.
; 54 Path to ntldr or OSLOADER.EXE

[新建文本文档.txt_DelReg]

[新建文本文档.txt_AddReg]
hkcr,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr","SuppressionPolicy",65537,3c,00,00,40


[Strings]

作者: kli    时间: 2018-10-24 12:02
Reg.exe add "HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr" /ve /t REG_EXPAND_SZ /d "@%%windir%%\system32\devmgr.dll,-4" /f
Reg.exe add "HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr" /v "SuppressionPolicy" /t REG_DWORD /d "1073741884" /f
Reg.exe add "HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command" /ve /t REG_EXPAND_SZ /d "%%windir%%\system32\mmc.exe /s %%windir%%\system32\devmgmt.msc" /f
作者: 5238869    时间: 2018-10-24 12:42
提示: 作者被禁止或删除 内容自动屏蔽
作者: 5238869    时间: 2018-10-24 12:44
提示: 作者被禁止或删除 内容自动屏蔽
作者: kli    时间: 2018-10-24 13:02
本帖最后由 kli 于 2018-10-24 13:04 编辑

[1_AddReg]
hkcr,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr",,0x20000,"@%%windir%%\system32\devmgr.dll,-4"
hkcr,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr","SuppressionPolicy",0x10001,3c,00,00,40

hkcr,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command",,0x20000,"%%windir%%\system32\mmc.exe /s %%windir%%\system32\devmgmt.msc"

[Strings]

reg2infgui 1.0.0.3

Windows 8.1
作者: 5238869    时间: 2018-10-24 13:08
提示: 作者被禁止或删除 内容自动屏蔽
作者: kli    时间: 2018-10-24 13:10
5238869 发表于 2018-10-24 13:08
第三段
hkcr,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command",,0x20000,"%%windi ...

既然我用工具转bat和转inf的时候都没加, 那它肯定是不加的
作者: 5238869    时间: 2018-10-24 13:35
提示: 作者被禁止或删除 内容自动屏蔽
作者: 永远的大象    时间: 2018-10-24 13:55
5238869 发表于 2018-10-24 13:08
第三段
hkcr,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command",,0x20000,"%%windi ...


.reg 的默认值用 @ 表示
.bat 的默认值是用 /ve 表示(有名字的是 /v +"Name")
.inf 的默认值是直接留空
作者: kli    时间: 2018-10-24 15:37
5238869 发表于 2018-10-24 13:35
兄弟 谢谢了 ,你用啥工具转换的?
我把Reg2Inf_0.46传给你

我前面专门编辑说明过,就是用的百度搜索出来的reg2infGUI 1.0.0.3版,
环境是虚拟机里的Windows8.1精简版

主要我有系统洁癖,所以可能会写注册表的软件我都虚拟机里测试
作者: 5238869    时间: 2018-10-24 15:53
提示: 作者被禁止或删除 内容自动屏蔽
作者: wchongy    时间: 2018-10-24 17:49
#code=936T950
ENVI^ ForceLocal=1
ENVI^ EnviMode=1

REGI ~HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\\=@%%windir%%\system32\devmgr.dll,-4
REGI #HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\\SuppressionPolicy=1073741884
REGI ~HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command\\=%%windir%%\system32\mmc.exe /s %%windir%%\system32\devmgmt.msc





欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3