PDA

View Full Version : Registry.GetValue()


sbohland
11-19-2008, 01:28 PM
TrueUpdate Product version v3.0.2.0

during testing of my true update exe it routinely fails when trying to read a registry value that is present, until I actually run regedit, once regedit is run the true update exe does not have any problem? What is the problem with this? I know there are going to be issues on vista when trying to read from the registry, so we are looking into other options, but right now a majoring of our customers are on xp and this should work fine?

To Summarize...

1. "Registry.GetValue" is used to get the installed version of the softare to be updated.
2. The value cannot be acquired until regedit is started and closed

jassing
11-20-2008, 05:46 AM
TrueUpdate Product version v3.0.2.0

during testing of my true update exe it routinely fails when trying to read a registry value that is present, until I actually run regedit, once regedit is run the true update exe does not have any problem? What is the problem with this? I know there are going to be issues on vista when trying to read from the registry, so we are looking into other options, but right now a majoring of our customers are on xp and this should work fine?

To Summarize...

1. "Registry.GetValue" is used to get the installed version of the softare to be updated.
2. The value cannot be acquired until regedit is started and closed


I've not seen this -- can you post an example that consists of:
a .reg file to initially put the value int the registry
the code to 'read' the registry (where it will fail)
so that I can then run regedit & terun the code to see it now work?