Indigo Rose Software
  #1  
Old 10-15-2007
Chevy88 Chevy88 is offline
Forum Member
 
Join Date: Oct 2007
Posts: 7
Session variables

Can somebody please tell me how to get the value of a session variable like %AppFolder%? I think the value of this is at the root of a problem of mine but I can't figure out what it thinks that value is.
  #2  
Old 10-15-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
To get the value of a session variable in a script, use the SessionVar.Expand action.

Code:
Dialog.Message("%AppFolder% contains:", SessionVar.Expand("%AppFolder%"));
__________________
--[[ Indigo Rose Software Developer ]]
  #3  
Old 10-15-2007
Chevy88 Chevy88 is offline
Forum Member
 
Join Date: Oct 2007
Posts: 7
%AppFolder%

Ok. I tried that and it told me that %AppFolder% contains

%AppFolder%

I guess maybe I don't understand how that session variable gets set. I thought I read that if I used the project wizard it would set it fo rme but Idon't ever really see where it would do that. What should be filled into this value? I thought that it needed to be the destination folder where the key files are installed on the client system.

Thanks,
Kenny
  #4  
Old 10-15-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
The action needs to go after the part of your script that locates the installed version. A value is assigned to %AppFolder% in that part of the script if a known version is identified.

If you check the value of %AppFolder% at the start of your script, it will be empty.
__________________
--[[ Indigo Rose Software Developer ]]
 

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
Creating Session Variables gott Setup Factory 7.0 Discussion 8 09-11-2007 11:07 AM
Registry.GetValue problem with session variables Harris Setup Factory 7.0 Discussion 1 06-12-2007 02:21 PM
session variables ultraz57 Setup Factory 7.0 Discussion 3 06-08-2007 11:54 AM
Session Variables AlanNicoll Setup Factory 7.0 Discussion 1 01-11-2007 01:31 PM
session variables in action strings tkilshaw Setup Factory 7.0 Discussion 3 04-21-2005 01:58 PM


All times are GMT -6. The time now is 04:43 AM.


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