Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - OCX files moveable to other folder? Change search path for OCX files possible?

Reply
 
Old 03-08-2009   #1 (permalink)
Richard Blackley


 
 

OCX files moveable to other folder? Change search path for OCX files possible?

After installation of a program some new *.ocx files were put into several different folders.
I wanted to group them together.

Can I just move them into the installation directory of the program?

How is the search path of programs for their ocx files?
Do they automatically search at first in their own directory and
subsequently in other locations?

Can I adjust the search path of a certain program (e.g. by defining a PATH environment
variable like in Java)?

Richard


My System SpecsSystem Spec
Old 03-08-2009   #2 (permalink)
Michel Posseth [MCP]


 
 

Re: OCX files moveable to other folder? Change search path for OCX files possible?

Hello Richard ,
Quote:

> After installation of a program some new *.ocx files were put into several
> different folders.
> I wanted to group them together.

OCX files are registred at the target location AFAIK they follow common COM
/ ACTIVEX registration rules
so if you want to alter there location you should first unregister the files
with the /U switch copy the files to the new location and then register them
again
Quote:

> Can I just move them into the installation directory of the program?
> How is the search path of programs for their ocx files?
> Do they automatically search at first in their own directory and
> subsequently in other locations?

i believe that the correct order was Registry location , Application path
of calling process , and then system32 directory
so one of the above threaa location should indeed work .

However to prevent registry polution i would unregister and reregister the
assmblies if i were you
Quote:

> Can I adjust the search path of a certain program (e.g. by defining a PATH
> environment
> variable like in Java)?
The registry is used for that in COM remember that COM is legacy Windows and
java is multi platform so that is the reasson that java has a config file
for that

You cross posted this to microsoft.public.dotnet.languages.vb and indeed
with Dotnet assemblies you have the ability to add different locations for
every referenced assembly .


HTH

Michel Posseth




"Richard Blackley" <blackboard@xxxxxx> schreef in bericht
news:49b38515$0$30232$9b4e6d93@xxxxxx-online.net...
Quote:

> After installation of a program some new *.ocx files were put into several
> different folders.
> I wanted to group them together.
>
> Can I just move them into the installation directory of the program?
>
> How is the search path of programs for their ocx files?
> Do they automatically search at first in their own directory and
> subsequently in other locations?
>
> Can I adjust the search path of a certain program (e.g. by defining a PATH
> environment
> variable like in Java)?
>
> Richard
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Change default destination folder for extracted .zip files. Vista General
How to change the default destination folder for saving files Vista file management
change permission on all files inside a folder or hundreds of file inside a folder Vista security
How to I change default install folder c:/Program Files ? Vista file management
Change Favorites-Folder Path Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46