|
#1
|
|||
|
|||
|
Why doesn't the following work:
Code:
strInstallType = "les"; strProgrammatuurCopy1 = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Impulse\\User\\"..strInstallType, "prog_loc1", true); |
|
#2
|
||||
|
||||
|
The assumption being that:
HKEY_LOCAL_MACHINE\\Software\\Impulse\\User\\les has a value of "prog_loc1" in the registry? I would suggest have a Application.GetLastError in there somewhere to find out what happened. Are you sure the key exists otherwise it will return an empty string. John |
|
#3
|
|||
|
|||
|
Yeah, registy value exists, registry-dump:
[HKEY_LOCAL_MACHINE\SOFTWARE\Impulse\User\prod] "db_naam"="whoesh" "db_versie"="4403" "db_update"="FALSE" "help_versie"="FALSE" "prog_loc1"="J:\\au-test\\user" Application.GetLastError(); return 0 Last edited by brianlesker; 10-05-2004 at 02:03 AM. |
|
#4
|
|||
|
|||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Impulse\User\prod] but you wrote strInstallType = "les";
|
|
#5
|
|||
|
|||
|
les & prod are both avaible, sorry for the incorrect example
![]() But both value's exist! |
|
#6
|
||||
|
||||
|
What happens if you do not assign "les" to a variable but include it directly as part of the Registry.GetValue command directly?
John |
|
#7
|
|||
|
|||
|
Then i get my registry value. Stupid he?
|
|
#8
|
||||
|
||||
|
Also just to confirm you are running as Admin-equivalent if on a NT-based system although can't see why that would make a difference if it works this way?
I'll have a quick test in a moment with your example registry section and see if I can replicate. Watch this space. John |
|
#9
|
|||
|
|||
|
pfff! i'm to stupid, i didn't saw a fault from all my debugging code.
I have resolved the problem. That's me, to stupid. ![]() Sorry....nuf said. |
|
#10
|
||||
|
||||
|
OK as I was about to say my test worked fine.
John |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| runtime source vars substitution | jmnavarro | Setup Factory 6.0 | 2 | 02-26-2003 01:56 AM |
All times are GMT -6. The time now is 10:22 PM.









Linear Mode

