Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2004
    Posts
    31

    Variables In Registry Actions

    Hello,
    It seems that variables arnt being converted :(

    Code:
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\MyProduct\\SystemSettings", "InstallVersion", "%ProductVer%", REG_SZ);
    The installer writes %ProductVer% to the registry and not my actuall product version...

    Thanks,
    Warren

  2. #2
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Session variables need to be expanded when used in actions, like so:

    Code:
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\MyProduct\\SystemSettings", "InstallVersion", SessionVar.Expand("%ProductVer%"), REG_SZ);
    --[[ Indigo Rose Software Developer ]]

  3. #3
    Join Date
    Jun 2004
    Posts
    31
    HeHe Cool...

    Still tryna get to grips wit this new SF7 coding style...

    Cheers

Similar Threads

  1. Variables in actions!!
    By kpsmith in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 12-09-2003, 03:04 PM
  2. INFO: Setting Environment Variables
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 12:07 PM
  3. Variables and registry
    By gena in forum Setup Factory 6.0
    Replies: 0
    Last Post: 12-10-2001, 03:25 AM
  4. Registry Variables Problem
    By shenjengjie in forum Setup Factory 5.0
    Replies: 2
    Last Post: 10-31-2001, 07:01 AM
  5. Problem with Registry Variables
    By marcus in forum Setup Factory 5.0
    Replies: 3
    Last Post: 10-25-2000, 08:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts