Jump to content

Gosh's Unattended Tips And Tricks


Recommended Posts


  • 5 weeks later...

so when making a flat, if i have the batch copy the files to c:\i386 instead of c:\source\i386 i should make the registry file say:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
"SourcePath"="%systemroot%\\"
"ServicePackSourcePath"="%systemroot%\\"

and that should work?

Link to comment
Share on other sites

  • 1 month later...

Hi guys!

thx for those great tips gosh and all the rest of MSFN. im gonna make a unattended xp cd.

but i think there is a shorter way to set the %CDROM% variable

FOR %%d IN  (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\WIN51IP.SP1 SET CDROM=%%d

greets Climax

Link to comment
Share on other sites

no problem :) i got so many helpful things in here so i thought i must post something, too.

by the way the code works for installation of hotfixes for example so you haven't to write a line in your batch for every hotfix.

mfg climax

ps: im sorry for bad english...im german :rolleyes:

Link to comment
Share on other sites

Another way to get the source files copied over to the hard drive is to copy your I386 folder to $OEM$\$1

So it will be copied over durring the text mode part of setup.

This will only work if you are using CDImage.exe to create your ISO image. Just add switch "-o" to your create image batch file.

And I added these to my tweaks.reg file to redirect the OS to the new I386 folder:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
"Installation Sources"=hex(7):43,00,3a,00,5c,00,49,00,33,00,38,00,36,00,00,00,\
 00,00
"SourcePath"="C:"
"ServicePackSourcePath"="C:"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"SourcePath"="C:\\I386"

Link to comment
Share on other sites

@jazkal

does it work that when installing windows the i386 will be found in $OEM$\$1 or do you have to copy it on the cd twice?

but even if it works i think my way is easier and takes just 1 line in the batch...

climax

Link to comment
Share on other sites

On the CD, the I386 folder will be located in two different places:

\I386

\$OEM$\$1\I386

It won't take up any extra space as the "-o" switch merges the two directories. Actually, I noticed a 20mb decrease in overall ISO size the first time I used this method.

Link to comment
Share on other sites

I haven't tested it for time, but it does copy it very quickly.

I only put it here to give an alternative. I figured out this method before I read gosh's way. It saved me some space to put more apps on my CD, but you can do that with out the I386 folder anyway, just use the -o switch.

If I get some time, I'll run some time tests, don't know when though.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...