1

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

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

谢谢你的帮助。

; 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.
4

1 回答 1

2

问题:如果您想在 64/32 位中安装注册表(您的应用程序),那么只需删除该部分。Wow6432Node毫无疑问。该Wow6432Node部分将自动以 64 位创建。有这么简单吗?是的!

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

请查看示例注册表脚本:

[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
于 2015-07-18T12:11:55.990 回答