Jump to content











Photo
- - - - -

How to change the "Programs" path

locations programs path chang

  • Please log in to reply
4 replies to this topic

#1 lqbweb

lqbweb
  • Members
  • 3 posts
  •  
    Germany

Posted 20 February 2017 - 10:10 PM

I am building my current Win7Pe project in Ram mode. Now, I get two drives Y (with "Programs"), and X (in memory).

 

For some reasons I want to have a separated partition with just Programs, without the Wim images. And then unmount my current Y:

 

I have managed to make a script that unmounts Y:, but how do I relocate now "Programs" in a proper manner? Should I edit manually the script "CdDrive X: Y:"?



#2 homes32

homes32

    Gold Member

  • .script developer
  • 1035 posts
  • Location:Minnesota
  •  
    United States

Posted 20 February 2017 - 11:19 PM

I really can't tell what your trying to accomplish.

 

X: is the booted .wim image containing the PE operating system

Y: the ROOT directory of whatever media your building it contains the boot.wim file that is mounted as X: and also programs separate from the .wim image (if your running from a CD/DVD/USB they are on the root of the disc. if your running from CD/DVD Y: is not writable)

 

there are several reasons why you might want to have the programs located in X: mostly if you are running from CD/DVD their directory will be writable (in case they need to read/write to a config file or download something) or if you are booting the image directly over PXE which only knows whats in the .wim...it can't see anything else.

 

reasons for running from Y: is that since they are not packed in the .wim image you can update them independent of rebuilding the project. it also makes building slightly faster as they don't have to be compressed into the .wim

 

lots of app scripts give you a checkbox or scrollbox to choose if you want to run from RAM (pack in .wim) or from CD (Y:)

if you want a different behavior then that you will need to rewrite the project to pack whatever programs you want into a separate .wim and mount it to a letter of your choosing



#3 lqbweb

lqbweb
  • Members
  • 3 posts
  •  
    Germany

Posted 20 February 2017 - 11:34 PM

I really can't tell what your trying to accomplish.

 

X: is the booted .wim image containing the PE operating system

Y: the ROOT directory of whatever media your building it contains the boot.wim file that is mounted as X: and also programs separate from the .wim image (if your running from a CD/DVD/USB they are on the root of the disc. if your running from CD/DVD Y: is not writable)

 

there are several reasons why you might want to have the programs located in X: mostly if you are running from CD/DVD their directory will be writable (in case they need to read/write to a config file or download something) or if you are booting the image directly over PXE which only knows whats in the .wim...it can't see anything else.

 

reasons for running from Y: is that since they are not packed in the .wim image you can update them independent of rebuilding the project. it also makes building slightly faster as they don't have to be compressed into the .wim

 

lots of app scripts give you a checkbox or scrollbox to choose if you want to run from RAM (pack in .wim) or from CD (Y:)

if you want a different behavior then that you will need to rewrite the project to pack whatever programs you want into a separate .wim and mount it to a letter of your choosing

 

Yes, I know. Good explanation, thanks.

 

I am booting from a writable media. I do not want to expose access to the bcd, wim images, etc. in Y:. Those files should be read only after it is boot. On the other hand, as you have said, it is very useful to have "Programs" outside the WIM image, to push some more software without having to rebuild all.

 

This is the reason why I want to unmount Y, and map "Programs" in another writable partition.



#4 Guest_AnonVendetta_*

Guest_AnonVendetta_*
  • Guests

Posted 21 February 2017 - 05:48 AM

This is the most comprehensive guide I know of on how to change the locations of Program Files/Program Files (x86)/ProgramData/Users. It's tested and known to work with 7/8/8.1, not sure about Vista and 10 but I imagine it would work there too. I've used this guide. I'm not sure if it will work as intended in a PE, if at all:

 

http://bbearren.com/...e/set7free.html



#5 lqbweb

lqbweb
  • Members
  • 3 posts
  •  
    Germany

Posted 21 February 2017 - 01:08 PM

Ok, I fixed it by changing "CdDrive X: Y:". I put a new textbox that configures the %CDDrive% for "[DriveY]". I propose to change it also in the official sources, it might be useful for other people. Also, it would be easy to allow the customization of DriveX as well....






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users