5
2
How to add the below keys using pure batch file?
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Server]
"DisplayName"="Server"
"DisplayVersion"="1.2"
"InstallLocation"="C:\\Program Files\\1.2"
"NoModify"=dword:00000001
"Publisher"="ABC"
"UninstallPath"="D:\\test\\Uninstall.bat"
"UninstallString"="D:\\test\\Uninstall.bat"
also if you open regedit and right click in the right hand pane and do 'new' you can see a list of types. – barlop – 2014-05-31T11:04:19.623
2The main advantages of
reg
overregedit
+.reg
file isreg
can be scripted (IIRC.reg
requires interactive confirmation of the popup) andreg
doesn't require elevation, so no UAC popup if you're only editing your user's registry hives. – Bob – 2014-05-31T11:19:37.2872
Documentation of REG ADD command http://technet.microsoft.com/en-us/library/cc742162.aspx
– David Marshall – 2014-05-31T11:21:23.770two links that might help re terminology (key,name,value,data). and 'hive'(a root key) http://pcsupport.about.com/od/termsr/g/registryhive.htm http://en.wikipedia.org/wiki/Windows_Registry
– barlop – 2014-05-31T11:29:37.120