Zxian Posted October 13, 2005 Posted October 13, 2005 (edited) I'm stumped.... I'm trying to get the .NET Framework to install UA with RunOnceEx, but for some reason, it seems to just skip over that entry in the list.RunOnceEx:cmdow @ /HID@echo offFOR %%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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /VE /D "Avast AntiVirus Home Edition"REG ADD %KEY%\000 /V 1 /D "%CDROM%\Installs\Avast\setupeng.exe /VERYSILENT /NORESTART /SP-" /fREG ADD %KEY%\000 /V 2 /D "xcopy %CDROM%\Installs\Avast\avast4.ini \"%PROGRAMFILES%\Alwil Software\Avast\DATA\\" /Q /Y" /fREG ADD %KEY%\005 /VE /D "Sygate Personal Firewall"REG ADD %KEY%\005 /V 1 /D "%CDROM%\Installs\Sygate\spf.exe /QN Reboot=Supress" /fREG ADD %KEY%\010 /VE /D "Spybot S&D 1.4"REG ADD %KEY%\010 /V 1 /D "%CDROM%\Installs\SpybotSD\spybotsd14.exe /verysilent" /fREG ADD %KEY%\015 /VE /D "SpywareBlaster 3.4"REG ADD %KEY%\015 /V 1 /D "%CDROM%\Installs\SpywareBlaster\sb34setup.exe /verysilent" /fREG ADD %KEY%\020 /VE /D ".NET Framework"RED ADD %KEY%\020 /V 1 /D "%CDROM%\Installs\netfx\netfx.exe" /fREG ADD %KEY%\025 /VE /D "Java Runime Environment"REG ADD %KEY%\025 /V 1 /D "%CDROM%\Installs\JRE\jre505.exe" /fREG ADD %KEY%\030 /VE /D "Adobe Acrobat Reader 7.03"REG ADD %KEY%\030 /V 1 /D "%CDROM%\Installs\AcrobatReader\acroread703.exe" /fREG ADD %KEY%\035 /VE /D "Winamp 5.1"REG ADD %KEY%\035 /V 1 /D "%CDROM%\Installs\Winamp\Winamp5.1.msi INI=%CDROM%\Installs\Winamp\setup.ini /qn" /fREG ADD %KEY%\040 /VE /D "Nero 6.6.0.16"REG ADD %KEY%\040 /V 1 /D "%CDROM%\Installs\Nero\Nero_Custom_Setup.exe" /fREG ADD %KEY%\045 /VE /D "DirectShow FilterPack"REG ADD %KEY%\045 /V 1 /D "\"%PROGRAMFILES%\Media\FilterPack\install_all.bat\"" /fREG ADD %KEY%\050 /VE /D "PowerToys - Image Resizer"REG ADD %KEY%\050 /V 1 /D "%CDROM%\Installs\PowerToys\ImageResizerPowertoySetup.exe /S /v/qn" /fREG ADD %KEY%\051 /VE /D "PowerToys - ClearType Wizard"REG ADD %KEY%\051 /V 1 /D "%CDROM%\Installs\PowerToys\ClearTypeTuningWizardSetup.exe /S /v/qn" /fREG ADD %KEY%\052 /VE /D "PowerToys - SlideShow PowerToy"REG ADD %KEY%\052 /V 2 /D "%CDROM%\Installs\PowerToys\SlideshowPowertoySetup.exe /S /v/qn" /fREG ADD %KEY%\053 /VE /D "PowerToys - SyncToy"REG ADD %KEY%\053 /V 4 /D "%CDROM%\Installs\PowerToys\SyncToy.msi /qb" /fREG ADD %KEY%\054 /VE /D "PowerToys - TweakUI"REG ADD %KEY%\054 /V 5 /D "REGEDIT /S %CDROM%\Installs\PowerToys\TweakUI_CP.reg" /fREG ADD %KEY%\055 /VE /D "XPize 4.0 Final"REG ADD %KEY%\055 /V 1 /D "%CDROM%\Installs\XPize\XPize.exe /S /norestore /nocmd" /fREG ADD %KEY%\999 /VE /D "Restart"REG ADD %KEY%\999 /V 1 /D "shutdown -r -t 00" /fI've tried using RyanVM's installer, and also making my own using a guide that prathapml posted somewhere, but no luck with either. On their own, once Windows has finished installing, they install just fine, silently and without any errors.Everything else installs perfectly,except the Avast settings - but I'm working on those, and SyncToy, since that requires .NET. I can't see what I'm missing here.. it's probably just one character misplaced or something... Edited October 13, 2005 by Zxian
Halfwalker Posted October 13, 2005 Posted October 13, 2005 I'm using Ryans installer just fine. Looks like this in RunOnceEx.cmd ...REG ADD %KEY%\220 /VE /D ".NET Framework v1.1 with SP1" /fREG ADD %KEY%\220 /V 1 /D "%PP%\NET\netfxsp1.exe" /fD.
RyanVM Posted October 14, 2005 Posted October 14, 2005 If it's erroring out, you won't see it since the MSI is being run silently. Does it install OK after the fact? If the problem persists after Windows installs, then you can try decompressing it and running the MSI directly. At least then if it fails, you'll get an error message.If it passes post-install, you've probably got an error in your syntax somewhere. I don't use RunOnceEx, so I'm afraid I can't be of any more help than that, though.BTW, I'm assuming you renamed the exe from netfxsp1.exe to netfx.exe
Zxian Posted October 14, 2005 Author Posted October 14, 2005 Thanks RyanVM. I'll give that a shot.And yes, when I was using yours, my RunOnceEx had netfxsp1.exe as the command.
Zxian Posted October 15, 2005 Author Posted October 15, 2005 BAH!!!!!! BAH BAH BAH BAH BAH!!!! *grumble*REG ADD %KEY%\020 /VE /D ".NET Framework"RED ADD %KEY%\020 /V 1 /D "%CDROM%\Installs\netfx\netfx.exe" /fThat won't do anything at all in a batch file!!!! Stupid typos... 3 days!!! 3 days to find this! *slaps self*
Zxian Posted October 15, 2005 Author Posted October 15, 2005 Yeah... it's a pain in the butt...Also goes to show you that I don't use the RunOnceEx creator, like I probably should...
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