Jump to content

Recommended Posts

Posted

Hi!

I'm new to this forum. I found it and unattended.msfn.org very useful. One thing that, as I think, needs a little improvement is “Running RunOnceEx from CD” page. I don’t even know if this forum is a proper place to post propositions of modifications to unattended site but I haven’t found any other.

So, enough talking, here is my method: Instead of typing these “IF EXIST X:\CD.txt set CDROM=X:” lines, creating special files etc., I propose simple modification of RunOnceEx.cmd

!Warning! I assume that you have read http://unattended.msfn.org/xp/runonceex_cd.htm as this post describes only modifications to that guide.

for /F "Skip=3 Tokens=3" %%I in ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v Sourcepath') Do Set CDPath=%%I

After inserting this line before REG ADD lines you have to change all occurrences of "%systemdrive%\install” to “%CDPath%$OEM$\Install” (that's right without backslash, because it's already in CDPath) or wherever you keep your installation files.

Happy unattending. ;)


Posted

This only works for one CD installs, or if the files your want to install are in your XP Source path. Otherwise, back to the IF EXIST.

And just so you know, this has been posted before :P But thanks for posting.

Posted

Hi Alanoll!

This only works for one CD installs, or if the files your want to install are in your XP Source path.

Well, where else could they be, assuming that I'm installing Windows from CD and I want to run installation programs also from there (that's what “Running RunOnceEx from CD” is all about, isn't it)? I'm only asking, I really don't know.

Thanks in advance.

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...