enuffsaid Posted March 28, 2004 Share Posted March 28, 2004 HiI'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.1ECHO Please wait...start /wait %CDROM%\Software\NetFramework\netfx.msi /qbI get a "Please insert the disk: Microsoft .NET Framework 1.1" error.ECHO.ECHO Installing Calculator PowertoyECHO Please wait...start /wait %CDROM%\Software\PowerToysXP\Calcul~1.msi /qnECHO.ECHO Installing Task Switcher PowertoyECHO Please wait...start /wait %CDROM%\Software\PowerToysXP\Alt-Ta~1.msi /qnFor 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 More sharing options...
Aaron Posted March 28, 2004 Share Posted March 28, 2004 No problems with the Task Switcher powertoy installing from CD-ROM, I used the full path of the filename though: TaskswitchPowertoySetup.exe /sAnd 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 More sharing options...
enuffsaid Posted March 28, 2004 Author Share Posted March 28, 2004 MovieMaker2, AcrobatReader, and MSN 6.1 install without problemsstart /wait %CDROM%\Software\MM2\mm20.msi /qnstart /wait %CDROM%\Software\Applications\AdobeReader6\AR6.msi /QBstart /wait %CDROM%\Software\MSN\MsnMsgs.msi /QBI'm also having problems with WinDVDstart /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 More sharing options...
XKnoppix Posted March 28, 2004 Share Posted March 28, 2004 @enuffsaidWhat's the code you put in your RunOnceEx.cmd that registered %CDROM% as an enviromental variable? How would i register if for multiple boots?Thanks Link to comment Share on other sites More sharing options...
enuffsaid Posted March 28, 2004 Author Share Posted March 28, 2004 I dont use RunOnceEx, I use GUIRunOnce.Regards,eNuffSaid Link to comment Share on other sites More sharing options...
XKnoppix Posted March 28, 2004 Share Posted March 28, 2004 I just mean how do you register %CDROM%?I don't care if it's a batch file Link to comment Share on other sites More sharing options...
enuffsaid Posted March 28, 2004 Author Share Posted March 28, 2004 Sorry, I'm not really sure what you're asking. But I used this as my guide:Running RunOnceEx from CDHope that helps. Regards,eNuffSaid Link to comment Share on other sites More sharing options...
diesel_98a Posted March 28, 2004 Share Posted March 28, 2004 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.0bMovie Maker 2.0Windows Journal Viewer 1.5Windows Messenger 5.0Adobe Reader 6.0VB 6.0MS JavaVM - Build 3810XP-Tweaks 3.0WMP 9.0WMP updateMS Baseline Security Analyzer 1.1.1Opera 7.5 Version 3RJH ExtensionQuickTimeWinRar 3.2ImageResizer PowertoyPowerCalc PowertoyAlt-tab Replacement PowertoyTweakUI 2.10 PowertoySun Java VM 1.4.2WinAmp 5.0Flash Player 7.0ShockwaveRegistry Tweaks(the following are run through a .cmd file but still installs from the cdrom)Hotfixes 1Hotfixes 2Cleanup Link to comment Share on other sites More sharing options...
XKnoppix Posted March 28, 2004 Share Posted March 28, 2004 Some Programs Don't install from CD? Link to comment Share on other sites More sharing options...
enuffsaid Posted March 28, 2004 Author Share Posted March 28, 2004 @Dieselmy 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?@XKnoppixLooks that way, for me atleast... regards,eNuffSaid Link to comment Share on other sites More sharing options...
Alanoll Posted March 28, 2004 Share Posted March 28, 2004 hmmmm...XPC somehow gets it to work i thought......@XKnoppixthe 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 More sharing options...
XKnoppix Posted March 28, 2004 Share Posted March 28, 2004 Here's my latest RunOnceEx.cmdcmdow @ /HID@echo offIF 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 >NULSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\010 /VE /D "ATI Drivers" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\Applications\ATI\Driver\Setup.exe -s -f1%CDROM%\Applications\ATI\Driver\setup.iss" /fREG ADD %KEY%\020 /VE /D "ATI Control Panel" /fREG ADD %KEY%\020 /V 1 /D "%CDROM%\Applications\ATI\Control\Setup.exe -s -f1%CDROM%\Applications\ATI\Control\setup.iss" /fREG ADD %KEY%\030 /VE /D "Adobe Acrobat Reader" /fREG ADD %KEY%\030 /V 1 /D "%CDROM%\Applications\AdobeReader6\AR6.msi /QN" /fREG ADD %KEY%\040 /VE /D "Microsoft .Net Framework" /fREG ADD %KEY%\040 /V 1 /D "%CDROM%\Applications\NetFramework\netfx.msi /QN" /fREG ADD %KEY%\050 /VE /D "Nero Burning Rom" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %CDROM%\Registry\nero.reg" /fREG ADD %KEY%\050 /V 2 /D "%CDROM%\Applications\Nero\Nero6009.exe /no_ui /silent /noreboot" /fREG ADD %KEY%\060 /VE /D "Windows Media Player 9" /fREG ADD %KEY%\060 /V 1 /D "%CDROM%\Applications\WMP9\MPSetupXP.exe /Q:A /R:N" /fREG ADD %KEY%\070 /VE /D "Registering Video Codecs" /fREG ADD %KEY%\070 /V 1 /D "regsvr32.exe %systemroot%\system32\xvid.ax /s" /fREG ADD %KEY%\070 /V 2 /D "regsvr32.exe %systemroot%\system32\divxdec.ax /s" /fREG ADD %KEY%\070 /V 3 /D "regsvr32.exe %systemroot%\system32\ac3filter.ax /s" /fREG ADD %KEY%\080 /VE /D "Registering mIRC" /fREG ADD %KEY%\080 /V 1 /D "REGEDIT /S %CDROM%\Registry\mirc.reg" /fREG ADD %KEY%\090 /VE /D "MSN Messenger 6.1" /fREG ADD %KEY%\090 /V 1 /D "%CDROM%\Applications\MSN\MsnMsgs.msi /QN" /fREG ADD %KEY%\100 /VE /D "WinRAR 3.30" /fREG ADD %KEY%\100 /V 1 /D "%CDROM%\Applications\WinRAR\wrar330.exe /s" /fREG ADD %KEY%\110 /VE /D "Hauppauge WinTV Drivers" /fREG ADD %KEY%\110 /V 1 /D "%CDROM%\Applications\WinTV\whql.exe /s" /fREG ADD %KEY%\110 /V 2 /D "taskkill.exe /F /IM whql.exe" /fREG ADD %KEY%\120 /VE /D "CDRWIN 3.9f" /fREG ADD %KEY%\120 /V 1 /D "%CDROM%\Applications\CDRWIN\cdrwin.exe /s" /fREG ADD %KEY%\120 /V 2 /D "cmd.exe /c xcopy /y %CDROM%\Applications\CDRWIN\Cdrwin.dat \"%systemdrive%\CDRWIN3\\"" /fREG ADD %KEY%\130 /VE /D "**** NFO Viewer" /fREG ADD %KEY%\130 /V 1 /D "%CDROM%\Applications\****\****.msi /QN" /fREG ADD %KEY%\140 /VE /D "Warez P2P Client" /fREG ADD %KEY%\140 /V 1 /D "%CDROM%\Applications\Warez\warez.exe /S" /fREG ADD %KEY%\150 /VE /D "Longhorn Transformation Pack" /fREG ADD %KEY%\150 /V 1 /D "%CDROM%\Applications\Longhorn\LTP.exe /s" /fREG ADD %KEY%\150 /V 2 /D "taskkill.exe /F /IM LTP.exe" /fREG ADD %KEY%\160 /VE /D "Applying Registry Tweaks" /fREG ADD %KEY%\160 /V 1 /D "REGEDIT /S %CDROM%\Registry\tweaks.reg" /fREG ADD %KEY%\170 /VE /D "Enabling Windows File Protection" /fREG ADD %KEY%\170 /V 1 /D "REGEDIT /S %CDROM%\Registry\wfp.reg" /fREG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /V Cleanup /D "%CDROM%\Batch\cleanup.cmd"EXITHow's it looking? Link to comment Share on other sites More sharing options...
evilvoice Posted March 28, 2004 Share Posted March 28, 2004 hmmm are you gonna reboot after installin everything...also why do you run cleanup from run instead of runonceex? Link to comment Share on other sites More sharing options...
XKnoppix Posted March 28, 2004 Share Posted March 28, 2004 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 .cmdcmdow @ /HID@echo offREG DELETE HKLM\software\Microsoft\Windows\CurrentVersion\Run /V "Cleanup" /fDEL "%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\Favoritesnet user aspnet /deleteRD /S /Q %systemdrive%\DriversRD /S /Q %systemdrive%\installRD /S /Q %allusersprofile%\Start Menu\Programs\PrintMe Internet PrintingDEL "%allusersprofile%\Desktop\*.lnk"DEL "%userprofile%\Desktop\*.lnk"attrib -R "%programfiles%\mIRC\*.*" /S /Dattrib -R "%programfiles%\FlashFXP\*.*" /S /Dattrib -R "%programfiles%\Regshot\*.*" /S /Dattrib -R "%allusersprofile%\Application Data\Microsoft\Network\Connections\Pbk\*.*" /S /Dshutdown.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!"EXITI don't think i understand what your saying? Link to comment Share on other sites More sharing options...
Alanoll Posted March 28, 2004 Share Posted March 28, 2004 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now