Jump to content

Recommended Posts

Posted (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 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 Programs" /f

REG ADD %KEY%\000 /VE /D "Avast AntiVirus Home Edition"
REG ADD %KEY%\000 /V 1 /D "%CDROM%\Installs\Avast\setupeng.exe /VERYSILENT /NORESTART /SP-" /f
REG ADD %KEY%\000 /V 2 /D "xcopy %CDROM%\Installs\Avast\avast4.ini \"%PROGRAMFILES%\Alwil Software\Avast\DATA\\" /Q /Y" /f

REG ADD %KEY%\005 /VE /D "Sygate Personal Firewall"
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Installs\Sygate\spf.exe /QN Reboot=Supress" /f

REG ADD %KEY%\010 /VE /D "Spybot S&D 1.4"
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Installs\SpybotSD\spybotsd14.exe /verysilent" /f

REG ADD %KEY%\015 /VE /D "SpywareBlaster 3.4"
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Installs\SpywareBlaster\sb34setup.exe /verysilent" /f

REG ADD %KEY%\020 /VE /D ".NET Framework"
RED ADD %KEY%\020 /V 1 /D "%CDROM%\Installs\netfx\netfx.exe" /f

REG ADD %KEY%\025 /VE /D "Java Runime Environment"
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Installs\JRE\jre505.exe" /f

REG ADD %KEY%\030 /VE /D "Adobe Acrobat Reader 7.03"
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Installs\AcrobatReader\acroread703.exe" /f

REG 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" /f

REG ADD %KEY%\040 /VE /D "Nero 6.6.0.16"
REG ADD %KEY%\040 /V 1 /D "%CDROM%\Installs\Nero\Nero_Custom_Setup.exe" /f

REG ADD %KEY%\045 /VE /D "DirectShow FilterPack"
REG ADD %KEY%\045 /V 1 /D "\"%PROGRAMFILES%\Media\FilterPack\install_all.bat\"" /f

REG ADD %KEY%\050 /VE /D "PowerToys - Image Resizer"
REG ADD %KEY%\050 /V 1 /D "%CDROM%\Installs\PowerToys\ImageResizerPowertoySetup.exe /S /v/qn" /f
REG ADD %KEY%\051 /VE /D "PowerToys - ClearType Wizard"
REG ADD %KEY%\051 /V 1 /D "%CDROM%\Installs\PowerToys\ClearTypeTuningWizardSetup.exe /S /v/qn" /f
REG ADD %KEY%\052 /VE /D "PowerToys - SlideShow PowerToy"
REG ADD %KEY%\052 /V 2 /D "%CDROM%\Installs\PowerToys\SlideshowPowertoySetup.exe /S /v/qn" /f
REG ADD %KEY%\053 /VE /D "PowerToys - SyncToy"
REG ADD %KEY%\053 /V 4 /D "%CDROM%\Installs\PowerToys\SyncToy.msi /qb" /f
REG ADD %KEY%\054 /VE /D "PowerToys - TweakUI"
REG ADD %KEY%\054 /V 5 /D "REGEDIT /S %CDROM%\Installs\PowerToys\TweakUI_CP.reg" /f

REG ADD %KEY%\055 /VE /D "XPize 4.0 Final"
REG ADD %KEY%\055 /V 1 /D "%CDROM%\Installs\XPize\XPize.exe /S /norestore /nocmd" /f

REG ADD %KEY%\999 /VE /D "Restart"
REG ADD %KEY%\999 /V 1 /D "shutdown -r -t 00" /f

I'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 by Zxian

Posted

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" /f
REG ADD %KEY%\220 /V 1 /D "%PP%\NET\netfxsp1.exe" /f

D.

Posted

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

Posted

Thanks RyanVM. I'll give that a shot.

And yes, when I was using yours, my RunOnceEx had netfxsp1.exe as the command.

Posted

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" /f

That won't do anything at all in a batch file!!!! Stupid typos... 3 days!!! 3 days to find this! *slaps self*

Posted

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

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