ZEUS__ Posted November 22, 2009 Posted November 22, 2009 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;here is my batch;@Echo Offcwnd /HIDE @start /wait wnp556.exe /S /install=DSRFQ audio=1 video=0 library=0taskkill.exe /F /IM winamp.exetaskkill.exe /F /IM winampa.exeREGEDIT /S winamp.regmd "%programfiles%\Winamp\Skins"md "%programfiles%\Winamp\Plugins"xcopy "Skins\*.*" "%programfiles%\Winamp\Skins" /i /s /e /r /v /f /c /h /y /qxcopy "ini\winamp.ini" "%appdata%\Winamp" /i /s /e /r /v /f /c /h /y /qxcopy "Plugins\*.*" "%programfiles%\Winamp\Plugins" /i /s /e /r /v /f /c /h /y /qdel "%programfiles%\Winamp\Plugins\gen_msn7.dll" /f /q"%programfiles%\Winamp\eMusic\Uninst-eMusic-promotion.exe" /S"%programfiles%\Winamp Toolbar\uninstall.exe" /Staskkill.exe /F /IM OrbTray.exe"%programfiles%\Winamp Remote\uninstall.exe" /Sver | find "5.1" > nulif %ERRORLEVEL% == 0 goto ver_xpver | find "6.0" > nulif %ERRORLEVEL% == 0 goto ver_vistaver | find "6.1" > nulif %ERRORLEVEL% == 0 goto ver_7echo Machine undetermined.goto exit:ver_xpREM :Run Windows XP-specific commands here.REM echo Windows XPmd "%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 /qgoto exit:ver_vistaREM :Run Windows 2000-specific commands here.REM echo Windows vistamd "%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 /qgoto exit:ver_7REM :Run Windows NT-specific commands here.REM echo Windows win7md "%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 /qgoto exit:exitEXITREM @Echo OffREM cwnd /HIDE @REM start /wait Setup.exe /S /NCRCREM xcopy "add" "%appdata%" /e /hafter it copy skins folder, on here;xcopy "ini\winamp.ini" "%appdata%\Winamp" /i /s /e /r /v /f /c /h /y /qit hangs.what is wrong I don't understand.
iamtheky Posted November 23, 2009 Posted November 23, 2009 (edited) Maybe i am missing something...Where do you establish the variable?set programfiles=??*yeah imatard. Edited November 23, 2009 by iamtheky
ZEUS__ Posted November 23, 2009 Author Posted November 23, 2009 I don't set anything. it's default value.
Guest Posted November 23, 2009 Posted November 23, 2009 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)?
ZEUS__ Posted November 24, 2009 Author Posted November 24, 2009 finally, I found the right way.It tested xp and windows 7.here is;@Echo Offcwnd /HIDE @start /wait wnp556.exe /S /install=DSRFQ audio=1 video=0 library=0taskkill.exe /F /IM winamp.exetaskkill.exe /F /IM winampa.exeREGEDIT /S winamp.regmd "%programfiles%\Winamp\Skins"md "%programfiles%\Winamp\Plugins"xcopy "Skins\*.*" "%programfiles%\Winamp\Skins" /i /s /e /r /v /f /c /h /y /qxcopy "Plugins\*.*" "%programfiles%\Winamp\Plugins" /i /s /e /r /v /f /c /h /y /qdel "%programfiles%\Winamp\Plugins\gen_msn7.dll" /f /q"%programfiles%\Winamp\eMusic\Uninst-eMusic-promotion.exe" /S"%programfiles%\Winamp Toolbar\uninstall.exe" /Staskkill.exe /F /IM OrbTray.exe"%programfiles%\Winamp Remote\uninstall.exe" /Sver | find "5.1" > nulif %ERRORLEVEL% == 0 goto ver_xpver | find "6.0" > nulif %ERRORLEVEL% == 0 goto ver_vistaver | find "6.1" > nulif %ERRORLEVEL% == 0 goto ver_7echo Machine undetermined.goto exit:ver_xpREM :Run Windows XP-specific commands here.REM echo Windows XPmd "%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 /qxcopy "winamp.ini" "%userprofile%\Application Data\Winamp" /e /h /ygoto exit:ver_vistaREM :Run Windows 2000-specific commands here.REM echo Windows vistamd "%systemdrive%\Users\Default\AppData\Roaming\Winamp"xcopy "winamp.ini" "%systemdrive%\Users\Default\AppData\Roaming\Winamp" /i /s /e /r /v /f /c /h /y /qxcopy "winamp.ini" "%userprofile%\AppData\Roaming\Winamp" /e /h /ygoto exit:ver_7REM :Run Windows NT-specific commands here.REM echo Windows win7md "%systemdrive%\Users\Default\AppData\Roaming\Winamp"xcopy "winamp.ini" "%systemdrive%\Users\Default\AppData\Roaming\Winamp" /i /s /e /r /v /f /c /h /y /qxcopy "winamp.ini" "%userprofile%\AppData\Roaming\Winamp" /e /h /ygoto exit:exitEXITREM @Echo OffREM cwnd /HIDE @REM start /wait Setup.exe /S /NCRCREM xcopy "add" "%appdata%" /e /h
Sp0iLedBrAt Posted November 24, 2009 Posted November 24, 2009 A friend of mine also used taskkill for the winamp agent .exe. That could also help.
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