HOW TO: delete Registry entries from within a package
  • KB ID: AA-00466
  • Created: 09/08/2011 10:54 AM
  • Updated: 03/02/2017 5:33 PM
  • Views: 6863
  • 0 Ratings

Summary

You want to delete Registry entries with a Columbus Script


More Information

Contents in the Columbus script sections SERVERADD, CLIENTADD and USERADD as well as their corresponding 'Remove' or 'Repeat' sections, simply perform whatever you demand with a script command. The Columbus script command to access the Windows Registry is called REGISTER32 (please see Columbus script documentation for more details on this and other useful commands). 

Sample 1 (to delete a single Registry value): 

Register32 'HKEY_LOCAL_MACHINE' 'SOFTWARE\Microsoft\Shared Tools' 'MyValue' '{nil}' 'REG_SZ'
Register64 'HKEY_LOCAL_MACHINE' 'SOFTWARE\Microsoft\Shared Tools' 'MyValue' '{nil}' 'REG_SZ'


Sample 2 (to delete a complete Registry subtree): 

Register32 'HKEY_LOCAL_MACHINE' 'SOFTWARE\Microsoft\Shared Tools' '{nil}' '{nil}' 'REG_SZ' 
Register64 'HKEY_LOCAL_MACHINE' 'SOFTWARE\Microsoft\Shared Tools' '{nil}' '{nil}' 'REG_SZ' 

NOTE: Editing the registry is risky, so be sure you test your changes thoroughly. 


Keywords

Packaging, Registry, Delete RegKey, Snapshot


Products

C6, C7

Feedback

Did you find this article helpful?

© 2000-2018 Brainware Consulting & Development AG     Impressum / Legal Notice  |  Datenschutz / Privacy Policy