Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Changing PATH

Updated: 29 Jul 2010 | 9 comments
rantpe's picture
+1 1 Vote
Login to vote
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?

Comments

AngelD's picture
01
Apr
2009
0 Votes 0
Login to vote

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.

Jordan's picture
01
Apr
2009
0 Votes 0
Login to vote

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

AngelD's picture
02
Apr
2009
0 Votes 0
Login to vote

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.

Jordan's picture
02
Apr
2009
0 Votes 0
Login to vote

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

rantpe's picture
02
Apr
2009
0 Votes 0
Login to vote

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

AngelD's picture
03
Apr
2009
0 Votes 0
Login to vote

What does it need?

What path does it need?
Real 16-bit apps are mostly about copy files and then they "work".

rantpe's picture
03
Apr
2009
0 Votes 0
Login to vote

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

AngelD's picture
05
Apr
2009
0 Votes 0
Login to vote

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?

EdT's picture
09
Apr
2009
0 Votes 0
Login to vote

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.