alright simple break down:
I want someone to load a cd in for the first time and it write to the registry the date. The second and third time useres would have read from the registry. My hopes are to create my AMS.exe to do this...
Give the user a certain number of days to use the cd before it expired.
Mark, what you told me worked so far:
Read From Registry
Name: %KeyExists%
Default: FALSE
Main Key: HKEY_CURRENT_USER
Sub Key: ProductName
Value Name: RunDate
Modify Registry
Action: Set Value
Main Key: HKEY_CURRENT_USER
Sub Key: ProductName
Name: RunDate
Type: REG_SZ
Data: %Date%
Boolean Condition:
%KeyExists% = FALSE
Assign Value:
%MyVar%
Value: %KeyExsists%
Get Password:
Caption: Your trial is expired
Message: Please enter a registration key or call ###-###-#### to obtain one.
Password List: Serials 1
Max tries: 3
Close if wrong: CHECKED
Boolean: %MyVar% < %Date%
Close/Exit
Boolean: Get Password = FALSE
SHUTDOWN:
Show Message: Please Contact the Vendor at ###-###-####.
Boolean: Get Password = FALSE
_________________________________
The outcome...
If i go into the registry and delete the key, then the program works fine...it will open up. But, the Show Message appears on close down, even with the boolean set.
If the key exists with the same date, the program works, again with the same problem on close...
If i go into the registry and modify the key to even a day earlier, then i get the password prompt, and if entered correctly, it works and again with the same close out problem..
If the password is incorrect...then it prompts out the program menu and closes, and the message appears as it should...
Now, everthing seems to be in place with the exception of:
The ending message displayed
and setting a value as to the number of days passed the installation date (eg 30)
I am not trying to get it to do too much fancy, regarding that part of the cd...my harding hitting impression is the design and output of the cd. I want someone to be impressed with what can be done for them thru the display of the menu, not the values of the registry...
hope someone can help..
thanks
I want someone to load a cd in for the first time and it write to the registry the date. The second and third time useres would have read from the registry. My hopes are to create my AMS.exe to do this...
Give the user a certain number of days to use the cd before it expired.
Mark, what you told me worked so far:
Read From Registry
Name: %KeyExists%
Default: FALSE
Main Key: HKEY_CURRENT_USER
Sub Key: ProductName
Value Name: RunDate
Modify Registry
Action: Set Value
Main Key: HKEY_CURRENT_USER
Sub Key: ProductName
Name: RunDate
Type: REG_SZ
Data: %Date%
Boolean Condition:
%KeyExists% = FALSE
Assign Value:
%MyVar%
Value: %KeyExsists%
Get Password:
Caption: Your trial is expired
Message: Please enter a registration key or call ###-###-#### to obtain one.
Password List: Serials 1
Max tries: 3
Close if wrong: CHECKED
Boolean: %MyVar% < %Date%
Close/Exit
Boolean: Get Password = FALSE
SHUTDOWN:
Show Message: Please Contact the Vendor at ###-###-####.
Boolean: Get Password = FALSE
_________________________________
The outcome...
If i go into the registry and delete the key, then the program works fine...it will open up. But, the Show Message appears on close down, even with the boolean set.
If the key exists with the same date, the program works, again with the same problem on close...
If i go into the registry and modify the key to even a day earlier, then i get the password prompt, and if entered correctly, it works and again with the same close out problem..
If the password is incorrect...then it prompts out the program menu and closes, and the message appears as it should...
Now, everthing seems to be in place with the exception of:
The ending message displayed
and setting a value as to the number of days passed the installation date (eg 30)
I am not trying to get it to do too much fancy, regarding that part of the cd...my harding hitting impression is the design and output of the cd. I want someone to be impressed with what can be done for them thru the display of the menu, not the values of the registry...
hope someone can help..
thanks
Comment