首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何基于windows类型创建注册表项?

如何基于windows类型创建注册表项?
EN

Stack Overflow用户
提问于 2013-09-10 16:19:17
回答 1查看 1.8K关注 0票数 1

我希望我的安装将在64位操作系统中安装注册表条目。如果操作系统是32位,它将没有" Wow6432Node “,因为32位Wow6432Node不存在。

第二个问题会是:Flags: uninsdeletevalue uninsdeletekeyifempty删除已安装的注册表吗?

谢谢你的帮助。

代码语言:javascript
运行
复制
; File created by Converter v.0.1.4 -        10 září 2013ă.,   18 6r.  02 2in. 26 26ec.
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: DisplayName; ValueData: Harry Potter and the Deathly Hallows™ - Part 1; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: CD Drive; ValueData: E:\; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: ProductName; ValueData: Harry Potter and the Deathly Hallows™ - Part 1; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Folder; ValueData: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Electronic Arts\Harry Potter and the Deathly Hallows(TM) - Part 1\; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Install Dir; ValueData: C:\Program Files (x86)\Electronic Arts\Harry Potter and the Deathly Hallows(TM) - Part 1\; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Installed From; ValueData: E:\; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Locale; ValueData: en_UK; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Language; ValueData: English (UK); Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Product GUID; ValueData: {{C9AAF970-4E7E-4C98-AD67-09C74379D345}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Suppression Exe; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Registration; ValueData: Software\Electronic Arts\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\ergc; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\1.0; ValueType: string; ValueName: DisplayName; ValueData: Harry Potter and the Deathly Hallows Part 1; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\1.0; ValueType: dword; ValueName: Language; ValueData: $00000013; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\1.0; ValueType: string; ValueName: LanguageName; ValueData: English (UK); Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Wow6432Node\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\1.0; ValueType: string; ValueName: ProgramGroup; ValueData: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Electronic Arts\; Flags: uninsdeletevalue uninsdeletekeyifempty
; time elapsed:      4 msec.
EN

回答 1

Stack Overflow用户

发布于 2015-07-18 12:11:55

Wow6432Node第一个问题:如果您想在64/32位中安装注册表(您的应用程序),那么只需删除Wow6432Node part.Without,就可以自动在64位中创建doubt.The 部件。就这么简单吗?是!

第二个问题:,我不知道Flags: uninsdeletevalue uninsdeletekeyifempty会不会删除注册表,但是最好用Flags: uninsdeletekey来处理单个注册表。使用Flags: uninsdeletekeyifempty,您可以删除Electronic Arts部件,这些部件不会用Flags: uninsdeletekey删除,但可以通过这种方式删除。

请查看示例注册表脚本:

代码语言:javascript
运行
复制
[Registry]
Root: HKLM; Subkey: SOFTWARE\Electronic Arts; Flags: dontcreatekey uninsdeletekeyifempty
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; Flags: uninsdeletekeyifempty dontcreatekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: DisplayName; ValueData: Harry Potter and the Deathly Hallows™ - Part 1; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: CD Drive; ValueData: E:\; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: ProductName; ValueData: Harry Potter and the Deathly Hallows™ - Part 1; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Folder; ValueData: {group}; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Install Dir; ValueData: {app}; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Installed From; ValueData: {src}; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Locale; ValueData: en_UK; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Language; ValueData: English (UK); Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Product GUID; ValueData: {{C9AAF970-4E7E-4C98-AD67-09C74379D345}; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Suppression Exe; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1; ValueType: string; ValueName: Registration; ValueData: Software\Electronic Arts\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\ergc; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\1.0; ValueType: string; ValueName: DisplayName; ValueData: Harry Potter and the Deathly Hallows Part 1; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\1.0; ValueType: dword; ValueName: Language; ValueData: $00000013; Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\1.0; ValueType: string; ValueName: LanguageName; ValueData: English (UK); Flags: uninsdeletekey
Root: HKLM; Subkey: SOFTWARE\Electronic Arts\Harry Potter and the Deathly Hallows Part 1\1.0; ValueType: string; ValueName: ProgramGroup; ValueData: {group}; Flags: uninsdeletekey
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18724116

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档