PDA

View Full Version : Update Variable Not Set Properly



acedougk
02-08-2004, 07:40 AM
I've got 4 variable defined in a client configuration file, namely:
%Version%
%Site%
%Developer%
%InstallType%

All of these with the exception of the %Developer% variable are simple Registry string values, except %Developer% which has it's "Set variable to "TRUE" if key exists" option checked.

When the update program runs it is evaluating %Developer% to true when there is no such registry entry.

Adam
02-11-2004, 04:54 PM
acedougk,

I con't replicate this. What do you have as the default? When I set this up to read a bogus registry value with True if exists it returns the default.

Adam Kapilik

acedougk
02-12-2004, 04:15 AM
Adam,

Here's the info in the debug listing. There is NO Developer registry entry for this Main and sub key:

START: Perform action: Read from Registry
Variable name = %Developer%
Default value = FALSE
Main key = HKEY_CURRENT_USER
Sub key = Software\Better Built Software\EID
Value name = Developer
TRUE if exists = TRUE
Auto-expand if REG_EXPAND_SZ = TRUE
(On Error) User notification mode = None
(On Error) Action = Continue

SET VARIABLE: %Developer% = FALSE
SET VARIABLE: %Developer% = TRUE
SET VARIABLE: %LastErrorNum% = 0
SET VARIABLE: %LastCommand% = 12
SET VARIABLE: %LastErrorMsg% =
SET VARIABLE: %LastErrorDetails% =
END: Perform action: Read from Registry

Hope this helps.