-
Notifications
You must be signed in to change notification settings - Fork 27
Advanced Instructions
From the command line, enter in the installer exe with /S at the end. Note that the /S is case sensitive, and /s will not work.
dragdropconfirm_installer.exe /S
You can create registry entries to customize the text displayed on the messagebox. The location of the registry key is: HKEY_LOCAL_MACHINE\SOFTWARE\DragDropConfirm
Note that if you are on a 32 bit machine, this key will already exist, and will have an Install_Dir
value. If you are on 64 bit, you will have to create the key. The Install_Dir
value will be in a key in the location: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\DragDropConfirm
The keys you can create are:
Value Name | Type | Default Data |
AskTitle | REG_SZ | Hold up there... |
AskDescription | REG_SZ | Are you sure you want to move the file(s) or folder(s)? |
ItemText | REG_SZ | &Move here |
ShowDefaultText | REG_DWORD | 0 |
The AskTitle
and AskDescription
keys are obviously for customizing the text in the prompt. More about the other two below...
Note that if you are on a 64-bit machine and you want to add these values, you will need to add them in both locations mentioned above. This is because 64 bit Windows uses the 64-bit dll in most cases which reads the non-Wow6432Node location, but occasionally uses the 32-bit dll which will access the other.
To summarize, here are the registry keys you will be creating/editing:
HKEY_LOCAL_MACHINE\SOFTWARE\DragDropConfirm | Default on 32-bit and 64-bit Windows |
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\DragDropConfirm | 64-bit only when emulating 32-bit programs |
This is where the other two registry values come in handy: ItemText
and ShowDefaultText
. If you are not on an English edition of Windows, the confirmation prompt will most likely not work. This is because it looks for the ItemText value to compare to what is the current default menu item value. On English Windows, this is &Move here
.
The first thing you will want to do is find out what the real value is on your Windows copy. You can easily do this by creating the ShowDefaultText
value, and setting it to 1. When that key is set and equal to 1 (or any non-zero value really) it will display a dialog upon a drag and drop action, displaying whatever is the current default item value. If you are doing a move operation, it will be the value you want.
Now once you know the value, create an ItemText
value and set its data to that string you saw. If all goes well, the confirmation prompt should now be working.
Note: for some reason I made it so that if the ItemText
value exists, it will not check the ShowDefaultText
value and therefore will not show the default value in a messagebox, even if the ItemText
is the wrong value. Be sure the ItemText
value does not exist if you are trying to retrieve the data you need to enter in that.