runner3734 Posted August 29, 2008 Share Posted August 29, 2008 The title pretty much says it all. I would like to have the recycle bin delete confirmation option turned off. I know that this is determined via the ShellState entry at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer.With delete confirmation enabled, my shellstate is:"ShellState"=hex:24,00,00,00,2e,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 01,00,00,00,0d,00,00,00,00,00,00,00,00,00,00,00With delete confirmation disabled, my shellstate is:"ShellState"=hex:24,00,00,00,2a,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 01,00,00,00,0d,00,00,00,00,00,00,00,00,00,00,00since hex e = binary 1110 and hex a = binary 1010, it is clear that enabling or disabling the delete confirmation is just setting a single bit in the shellstate key.I see in other threads, recommendations to use a regfile entry that overwrites the entire shellstate key. This seems very dumb to me, since we don't know what all the other bits do, and we want to make an unattended install that will work on many different computers. Obviously, we want to leave all the other bits alone, so that we only affect the delete confirmation setting.Is there an easy way to do registry value bitsetting for unattended installs? Link to comment Share on other sites More sharing options...
Martin H Posted August 29, 2008 Share Posted August 29, 2008 Regfind.exe from the Win2k resource kit features general search and replace support on the registry/hive files...regfind /?usage: REGFIND [-h hivefile hiveroot | -w Win95 Directory | -m\\machinename][-i n] [-o outputWidth][-p RegistryKeyPath] [-z | -t DataType] [-b | -B] [-y] [-n][searchString [-r ReplacementString]]Maybe usefull to you...http://www.petri.co.il/download_free_reskit_tools.htm Link to comment Share on other sites More sharing options...
Stacey Melissa Posted August 31, 2008 Share Posted August 31, 2008 The way I've done single bit changes in the past was to retrieve the original value at runtime, then have the script calculate the result of adding the retrieved value + the single bit, then write that sum back to the registry. I haven't done it with the Recycle Bin confirm bit, but I have done it with other values before, and it works. Link to comment Share on other sites More sharing options...
Yzöwl Posted August 31, 2008 Share Posted August 31, 2008 You can make this change using a simple inf file:[Version]Signature = "$Windows NT$"[DefaultInstall]BitReg = Bin.Set[Bin.Set]HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer,ShellState,,0x04,4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now