ChristianD
11-08-2005, 04:40 PM
Hi,
On SUF 6, on the Read From Registry action there was a field name "default value". This value was put on the variable when the registry value was not found.
IE: I try to read this value:
Key: HKLM\Software\MyProgram
Value: WindowPositionX
In suf, I set the default value to ie 615 so when first installing the program this key don't exist in the registry and thus the 615 value was used in the setup program.
http://img177.imageshack.us/img177/4397/suf600py.png
Where is this field and how to use it in SUF 7 ?
Now in Suf 7 this field has disappeared. How can I do the same thing:
does this is correct:
MyVar = 615
MyVar = Registry.GetValue("HKLM","Software\MyProgram","WindowPositionX",true);
So if the Value WindowPositionX doesn't exist in the registry, does the value 615 will be overwritten ?
On SUF 6, on the Read From Registry action there was a field name "default value". This value was put on the variable when the registry value was not found.
IE: I try to read this value:
Key: HKLM\Software\MyProgram
Value: WindowPositionX
In suf, I set the default value to ie 615 so when first installing the program this key don't exist in the registry and thus the 615 value was used in the setup program.
http://img177.imageshack.us/img177/4397/suf600py.png
Where is this field and how to use it in SUF 7 ?
Now in Suf 7 this field has disappeared. How can I do the same thing:
does this is correct:
MyVar = 615
MyVar = Registry.GetValue("HKLM","Software\MyProgram","WindowPositionX",true);
So if the Value WindowPositionX doesn't exist in the registry, does the value 615 will be overwritten ?