Aimp

Silent installer for Aimp a media player like Winamp. More information from aimp.ru

Need to wait some seconds while uninstallation. I dont know, how to do this except command ping. Because timeout not work.

<package
	id="aimp"
	name="AIMP"
	revision="%PKG_VERSION%"
	reboot="false"
	priority="0">

	<variable name="PKG_VERSION"		value="4.60.2180" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\AIMP" />
	<variable name="PKG_NAME"		value="aimp_%PKG_VERSION%.exe" />
	<variable name="PKG_REMOVE_NAME"	value="%PKG_DESTINATION%\uninstall.exe" />
	<variable name="PKG_INSTALL_SWITCH"	value='/SILENT /AUTO' />
	<variable name="PKG_UPGRADE_SWITCH"	value='/SILENT /UPDATE /AUTO' />	
	<variable name="PKG_REMOVE_SWITCH"	value='/SILENT /AUTO' />
	<variable name="PKG_DESTINATION"	value="%ProgramFiles%\AIMP" architecture="x86" />
	<variable name="PKG_DESTINATION"	value="%ProgramFiles(x86)%\AIMP" architecture="x64" />
        		
	<check type="logical" condition="and">
		<check type="uninstall" condition="exists" path="AIMP" />
		<check type="file" condition="versionequalto" path="%PKG_DESTINATION%\aimp.exe" value="%PKG_VERSION%" />
	</check>

	<install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
	<install cmd='%COMSPEC% /C copy /Y /V "%PKG_SOURCE%\skins\*.acs*" "%PKG_DESTINATION%\skins"' />
	
	<upgrade cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_UPGRADE_SWITCH%' />
	<upgrade cmd='%COMSPEC% /C copy /Y /V "%PKG_SOURCE%\skins\*.acs*" "%PKG_DESTINATION%\skins"' />
	
	<remove cmd='"%PKG_DESTINATION%\uninstall.exe" %PKG_REMOVE_SWITCH%' />
	<remove cmd='%COMSPEC% /C ping -n 3 127.0.0.1' />

</package>