Writing a REG file to change all values

October 10, 2010 at 01:58:29
Specs: Windows XP
Good Day. I would like to move my Program Files to another HD partition, therefore I would need to write a REG file which would modify every C:\ Program Files in the registry to D:\Program Files. (There are far too many entries to do this manually!) What's the syntax for this? (Win XP) Thanks in advance!

See More: Writing a REG file to change all values

Report •


#1
October 10, 2010 at 02:38:43
The first thing I would do is forget the whole idea, you are heading for disaster.

My Programmes is a special folder and as such cannot be moved. Some can, but this is one that cannot. There is undoubtedly a lot of stuff in my programmes the needn't be there and can be moved to another folder. However there will also be a lot of stuff that needs to be there and moving the folder will cause Windows to fail.

Stuart


Report •

#2
October 10, 2010 at 02:46:01
Dear Stuart: Thanks for your kind reply. I presume you mean "Program Files"? I don't know what "My Programmes" folder is.. What I actually wish, is to have all installed programs on a different partition, separate from the Win system... I know this can be done successfully, at least on XP... but in order to work, the registry must echo this modification, and every entry "C:\Program Files\....." must be modified accordingly... thus my query...

Report •

#3
October 10, 2010 at 03:50:40
Sorry, I did mean C:\Programme Files\... But the same applies. It is those special folders prefixed with MY like MyDocument and MyMusic than can be moved.

The easiest thing to do in just to reinstall the programmes in any folder on any drive that you wish and delete them from C:\Programm Files\. Making registry changes is fraught with problems. The problem is that Windows accesses this folder, not by a hard coded pathname like C:\Programm Files\ but with s System variable %PROGRAMFILES% This variable is established and set during installation and as far as I can tell, cannot be changed. If you can find a way of changing this variable without crashing the system then it might work.

http://vlaurie.com/computers2/Artic...

There is no rule that says that installed application must go into the C\:programmes\.. folder. They can go anywhere, it is just that most installation packages offer this folder as a default.

Stuart


Report •

Related Solutions

#4
October 10, 2010 at 05:02:29
I agree with StuartS
Moving applications after they ave been installed is a recipe for disaster. The problem is that applications use the registry in a wide variety of way, some of which are far from obvious, even for an expert. Each application is different. A single error could mean an application failing to start or failing in some strange way.

The only way to reliably move an application is to reinstall it at it's desired location.


Report •

#5
October 10, 2010 at 05:24:20
Dear Stuart S and L Miller:

Thanks for your valued comments.. Of course I would save the registry before changing whatsoever in it, and if - as you rightly warn - Win XP didn't work too well, or at all, after what I plan to do, I would simply move Program Files back to where it was...

It would have certainly been wiser had I installed all my Programs in a separate partition as I was installing them, or uninstall them and reinstall them again somewhere else...

My inquiry, still, remains valid: How would one create a REG file in order to change a path, in the whole registry DB, from C:\.... to D:\ ?

Have a nice Sunday.


Report •

#6
October 10, 2010 at 05:40:30
M$ doesn't support what you are determined to do. Read THIS first before you try it.


i_Xp/Vista/W7User


Report •

#7
October 10, 2010 at 07:54:03
WOW! Thanks XPUser, this is a very dramatic advice that goes in the same direction that StuartS and LMiller were pointing at....
http://support.microsoft.com/kb/933700
I think I'll definitely abandon my plan to move that folder to any other location ;)
I thank you all for your kindness.
Alexis.

Report •


Ask Question