PDA

View Full Version : OOHHHH MARK !!!!!


Star Chaser
11-29-2001, 08:46 PM
So Mark:
If I wanted to install a key into the registry (for first time users)
and read the registry (for second time users)
I could use the %Date% feature?

%Date% would install the current date correct?
But what about getting the variables to work together...
Project/Settings/Action/Startup/System Config:
Modify Registry -
%RegVar%

And
Project/Settings/Action/Startup/Variables:
Read From Registry

Now, we wouldnt want someone who has ran the cd previously, to run it again, and automatically modify the key information, (%Date%) with new information (Newest %Date%)

So it would be that the "Modify Registry" would have a boolean set to "%RegVar% = False"?

I cant seem to get it straight...cuz first of all...its not appearing in the registry, with the key, and obviously its not working together...




------------------
Just Some Thoughts...

http://www.starchaserdesigning.com.free.new.net

Mark
11-30-2001, 09:57 AM
Hi,

This would basically be a two-step process, checking if the registry key exists, and then writing to the registry if it does not.

1) Read From Registry
Name: %KeyExists%
Default: FALSE
Main Key: HKEY_CURRENT_USER
Sub Key: ProductName
Value Name: RunDate

This action will try to read the date from the registry, if it does not exist %KeyExists% will be set to FALSE.

2) Modify Registry
Action: Set Value
Main Key: HKEY_CURRENT_USER
Sub Key: ProductName
Name: RunDate
Type: REG_SZ
Data: %Date%
Boolean Condition:
%KeyExists% = FALSE

That should work; give it a try, if it does not please outline exactly what your actions look like.

mark.