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

  • From: "Schneider, Samuel M. Mr (Contractor) UHD" <samuel.schneider@xxxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Thu, 5 Jun 2003 09:23:12 -0400

Thx Tim, That was a great Idea. I let the creative juices move in a
different direction this time, but this good info for future reference.

Sam

-----Original Message-----
From: Tim Bishop [mailto:Tim.Bishop@xxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, June 05, 2003 8:34 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Using variables in the application REG's


You could always try %username%\dirname.

Tim

 -----Original Message-----
From:   Mark Lee [mailto:marklee15@xxxxxxxxx]=20
Sent:   Thursday, 5 June 2003 10:00 PM
To:     thin@xxxxxxxxxxxxx
Subject:        [THIN] Re: Using variables in the application REG's

Is the reg key under HKLM ?  Forget system variables etc. in the registry, =
work around the issue as follows and do what the compat scripts sometimes d=
o, subst a temp drive letter, eg.
=20
in the login script, or usrlogin.cmd etc do a=20
=20
subst X: %userprofile%
=20
and set X: to any unused drive letter.  Set the REG_SZ value in the registr=
y to point to the new static location X:\   This will work as each user wil=
l have their own X:\ drive mapped to their user profile dir ! =20
=20
This deffinately works - we used to use this trick on our winframe systems =
around 5+ years ago with Office 95 & then office 97 to cure the custom dict=
ionary issue before compat scripts were available.....  If you need any fur=
ther pointers please let me know.
=20
=20
HTH
=20
Mark
=20
=20
=20

"Braebaum, Neil" <Neil.Braebaum@xxxxxxxxxxxxxxxxx> wrote:
Can't you simply pre-empt the registry value (a type REG_SZ) with *expanded*
environment variables (in this case part of the profile path) by writing
into it with a login script?

Then when the application looks at the value, it already should have an
up-to-date value in it?

Neil

> -----Original Message-----
> From: Schneider, Samuel M. Mr (Contractor) UHD=20
> [mailto:samuel.schneider@xxxxxxxxxxx]=20
> Sent: 04 June 2003 20:01
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] Re: Using variables in the application REG's
>=20
> I believe that under normal circumstances this may be a valid=20
> soloution, however, the application i'm attemting to trick is=20
> looking for a specific type of key(REG_SZ). Is there a way to=20
> fool, intercept or redirect this key request to a=20
> REG_EXPAND_SZ key containing a variable. What I'm attempting=20
> to do is redirect the application data request from this app=20
> from a static location to a %userprofile% location to emulate=20
> a multi user application(doesn't exist).
>=20
> -----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
>=20
> There is a special type of expandable reg string for this.=20
> Programmatically, REG_EXPAND_SZ instead of REG_SZ. You can't=20
> set one using regedit, you must use regedt32.exe (located in=20
> the system32 folder) instead. Allows you to include standard env vars.
>=20
> 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
>=20
>=20
> Are there any special requirements when using variable values=20
> in an applications registry settings? anyone have experience=20
> with this? Thx

***********************************************************************
This e-mail and its attachments are confidential and are intended for=20
the above named recipient only. If this has come to you in error,=20
please notify the sender immediately and delete this email from your
system. You must take no action based on this, nor must you copy or
disclose it or any part of its contents to any person or organisation.

Statements and opinions contained in this email may not necessarily=20
represent those of Littlewoods. Please note that email communications=20
may be monitored.=20

The registered office of Littlewoods Limited and its subsidiaries
is 100 Old Hall Street, Liverpool, L70 1AB.=20
Registered number of Littlewoods Limited is 262152=20
***********************************************************************
********************************************************
This Week's Sponsor - Appsense Technologies
New! AppSense Optimizer is a new product from AppSense=20
designed to increase the user capacity of your servers.=20
http://www.appsense.com/
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

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



---------------------------------
Yahoo! Plus - For a better Internet experience


********************************************************
This Week's Sponsor - Appsense Technologies
New! AppSense Optimizer is a new product from AppSense=20
designed to increase the user capacity of your servers.=20
http://www.appsense.com/
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

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




---------------------------------------------------------------------------=
---------------
This e-mail was checked by the e-Sweeper Service.
For more information visit our website, Baltimore Technologies e-Sweeper :
http:// www.mimesweeper.baltimore.com/products/esweeper/
---------------------------------------------------------------------------=
---------------

********************************************************
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/
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

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/
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

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

Other related posts: