Jump to content

%systemdrive% to %CDROM% problems


Recommended Posts

Hi

I've made the switch from the $oem$\$\install to %CDROM%. Most apps run fine, but I'm have a few problems with:

.NET, Calc PowerToy, and Task Switch Powertoy. They worked fine without modification in the $oem$\$\install situation.

ECHO.
ECHO Installing .NET Framework v1.1
ECHO Please wait...
start /wait %CDROM%\Software\NetFramework\netfx.msi /qb

I get a "Please insert the disk: Microsoft .NET Framework 1.1" error.

ECHO.
ECHO Installing Calculator Powertoy
ECHO Please wait...
start /wait %CDROM%\Software\PowerToysXP\Calcul~1.msi /qn

ECHO.
ECHO Installing Task Switcher Powertoy
ECHO Please wait...
start /wait %CDROM%\Software\PowerToysXP\Alt-Ta~1.msi /qn

For both powertoys tools I get a file not found error. If I replace %CDROM% with D:\XPCD\ it will install fine. The %CDROM% variable maps to the correct drive letter.

Why is this not working?

Thanks for any help.

Kind regards,

eNuffSaid

Link to comment
Share on other sites


No problems with the Task Switcher powertoy installing from CD-ROM, I used the full path of the filename though: TaskswitchPowertoySetup.exe /s

And the .NET Framework is repackaged in IExpress.

Is it only the msi installers you're having trouble with?

Link to comment
Share on other sites

MovieMaker2, AcrobatReader, and MSN 6.1 install without problems

start /wait %CDROM%\Software\MM2\mm20.msi /qn

start /wait %CDROM%\Software\Applications\AdobeReader6\AR6.msi /QB

start /wait %CDROM%\Software\MSN\MsnMsgs.msi /QB

I'm also having problems with WinDVD

start /wait %CDROM%\Software\Applications\WinDVD\Setup.exe -s -f1 "%CDROM%\Software\Applications\WinDVD\setup.iss"

I think its because the %CDROM% variable is inside the quotes. But if I remove the quotes, it won't install either.

Other than that, yes the only problems I'm having are with the .msi installers. I'm thinking its because they are being installed from ReadOnly media, but then why do other .msi packages install correctly.

I use the 8.3 notation in my powertools because the .msi installer names are long and have spaces in them. If I remember correctly I've tried renaming them, and that would give problems during installation too.

Thanks for any help. Kind regards,

eNuffSaid

Link to comment
Share on other sites

my work for the .net framework it to keep it has the only item that gets copied over from the cd and install as usual, and then have the directory deleted be4 rebooting.

here is a list of items i have had no prolems installing from the cd (if it helps):

DX 9.0b

Movie Maker 2.0

Windows Journal Viewer 1.5

Windows Messenger 5.0

Adobe Reader 6.0

VB 6.0

MS JavaVM - Build 3810

XP-Tweaks 3.0

WMP 9.0

WMP update

MS Baseline Security Analyzer 1.1.1

Opera 7.5 Version 3

RJH Extension

QuickTime

WinRar 3.2

ImageResizer Powertoy

PowerCalc Powertoy

Alt-tab Replacement Powertoy

TweakUI 2.10 Powertoy

Sun Java VM 1.4.2

WinAmp 5.0

Flash Player 7.0

Shockwave

Registry Tweaks

(the following are run through a .cmd file but still installs from the cdrom)

Hotfixes 1

Hotfixes 2

Cleanup

Link to comment
Share on other sites

@Diesel

my work for the .net framework it to keep it has the only item that gets copied over from the cd and install as usual, and then have the directory deleted be4 rebooting.

I was hoping to avoid this. I'd like to install all my apps from CD. Otherwise it looks like I'll be installing WinDVD, PowerCalc, PowerTaskSwitch, and .NET from the $oem$\$\install. That's 4 apps already!

Diesel, what do you use to install Alt-Tab and PowerCalc PowerToys?

@XKnoppix

Looks that way, for me atleast... :)

regards,

eNuffSaid

Link to comment
Share on other sites

hmmmm...

XPC somehow gets it to work i thought......

@XKnoppix

the reasoning behind the variable it quite simple. After the batch executes its GONE.

When you run the batch, all instances of %CDROM% should be replaced prior to being inputed into the registry, so you have a value drive letter. RunOnceEX doesn't like variables when it calls programs, so this gets around it.

Last i saw in your runonceex.cmd file, you were missing the IF EXIST commands to actually assign CDROM a value

Link to comment
Share on other sites

Here's my latest RunOnceEx.cmd

cmdow @ /HID
@echo off

IF EXIST C:\WIN51IP.SP1 set CDROM=C:
IF EXIST D:\WIN51IP.SP1 set CDROM=D:
IF EXIST E:\WIN51IP.SP1 set CDROM=E:
IF EXIST F:\WIN51IP.SP1 set CDROM=F:
IF EXIST G:\WIN51IP.SP1 set CDROM=G:
IF EXIST H:\WIN51IP.SP1 set CDROM=H:
IF EXIST I:\WIN51IP.SP1 set CDROM=I:
IF EXIST J:\WIN51IP.SP1 set CDROM=J:
IF EXIST K:\WIN51IP.SP1 set CDROM=K:
IF EXIST L:\WIN51IP.SP1 set CDROM=L:
IF EXIST M:\WIN51IP.SP1 set CDROM=M:
IF EXIST N:\WIN51IP.SP1 set CDROM=N:
IF EXIST O:\WIN51IP.SP1 set CDROM=O:
IF EXIST P:\WIN51IP.SP1 set CDROM=P:
IF EXIST Q:\WIN51IP.SP1 set CDROM=Q:
IF EXIST R:\WIN51IP.SP1 set CDROM=R:
IF EXIST S:\WIN51IP.SP1 set CDROM=S:
IF EXIST T:\WIN51IP.SP1 set CDROM=T:
IF EXIST U:\WIN51IP.SP1 set CDROM=U:
IF EXIST V:\WIN51IP.SP1 set CDROM=V:
IF EXIST W:\WIN51IP.SP1 set CDROM=W:
IF EXIST X:\WIN51IP.SP1 set CDROM=X:
IF EXIST Y:\WIN51IP.SP1 set CDROM=Y:
IF EXIST Z:\WIN51IP.SP1 set CDROM=Z:

REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v RunOnceEx /f >NUL

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\010 /VE /D "ATI Drivers" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Applications\ATI\Driver\Setup.exe -s -f1%CDROM%\Applications\ATI\Driver\setup.iss" /f

REG ADD %KEY%\020 /VE /D "ATI Control Panel" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Applications\ATI\Control\Setup.exe -s -f1%CDROM%\Applications\ATI\Control\setup.iss" /f

REG ADD %KEY%\030 /VE /D "Adobe Acrobat Reader" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Applications\AdobeReader6\AR6.msi /QN" /f

REG ADD %KEY%\040 /VE /D "Microsoft .Net Framework" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\Applications\NetFramework\netfx.msi /QN" /f

REG ADD %KEY%\050 /VE /D "Nero Burning Rom" /f
REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %CDROM%\Registry\nero.reg" /f
REG ADD %KEY%\050 /V 2 /D "%CDROM%\Applications\Nero\Nero6009.exe /no_ui /silent /noreboot" /f

REG ADD %KEY%\060 /VE /D "Windows Media Player 9" /f
REG ADD %KEY%\060 /V 1 /D "%CDROM%\Applications\WMP9\MPSetupXP.exe /Q:A /R:N" /f

REG ADD %KEY%\070 /VE /D "Registering Video Codecs" /f
REG ADD %KEY%\070 /V 1 /D "regsvr32.exe %systemroot%\system32\xvid.ax /s" /f
REG ADD %KEY%\070 /V 2 /D "regsvr32.exe %systemroot%\system32\divxdec.ax /s" /f
REG ADD %KEY%\070 /V 3 /D "regsvr32.exe %systemroot%\system32\ac3filter.ax /s" /f

REG ADD %KEY%\080 /VE /D "Registering mIRC" /f
REG ADD %KEY%\080 /V 1 /D "REGEDIT /S %CDROM%\Registry\mirc.reg" /f

REG ADD %KEY%\090 /VE /D "MSN Messenger 6.1" /f
REG ADD %KEY%\090 /V 1 /D "%CDROM%\Applications\MSN\MsnMsgs.msi /QN" /f

REG ADD %KEY%\100 /VE /D "WinRAR 3.30" /f
REG ADD %KEY%\100 /V 1 /D "%CDROM%\Applications\WinRAR\wrar330.exe /s" /f

REG ADD %KEY%\110 /VE /D "Hauppauge WinTV Drivers" /f
REG ADD %KEY%\110 /V 1 /D "%CDROM%\Applications\WinTV\whql.exe /s" /f
REG ADD %KEY%\110 /V 2 /D "taskkill.exe /F /IM whql.exe" /f

REG ADD %KEY%\120 /VE /D "CDRWIN 3.9f" /f
REG ADD %KEY%\120 /V 1 /D "%CDROM%\Applications\CDRWIN\cdrwin.exe /s" /f
REG ADD %KEY%\120 /V 2 /D "cmd.exe /c xcopy /y %CDROM%\Applications\CDRWIN\Cdrwin.dat \"%systemdrive%\CDRWIN3\\"" /f

REG ADD %KEY%\130 /VE /D "**** NFO Viewer" /f
REG ADD %KEY%\130 /V 1 /D "%CDROM%\Applications\****\****.msi /QN" /f

REG ADD %KEY%\140 /VE /D "Warez P2P Client" /f
REG ADD %KEY%\140 /V 1 /D "%CDROM%\Applications\Warez\warez.exe /S" /f

REG ADD %KEY%\150 /VE /D "Longhorn Transformation Pack" /f
REG ADD %KEY%\150 /V 1 /D "%CDROM%\Applications\Longhorn\LTP.exe /s" /f
REG ADD %KEY%\150 /V 2 /D "taskkill.exe /F /IM LTP.exe" /f

REG ADD %KEY%\160 /VE /D "Applying Registry Tweaks" /f
REG ADD %KEY%\160 /V 1 /D "REGEDIT /S %CDROM%\Registry\tweaks.reg" /f

REG ADD %KEY%\170 /VE /D "Enabling Windows File Protection" /f
REG ADD %KEY%\170 /V 1 /D "REGEDIT /S %CDROM%\Registry\wfp.reg" /f

REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /V Cleanup /D "%CDROM%\Batch\cleanup.cmd"

EXIT

How's it looking?

Link to comment
Share on other sites

What do you mean "i'm gonna reboot after installin everything?" Of course i am. Plus where do you see restart in that whole file? And here's my cleanup .cmd

cmdow @ /HID
@echo off

REG DELETE HKLM\software\Microsoft\Windows\CurrentVersion\Run /V "Cleanup" /f

DEL "%systemroot%\*.bmp"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"

DEL "%systemdrive%\hcwclear.txt"
RD /S /Q %systemdrive%\Documents and Settings\Kyle\Favorites\Favorites

net user aspnet /delete

RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\install
RD /S /Q %allusersprofile%\Start Menu\Programs\PrintMe Internet Printing

DEL "%allusersprofile%\Desktop\*.lnk"
DEL "%userprofile%\Desktop\*.lnk"

attrib -R "%programfiles%\mIRC\*.*" /S /D
attrib -R "%programfiles%\FlashFXP\*.*" /S /D
attrib -R "%programfiles%\Regshot\*.*" /S /D
attrib -R "%allusersprofile%\Application Data\Microsoft\Network\Connections\Pbk\*.*" /S /D

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"

EXIT

I don't think i understand what your saying? :)

Link to comment
Share on other sites

where are you doing multiple reboots?

How would i register if for multiple boots?

or do you just want it for later use after you done installing everything?

as for your runonceex batch, be sure your paths are correct. If you get errors and don't correct your paths, I'm not gonna have any sympathy. Remember CDROM is the drive letter and colon and that's it.

though the dude does have a good point, why do you run Cleanup from Run instead of RunOnceEX? preference, or you have no idea what you're doing? :)

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