Jump to content

RunOnceEx.cmd


Recommended Posts

My RunOnceEx.cmd works great except for one line, the "Windows Media Connect" line. Do you think that Windows needs a reboot after Media Player is installed before the Media Connect can be installed properly? I've tried to run the command manulaly without any issues.... It's not craping out or anything, it seems like it is installing, but when I go to the update site to check out to see if it installed correctly, it's still a selection for download?

cmdow @ /HID

@Echo Off

rem PP=%SystemRoot%"\System32\RIS Installation Files\Applications\

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

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

REG ADD %KEY%\000 /VE /D "Microsoft SMS 2003 Client SP1" /f

REG ADD %KEY%\000 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\Ccmsetup.exe\" SMSSITECODE=CTR" /f

REG ADD %KEY%\010 /VE /D "Windows Media Player 10" /f

REG ADD %KEY%\010 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\MP10Setup.exe\" /Q:A /C:\"setup_wm.exe /Q:A /R:N\"" /f

REG ADD %KEY%\015 /VE /D "Windows Media Connect" /f

REG ADD %KEY%\015 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\WinRMSrv.msi\" /QN" /f

REM REG ADD %KEY%\020 /VE /D "Windows Media Player Codecs" /f

REM REG ADD %KEY%\020 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\codecs.msi\" /QN" /f

REG ADD %KEY%\025 /VE /D "HighMAT Support in the Windows XP CD Writing Wizard" /f

REG ADD %KEY%\025 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\KB831240.exe\" /QR" /f

REG ADD %KEY%\030 /VE /D "Microsoft Windows Journal Viewer" /f

REG ADD %KEY%\030 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\Microsoft Windows Journal Viewer.msi\" /QN" /f

REG ADD %KEY%\035 /VE /D ".NET Framework v1.1 w/ SP1" /f

REG ADD %KEY%\035 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\netfxsp1.exe\"" /f

REG ADD %KEY%\036 /VE /D ".NET Framework Security Update" /f

REG ADD %KEY%\036 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\NDP1.1sp1-KB886903-X86.exe\" /QN" /f

REG ADD %KEY%\040 /VE /D "Microsoft VM" /f

REG ADD %KEY%\040 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\JavaVM3186.exe\" /c:\"javatrig.exe /exe_install /l /qq\" /q:a /r:n" /f

REG ADD %KEY%\045 /VE /D "Microsoft VM Update" /f

REG ADD %KEY%\045 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\KB816093.exe\" /c:\"javatrig.exe /exe_install /l /qq\" /q:a /r:n" /f

REG ADD %KEY%\050 /VE /D "Microsoft Windows Malicious Software Removal Tool (v1.9)" /f

REG ADD %KEY%\050 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\KB890830-V1.9-ENU.exe\" /q" /f

REG ADD %KEY%\055 /VE /D "Windows Genuine Advantage" /f

REG ADD %KEY%\055 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\LegitCheckControl.msi\"" /f

REG ADD %KEY%\060 /VE /D "Importing Registry Tweaks" /f

REG ADD %KEY%\060 /V 1 /D "REGEDIT /S \"%systemRoot%\System32\RIS Installation Files\Batch Files\RunOnceEx_RegTweaks.reg\"" /f

REG ADD %KEY%\065 /VE /D "Administrator Rename" /f

REG ADD %KEY%\065 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Batch Files\Rename.vbs\" /f

REG ADD %KEY%\070 /VE /D "Cleanup" /f

REG ADD %KEY%\070 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Batch Files\RunOnceEx_Shutdown.cmd\" /f

EXIT

Link to comment
Share on other sites


Not entirely sure, everything looks OK. How about downloading wmcsetup.exe from (http://www.microsoft.com/downloads/details.aspx?FamilyID=56fd1b34-48ba-424b-9227-7c10e2e9fff1&displaylang=en), then using the command line:

<path>\wmcsetup.exe /q

I use that, and I've never had problems. Not sure where you got the MSI from.

Link to comment
Share on other sites

Cool - I have always installed MP10 and WMC one after the other with no problems - it looks like the MSI comes from wmcsetup.exe, but I'd be leery to use that. If wmcsetup.exe doesn't work, post back and I'll try to help from there.

Link to comment
Share on other sites

There is a script on the forum to automatise the integration of WMP10 ... after, to have the latest build you can get the update package of booggy and extract files directly to i386 ...

I let you search more on the forum, I must go to sleep now :)

Link to comment
Share on other sites

cluberti,

Argh, I had to make some modifications to my Autoexec.cmd for the installation of Windows Media Connect to take place. Namely the .Net installs had to be moved up in the installation chain do to dependencies. NOW my installations are not waiting/pausing until the first installation is done before proceeding. I don't think I messed anything up here. Can you take a quick look?

Argh!

cmdow @ /HID

@Echo Off

rem PP=%SystemRoot%"\System32\RIS Installation Files\Applications\

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

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

REG ADD %KEY%\000 /VE /D "Microsoft SMS 2003 Client SP1" /f

REG ADD %KEY%\000 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\Ccmsetup.exe\" SMSSITECODE=CTR" /f

REG ADD %KEY%\010 /VE /D ".NET Framework v1.1 w/ SP1" /f

REG ADD %KEY%\010 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\netfxsp1.exe\"" /f

REG ADD %KEY%\015 /VE /D ".NET Framework Security Update" /f

REG ADD %KEY%\015 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\NDP1.1sp1-KB886903-X86.exe\" /QN" /f

REG ADD %KEY%\020 /VE /D "Windows Media Player 10" /f

REG ADD %KEY%\020 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\MP10Setup.exe\" /Q:A /C:\"setup_wm.exe /Q:A /R:N\"" /f

REG ADD %KEY%\025 /VE /D "Windows Media Connect" /f

REG ADD %KEY%\025 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\wmcsetup.exe\" /Q" /f

REM REG ADD %KEY%\030 /VE /D "Windows Media Player Codecs" /f

REM REG ADD %KEY%\030 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\codecs.msi\" /QN" /f

REG ADD %KEY%\035 /VE /D "HighMAT Support in the Windows XP CD Writing Wizard" /f

REG ADD %KEY%\035 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\KB831240.exe\" /QR" /f

REG ADD %KEY%\040 /VE /D "Microsoft Windows Journal Viewer" /f

REG ADD %KEY%\040 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\Microsoft Windows Journal Viewer.msi\" /QN" /f

REG ADD %KEY%\045 /VE /D "Microsoft VM" /f

REG ADD %KEY%\045 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\JavaVM3186.exe\" /c:\"javatrig.exe /exe_install /l /qq\" /q:a /r:n" /f

REG ADD %KEY%\050 /VE /D "Microsoft VM Update" /f

REG ADD %KEY%\050 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\KB816093.exe\" /c:\"javatrig.exe /exe_install /l /qq\" /q:a /r:n" /f

REG ADD %KEY%\055 /VE /D "Microsoft Windows Malicious Software Removal Tool (v1.9)" /f

REG ADD %KEY%\055 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\KB890830-V1.9-ENU.exe\" /q" /f

REG ADD %KEY%\060 /VE /D "Windows Genuine Advantage" /f

REG ADD %KEY%\060 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Applications\LegitCheckControl.msi\"" /f

REG ADD %KEY%\065 /VE /D "Importing Registry Tweaks" /f

REG ADD %KEY%\065 /V 1 /D "REGEDIT /S \"%systemRoot%\System32\RIS Installation Files\Batch Files\RunOnceEx_RegTweaks.reg\"" /f

REG ADD %KEY%\070 /VE /D "Administrator Rename" /f

REG ADD %KEY%\070 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Batch Files\Rename.vbs\" /f

REG ADD %KEY%\075 /VE /D "Cleanup" /f

REG ADD %KEY%\075 /V 1 /D "\"%systemRoot%\System32\RIS Installation Files\Batch Files\RunOnceEx_Shutdown.cmd\" /f

EXIT

Link to comment
Share on other sites

If you've got timing issues, use the sleep.exe utility from one of the NT/2K/2K3 resource kits. I used to do it all the time, before I stopped using RunOnceEx regularly. It's not entirely the best way, but it works all of the time.

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