Jump to content

Unattended XP hangs on T-13 cause winamp


Recommended Posts

hi,

I install my programs with svcpack.inf.

when winamp copy customized winamp.ini to %appdata%\Winamp it hangs on.I try to look with shift+F10 and open command>taskmgr.

here is the screen;

windowsxpprofessional20.png

here is my batch;

@Echo Off
cwnd /HIDE @

start /wait wnp556.exe /S /install=DSRFQ audio=1 video=0 library=0
taskkill.exe /F /IM winamp.exe
taskkill.exe /F /IM winampa.exe
REGEDIT /S winamp.reg
md "%programfiles%\Winamp\Skins"
md "%programfiles%\Winamp\Plugins"
xcopy "Skins\*.*" "%programfiles%\Winamp\Skins" /i /s /e /r /v /f /c /h /y /q
xcopy "ini\winamp.ini" "%appdata%\Winamp" /i /s /e /r /v /f /c /h /y /q
xcopy "Plugins\*.*" "%programfiles%\Winamp\Plugins" /i /s /e /r /v /f /c /h /y /q
del "%programfiles%\Winamp\Plugins\gen_msn7.dll" /f /q
"%programfiles%\Winamp\eMusic\Uninst-eMusic-promotion.exe" /S
"%programfiles%\Winamp Toolbar\uninstall.exe" /S
taskkill.exe /F /IM OrbTray.exe
"%programfiles%\Winamp Remote\uninstall.exe" /S

ver | find "5.1" > nul
if %ERRORLEVEL% == 0 goto ver_xp

ver | find "6.0" > nul
if %ERRORLEVEL% == 0 goto ver_vista

ver | find "6.1" > nul
if %ERRORLEVEL% == 0 goto ver_7

echo Machine undetermined.
goto exit

:ver_xp
REM :Run Windows XP-specific commands here.
REM echo Windows XP
md "%systemdrive%\Documents and Settings\Default User\Application Data\Winamp"
xcopy "ini\winamp.ini" "%systemdrive%\Documents and Settings\Default User\Application Data\Winamp" /i /s /e /r /v /f /c /h /y /q
goto exit

:ver_vista
REM :Run Windows 2000-specific commands here.
REM echo Windows vista
md "%systemdrive%\Users\Default\AppData\Roaming\Winamp"
xcopy "ini\winamp.ini" "%systemdrive%\Users\Default\AppData\Roaming\Winamp" /i /s /e /r /v /f /c /h /y /q
goto exit

:ver_7
REM :Run Windows NT-specific commands here.
REM echo Windows win7
md "%systemdrive%\Users\Default\AppData\Roaming\Winamp"
xcopy "ini\winamp.ini" "%systemdrive%\Users\Default\AppData\Roaming\Winamp" /i /s /e /r /v /f /c /h /y /q
goto exit

:exit
EXIT
REM @Echo Off
REM cwnd /HIDE @

REM start /wait Setup.exe /S /NCRC
REM xcopy "add" "%appdata%" /e /h

after it copy skins folder, on here;

xcopy "ini\winamp.ini" "%appdata%\Winamp" /i /s /e /r /v /f /c /h /y /q

it hangs.

what is wrong I don't understand.

Link to comment
Share on other sites


It should be xcopy "ini\winamp.ini" "%appdata%\Winamp\winamp.ini" /i /s /e /r /v /f /c /h /y /q but it seems to be missing a switch because I get this prompt when I run the command...

Does C:\Documents and Settings\<username>\Application Data\Winamp\winamp.ini specify a file name or directory name on the target (F = file, D = directory)?
Link to comment
Share on other sites

finally, I found the right way.It tested xp and windows 7.

here is;

@Echo Off
cwnd /HIDE @

start /wait wnp556.exe /S /install=DSRFQ audio=1 video=0 library=0
taskkill.exe /F /IM winamp.exe
taskkill.exe /F /IM winampa.exe
REGEDIT /S winamp.reg
md "%programfiles%\Winamp\Skins"
md "%programfiles%\Winamp\Plugins"
xcopy "Skins\*.*" "%programfiles%\Winamp\Skins" /i /s /e /r /v /f /c /h /y /q
xcopy "Plugins\*.*" "%programfiles%\Winamp\Plugins" /i /s /e /r /v /f /c /h /y /q
del "%programfiles%\Winamp\Plugins\gen_msn7.dll" /f /q
"%programfiles%\Winamp\eMusic\Uninst-eMusic-promotion.exe" /S
"%programfiles%\Winamp Toolbar\uninstall.exe" /S
taskkill.exe /F /IM OrbTray.exe
"%programfiles%\Winamp Remote\uninstall.exe" /S

ver | find "5.1" > nul
if %ERRORLEVEL% == 0 goto ver_xp

ver | find "6.0" > nul
if %ERRORLEVEL% == 0 goto ver_vista

ver | find "6.1" > nul
if %ERRORLEVEL% == 0 goto ver_7

echo Machine undetermined.
goto exit

:ver_xp
REM :Run Windows XP-specific commands here.
REM echo Windows XP
md "%systemdrive%\Documents and Settings\Default User\Application Data\Winamp"
xcopy "winamp.ini" "%systemdrive%\Documents and Settings\Default User\Application Data\Winamp" /i /s /e /r /v /f /c /h /y /q
xcopy "winamp.ini" "%userprofile%\Application Data\Winamp" /e /h /y
goto exit

:ver_vista
REM :Run Windows 2000-specific commands here.
REM echo Windows vista
md "%systemdrive%\Users\Default\AppData\Roaming\Winamp"
xcopy "winamp.ini" "%systemdrive%\Users\Default\AppData\Roaming\Winamp" /i /s /e /r /v /f /c /h /y /q
xcopy "winamp.ini" "%userprofile%\AppData\Roaming\Winamp" /e /h /y
goto exit

:ver_7
REM :Run Windows NT-specific commands here.
REM echo Windows win7
md "%systemdrive%\Users\Default\AppData\Roaming\Winamp"
xcopy "winamp.ini" "%systemdrive%\Users\Default\AppData\Roaming\Winamp" /i /s /e /r /v /f /c /h /y /q
xcopy "winamp.ini" "%userprofile%\AppData\Roaming\Winamp" /e /h /y
goto exit

:exit
EXIT
REM @Echo Off
REM cwnd /HIDE @

REM start /wait Setup.exe /S /NCRC
REM xcopy "add" "%appdata%" /e /h

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