dbTalk Databases Forums  

ASA9 Setup Environment Variable Issue

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss ASA9 Setup Environment Variable Issue in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas
 
Posts: n/a

Default ASA9 Setup Environment Variable Issue - 09-23-2009 , 02:30 AM






Hallo,
The ASA 9.02 Setup (WinXP SP3) sets some environment
variables (e.g. path), but this variables doesn't work until
a logoff/logon. I think the ASA setup writes the variables
only into the registry and did not use a way similar to the
tool setx.exe.
This is a problem for me, because the ASA setup is a part of
a extensive setup where I need this variables.
Any ideas how I can bring the environment variables to live
directly after the setup?

Reply With Quote
  #2  
Old   
Jeff Albion [Sybase iAnywhere]
 
Posts: n/a

Default Re: ASA9 Setup Environment Variable Issue - 09-23-2009 , 09:51 AM






Thomas,

Environment variables are available to any new calling environment that
is launched after they're set in the registry. Existing
environments/launched executables do not pick up the changes.

e.g.

1. Start -> Run -> cmd
2. "echo %MYVAR%"
3. Right-click on My Computer, Properties, Advanced, Environment
Variables, Add... Var: MYVAR, Value: Hello
4. Start -> Run ->cmd
5. "echo %MYVAR%" in both Command Prompts - one picks up the new value,
one does not.

Regards,

Thomas wrote:
Quote:
Hallo,
The ASA 9.02 Setup (WinXP SP3) sets some environment
variables (e.g. path), but this variables doesn't work until
a logoff/logon. I think the ASA setup writes the variables
only into the registry and did not use a way similar to the
tool setx.exe.
This is a problem for me, because the ASA setup is a part of
a extensive setup where I need this variables.
Any ideas how I can bring the environment variables to live
directly after the setup?
--
Jeff Albion, Sybase iAnywhere

iAnywhere Developer Community :
http://www.sybase.com/developer/libr...ere-techcorner
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
SQL Anywhere Patches and EBFs :
http://downloads.sybase.com/swd/summ...&timeframe =0
Report a Bug/Open a Case : http://case-express.sybase.com/cx/

Reply With Quote
  #3  
Old   
Thomas
 
Posts: n/a

Default Re: ASA9 Setup Environment Variable Issue - 09-25-2009 , 12:51 PM



Hallo Jeff,

you're right, but the ASA9 setup did not do this.
The variables only become effectiv when I follow step 3 (...
Right-click on My Computer, Properties, Advanced,
Environment Variables) - after a setup the ASA variables
here are visible, but only when I press now OK they will
became effective for the system (e.g. echo or set command).
Without this dialog they will not be effective until a
logon/logoff.

Regards



Quote:
Thomas,

Environment variables are available to any new calling
environment that is launched after they're set in the
registry. Existing environments/launched executables do
not pick up the changes.

e.g.

1. Start -> Run -> cmd
2. "echo %MYVAR%"
3. Right-click on My Computer, Properties, Advanced,
Environment Variables, Add... Var: MYVAR, Value: Hello
4. Start -> Run ->cmd
5. "echo %MYVAR%" in both Command Prompts - one picks up
the new value, one does not.

Regards,

Thomas wrote:
Hallo,
The ASA 9.02 Setup (WinXP SP3) sets some environment
variables (e.g. path), but this variables doesn't work
until a logoff/logon. I think the ASA setup writes the
variables only into the registry and did not use a way
similar to the tool setx.exe.
This is a problem for me, because the ASA setup is a
part of a extensive setup where I need this variables.
Any ideas how I can bring the environment variables to
live directly after the setup?

--
Jeff Albion, Sybase iAnywhere

iAnywhere Developer Community :

http://www.sybase.com/developer/libr...ere-techcorner
iAnywhere Documentation :
http://www.ianywhere.com/developer/product_manuals SQL
Anywhere Patches and EBFs :

http://downloads.sybase.com/swd/summ...&timeframe =0
Report a Bug/Open a Case :
http://case-express.sybase.com/cx/

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.