I want to access a registry entry in a package configuration but am having problems. I am looking for some example values for the "Registry Entry" field in the Package Configuration Wizard.
The test is a simple one, fill a variable with a registry value and present it in message box. I have tried a number of different values but can't seem to get the right one. Here are somethat I tried:
Software\\MyCompany\\ImportExport\\ServerName\\Value
Software\\MyCompany\\ImportExport\\ServerName
HKEY_CURRENT_USER\\Software\\MyCompany\\ImportExport\\ServerName
HKEY_CURRENT_USER\\Software\\MyCompany\\ImportExport\\ServerName\\Value
Software\MyCompany\ImportExport\ServerName\Value
Software\MyCompany\ImportExport\ServerName
HKEY_LOCAL_MACHINE\Software\MyCompany\ImportExport\ServerName
HKEY_LOCAL_MACHINE\Software\MyCompany\ImportExport\ServerName\Value
HKEY_CURRENT_USER\Software\MyCompany\ImportExport\ServerName\Value
HKEY_CURRENT_USER\Software\MyCompany\ImportExport\ServerName
HKEY_CURRENT_USER\Software\MyCompany\ImportExport
Software\MyCompany\ImportExport
HKEY_CURRENT_USER\\Software\\MyCompany\\ImportExport
Software\\MyCompany\\ImportExport
jcl,
I just realized you have double posted this question. I have already replied in the other thread. Here is what I replied:
--
cj See if you can find the answer here:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=187656&SiteID=1
|||
Sorry. I still cannot read the registry entry.
In the registry:
HKEY_CURRENT_USER\Software\MyCompany\MyPackageConfiguration
then I have a string value called:
MyParameter1
and the value data is set to:
MyTestValue
I want to see MyTestValue. What do I put in the Package Configuration Wizard text box? These did not work:
HKEY_CURRENT_USER\Software\MyCompany\MyPackageConfiguration\MyParameter1\Value
HKCU\Software\MyCompany\MyPackageConfiguration\MyParameter1\Value
\Software\MyCompany\MyPackageConfiguration\MyParameter1\Value
Software\MyCompany\MyPackageConfiguration\MyParameter1\Value
Software\MyCompany\MyPackageConfiguration\MyParameter1
\Software\MyCompany\MyPackageConfiguration\MyParameter1
HKCU\Software\MyCompany\MyPackageConfiguration\MyParameter1
HKEY_CURRENT_USER\Software\MyCompany\MyPackageConfiguration\MyParameter1
No comments:
Post a Comment