Announcement

Collapse
No announcement yet.

OOHHHH MARK !!!!!

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • OOHHHH MARK !!!!!

    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

  • #2
    Re: OOHHHH MARK !!!!!

    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.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment

    Working...
    X