Page 1 of 1
Writing a variable value to the registry
Posted: Tue Feb 05, 2008 6:11 am
by RyanUK
Is it possible to write the value of a variable that you have gathered from the user interface and write it to the registry ?
I have only been able to get it to write a hard coded value so far.
Posted: Tue Feb 05, 2008 7:07 am
by CandiceJones
Of course. Just have it write a variable!
Posted: Tue Feb 05, 2008 8:40 am
by RyanUK
I have tried that - it writes the variable name rather than the variable data !
Posted: Tue Feb 05, 2008 10:45 am
by CandiceJones
Was the variable declared as one and properly dereferenced?
Posted: Tue Feb 05, 2008 11:02 am
by RyanUK
Variable was declared and during debug contained the correct data. As to dereferenced, I couldnt tell you !
Posted: Tue Feb 05, 2008 12:06 pm
by RyanUK
This is really frustrating. It should be pretty simple to do this !!
And the 'help' doesnt help at all !
Posted: Tue Feb 05, 2008 12:08 pm
by CandiceJones
How are you dereferencing the variable? Are you saying $VARIABLE$ in the field or just VARIABLE?
Posted: Tue Feb 05, 2008 12:30 pm
by RyanUK
Tried both ways !!
Posted: Tue Feb 05, 2008 12:55 pm
by MichaelNesmith
Could you paste some code from your script so we can understand what you're doing?