I have created a application which manipulates the registry entry for some system level keys. I therefore provided a facility to backup those entries in *.reg files using the command
Shell("regedit /e " & My.Application.Info.DirectoryPath & "RestoreRestore1.reg HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun")
Now when i am trying to restore this entry by using the following command
Shell("explorer.exe " + My.Application.Info.DirectoryPath + "RestoreRestore1.reg")
i am getting this message box saying that "Adding information can unintentionally change or delete values and cause components to stop working correctly. If you do not trust source of this information in restore1.reg do not add it to registry.Are you sure you want to continue?"
It has two buttons YES and NO. When i click YES restore of the backup is successful.
My question is that how can i handle the the above message using vb.net itself so that the user does not have to click OK button to restore.
Thanks in advance!!!
May 12, 2009 6:05 PM
May 12, 2009 6:53 PM