Changing PATH
Updated: 29 Jul 2010 | 9 comments
This issue has been solved. See solution.
We have a 16-bit application, where we need change PATH variable to only include two directories.
Is there a way to change PATH in layer only include those two directories?
Discussion Filed Under:
Comments
I would say no
I would say no as the PATH environment variable is handled different then other registry values.
Why not add them in the beginning of the PATH?
Are you using SVS or SWV?
If SWV then maybe the isolation feature could help but I'm not sure due to the way env. variables are handled.
The path variable is stored
The path variable is stored in the registry somewhere so you could manually add them to the layer, but you'll still have all the paths that are on the base.
If a forum post solves your problem please flag is as the solution
First time I've heard
I must say that it's the first time I've heard a 16-bit app using env. variables.
Jordan,
Does SVS/SWV now support virtualizing 16-bit apps?
There was a problem "in the old days" regarding keeping files in the layer when a 16-bit app "touched" a file in the same layer as the underlying (start) "process" will be the MS DOS subsystem.
Maybe with SWV
With isolation and keep in layer it should work but it's not something we support because it wasn't intended for 16-bit virtualization-- but that doesn't mean it couldn't.
My understanding, which I admit isn't very much, is that all 16-bit apps running run from the same emulator and there can only be one instance of this emulator running at a time.
I really can't say how they work in SWV but I would think some combo of Isolation, Keep in Layer and Auto Run From Layer (exec from layer) could get some apps to work.
If a forum post solves your problem please flag is as the solution
Path
I have no problem with this 16-bit (svs) it's running fine from layer.
I can change path from registry (HKLM\\SYSTEM\CurrentControlSet\Control\Session Manager\Environment Path) but this will only add this path to computer path.The path will be too long for this application.
I will try Isolation and run from layer, Thanks
-Petri
-Petri
What does it need?
What path does it need?
Real 16-bit apps are mostly about copy files and then they "work".
Path
There also 32-bit part in this application, i just follow installing instructions.
This appliction is done with VB3/VB4/VB5. Believe or not, this appliction is in use in big corporation for hunders of users.
-Petri
Known application?
Is this a "known" application?
Would you mind sharing the name of it?
The "path" it takes from the PATH env. variable; what is it used for and is it the same "starting" process that queries it?
User Path
As well as the "System" path in HKLM, there is also a "User" path that can be added to HKCU\Environment.
This may give you another option if your system path is getting a bit long.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Would you like to reply?
Login or Register to post your comment.