使用32位安装程序删除64位注册表项 [英] Delete 64-bit registry Key using 32-bit installer
问题描述
我有具有执行批处理文件功能的安装程序(InstallanyWhere 2013). 我使用32位JRE创建了安装程序.
I have installer (InstallanyWhere 2013) that has feature to execute the batch file. I created the installer using 32 bit JRE.
我有两个位置:
HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ Lock配置工具( 32位注册表位置)
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Lock Configuration Tool (32 bit registry location)
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ Lock配置工具( 64位注册表位置)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Lock Configuration Tool (64 bit registry location)
批处理文件代码:
cd\
cd c:\windows\system32
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ProjectName" /f
执行上述命令时,它将指向32位注册表,而不是64位注册表. 我知道将"HKEY_LOCAL_MACHINE \ SOFTWARE"转换为HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node的原因,因此它指向32位注册表.
When above command executed then it point to 32 bit registry not the 64 bit registry. I know the reason the "HKEY_LOCAL_MACHINE\SOFTWARE" convert to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node so it point to 32 bit registry.
我的问题是如何通过命令提示符使用32位安装程序(内部使用批处理文件)删除64位注册表.命令提示符是否提供指向64位注册表的功能?
My question how to delete the 64 bit registry using 32 bit installer (internally use the batch file) via command prompt. Does command prompt provide any feature to point to 64 bit registry?
推荐答案
这个困扰了我们一阵子.您需要使用/reg:64参数. 来源
This one plagued us for while. You need to use the /reg:64 parameter. Source
示例:
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ProjectName" /f /reg:64
这篇关于使用32位安装程序删除64位注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!