Jump to content

Recommended Posts

Posted

I can't seem to figure this one out. I have this command in my RunOnceEx.cmd file for installing Media Player 10:

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

REG ADD %KEY%\020 /V 1 /D "v:\Software\Microsoft\WindowsMediaPlayer\Version10\MP10Setup.exe" /Q:A /R:x /C:"setup_wm.exe /Q:A /R:N\" /f

If I run the statement shown in bold from the Run command it works (the v: drive mapping is working because other programs install during unattended from v: so I know it's not that) but it's not working during the unattended install.

Can someone help with this? I'm getting really frustrated and I know it's something simple I'm not seeing. :angry:

Thanks


Posted

I use this cmd to install WMP 10 from the Svcpack folder during the install, I have not recieved any errors

doing it this way.

echo off && CLS && mode 55,3 && color f1 && TITLE	 INSTALL WMP 10 && echo. && Echo Installing WMP10
Set WMPVBS=%SystemDrive%\WmpCup.vbs
>> %WMPVBS% Echo On Error Resume next
>> %WMPVBS% Echo Set Shell = WScript.CreateObject("WScript.Shell")
>> %WMPVBS% Echo Dim WMP : WMP = Shell.ExpandEnvironmentStrings("%SystemDrive%\TMPWMP10")
>> %WMPVBS% Echo Set fso = CreateObject("Scripting.FileSystemObject")
>> %WMPVBS% Echo fso.DeleteFolder(WMP)
>> %WMPVBS% Echo fso.DeleteFile("%WMPVBS%")
Ping -n 2 127.0.0.1>nul
start /w %systemdrive%\TMPWMP10\setup_wm.exe /DisallowSystemRestore /Q:A /R:N
CLS && Color f2 && Echo. && Echo Completed WMP10 && Ping -n 4 127.0.0.1>nul
start %WMPVBS%
Goto EOF
:EOF
exit

Posted

gunsmokingman or ryanVM - could you guys briefly explain to me the difference? I'm new at this and have only tried one method of installing apps and that's using the RunOnce method. I just recently changed this to point to installs I have on my network.

Thanks ahead of time for your help. :)

Posted

On my site, you'll find a CAB which is integrateable either via nLite or with the Integrator app found also on my site. It directly integrates WMP10 into the CD so that WMP10 directly replaces WMP9 from the start. It's the most efficient way to do things since it requires no extra time during setup to install and it uses the least amount of space since it's mostly overwriting existing files with new ones.

And as you'll probably see from my site, I'm big into direct integration :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...