[THIN] Re: Using variables in the application REG's

  • From: "Tim Mangan" <tmangan@xxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Wed, 4 Jun 2003 16:36:43 -0400

Sam,

You didn't say - so I'll guess -- that the key is in HKEY_LOCAL_MACHINE.

If it in HKEY_CURRENT_USER, I would go with a script.  The script would be
used to update the key and launch the app.  This is also possible if only
one copy of the app will be in use on the machine at a time (which could be
enforced by the script also).

Otherwise, without knowing the details, you may be out of luck.  You can
always stick in a variable and see if the application is smart enough to
detect and decode -- but that is highly unlikely.  If desperate, this is the
sort of problem that Softricity takes care of.

tim

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On
Behalf Of Schneider, Samuel M. Mr (Contractor) UHD
Sent: Wednesday, June 04, 2003 3:01 PM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: Using variables in the application REG's


I believe that under normal circumstances this may be a valid soloution,
however, the application i'm attemting to trick is looking for a specific
type of key(REG_SZ). Is there a way to fool, intercept or redirect this key
request to a REG_EXPAND_SZ key containing a variable. What I'm attempting to
do is redirect the application data request from this app from a static
location to a %userprofile% location to emulate a multi user
application(doesn't exist).


Thx for any input

Sam

-----Original Message-----
From: Tim Mangan [mailto:tmangan@xxxxxxxxxxxx]
Sent: Wednesday, June 04, 2003 2:27 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Using variables in the application REG's


There is a special type of expandable reg string for this.
Programmatically, REG_EXPAND_SZ instead of REG_SZ.  You can't set one using
regedit, you must use regedt32.exe (located in the system32 folder) instead.
Allows you to include standard env vars.

tim
-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On
Behalf Of Schneider, Samuel M. Mr (Contractor) UHD
Sent: Wednesday, June 04, 2003 2:00 PM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Using variables in the application REG's


Are there any special requirements when using variable values in an
applications registry settings? anyone have experience with this?
Thx

Sam


********************************************************
This Week's Sponsor - Appsense Technologies
New! AppSense Optimizer is a new product from AppSense
designed to increase the user capacity of your servers.
http://www.appsense.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm



********************************************************
This Week's Sponsor - Appsense Technologies
New! AppSense Optimizer is a new product from AppSense
designed to increase the user capacity of your servers.
http://www.appsense.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm


********************************************************
This Week's Sponsor - Appsense Technologies
New! AppSense Optimizer is a new product from AppSense
designed to increase the user capacity of your servers.
http://www.appsense.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm



********************************************************
This Week's Sponsor - Appsense Technologies
New! AppSense Optimizer is a new product from AppSense 
designed to increase the user capacity of your servers. 
http://www.appsense.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: