Indigo Rose Software
  #1  
Old 09-24-2004
Waza04 Waza04 is offline
Forum Member
 
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
Reply With Quote
  #2  
Old 09-24-2004
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
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 ]]
Reply With Quote
  #3  
Old 09-24-2004
Waza04 Waza04 is offline
Forum Member
 
Join Date: Jun 2004
Posts: 31
HeHe Cool...

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

Cheers
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT -6. The time now is 11:13 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software