Jump to content

%CDROM% doesn't wanna play


Recommended Posts

I'm trying to install a few programs directly from the CD without doing the $OEM$\$1\ trick

And this is what my RunOnceEx.cmd looks like

cmdow @ /HID
@ECHO OFF

FOR %%i IN (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 %%i:\WIN51IP.SP2 SET CDROM=%%i:
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\001 /VE /D "Windows Messenger 5.1" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\messenger\messenger5.1.msi /qn" /f
REG ADD %KEY%\015 /VE /D ".NET Framework 2.0" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\netfx\dotnet2.exe" /f
REG ADD %KEY%\085 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\cleanup.cmd" /f
EXIT

Now, if I use this I'll just end up with 3 explorer windows listing the contents of my CDROM install disk.

I've more or less copied this directly from "Running RunOnceEx from CD"

so I don't understand why it's not working. Hopefully it's something obvious that you guys can point out straight away.

My CD looks like

$OEM$ DIR

I386 DIR

Software DIR

boot.bin File

WIN51 File

WIN51IP File

WIN51IP.SP2 File

I can get it to work if I put my Software folder under $OEM$\$1 and change %CDROM$ to %systemdrive%, but I want to do it from the CD.

And as a sidequestion

In my Winnt.sif I have

[Display]

BitsPerPel=32

Xresolution=1024

YResolution=768

Vrefresh=85

However I still end up with 800x600 and I have to change it myself to 1024x768

Ideas?

Link to comment
Share on other sites


It appears you have a space at the end of the following line.

FOR %%i IN (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 %%i:\WIN51IP.SP2 SET CDROM=%%i:

And I wasn't able to set my display resolution with winnt.sif until I

installed a WHQL driver. I couldn't even get it to work with the Microsoft

driver on the CD. But it's been awhile so it may have been something I

was doing wrong at the time.

Link to comment
Share on other sites

I told you it was something obvious :blushing:

Thanks for that. It would have taken me at least a couple of days to figure that out. I even had a

echo %CDROM% >> D:\cdrom.txt just to see that it was correct, but ofcourse I didn't notice the blank

space. :whistle:

I guess I have to figure out the display thingie now. Integrating catalyst 5.11 with nLite doesn't seem to do anything. It may be working and the problem is that I can't validate it via VMWare.

Link to comment
Share on other sites

The only way I noticed the space is I made a reg file of your post

and merged it in my registry. When I looked in the resistry it was

plain as day.

The hardware on Vmware and Virtual CP is emulated so it doesn't use

the drivers for your actual hardware.

Edited by jbm
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...