Difference between revisions of "Aimp"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(init Version)
 
Line 1: Line 1:
 
Silent installer for Aimp a media player like [[Winamp]]. More infos from [http://www.aimp.ru/ aimp.ru]
 
Silent installer for Aimp a media player like [[Winamp]]. More infos from [http://www.aimp.ru/ aimp.ru]
  
 +
You need change the file name, because in the file name from product site version is 4.60.2180, but in other places its 4.6.0.2180!
  
 
<source lang="xml">
 
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
 
<packages:packages xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wpkg.org/packages xsd/packages.xsd">
 
 
 
<package
 
<package
 
id="aimp"
 
id="aimp"
Line 13: Line 11:
 
priority="0">
 
priority="0">
  
<variable name="PKG_VERSION" value="4.0.0.1697" />
+
<variable name="PKG_VERSION" value="4.6.0.2180" />
+
<variable name="PKG_SOURCE" value="%SOFTWARE%\AIMP" />
<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_EXE" value="aimp_%PKG_VERSION%.exe" />
+
+
<variable name="PKG_DESTINATION" value="%ProgramFiles%\aimp"      architecture="x86" />
+
        <variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\aimp"      architecture="x64" />
+
       
+
<variable name="PKG_REMOVE_EXE" value="%PKG_DESTINATION%\uninstall.exe" />
+
+
 
<variable name="PKG_INSTALL_SWITCH" value='/SILENT /AUTO' />
 
<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_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="logical" condition="and">
 
<check type="uninstall" condition="exists" path="AIMP" />
 
<check type="uninstall" condition="exists" path="AIMP" />
 
<check type="file" condition="versionequalto" path="%PKG_DESTINATION%\aimp.exe" value="%PKG_VERSION%" />
 
<check type="file" condition="versionequalto" path="%PKG_DESTINATION%\aimp.exe" value="%PKG_VERSION%" />
 
</check>
 
</check>
 
<commands>
 
<command type="install" timeout="300" cmd='"%PKG_SOURCE%\%PKG_EXE%" %PKG_INSTALL_SWITCH%' />
 
<command type="install" cmd='%COMSPEC% /c copy /y "%PKG_SOURCE%\skins\*.acs*" "%PKG_DESTINATION%\skins"' />
 
  
<command type="upgrade" include="install" />
+
<install timeout="120" cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
 +
<install cmd='%COMSPEC% /C copy /Y /V "%PKG_SOURCE%\skins\*.acs*" "%PKG_DESTINATION%\skins"' />
 +
 +
<upgrade timeout="120" cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_UPGRADE_SWITCH%' />
 +
<upgrade cmd='%COMSPEC% /C copy /Y /V "%PKG_SOURCE%\skins\*.acs*" "%PKG_DESTINATION%\skins"' />
 +
 +
<remove timeout="120" cmd='%COMSPEC% /C if exist "%PKG_REMOVE_NAME%" "%PKG_REMOVE_NAME%" %PKG_REMOVE_SWITCH%'>
 +
<exit code="any"/>
 +
</remove>
  
<command type="remove" timeout="300" cmd='%COMSPEC% /C if exist "%PKG_REMOVE_EXE%" "%PKG_REMOVE_EXE%" %PKG_REMOVE_SWITCH%' >
 
<exit code="any"/>
 
</command>
 
</commands>
 
 
</package>
 
</package>
 
</packages:packages>
 
 
</source>
 
</source>
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 20:06, 10 May 2020

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

You need change the file name, because in the file name from product site version is 4.60.2180, but in other places its 4.6.0.2180!

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

	<variable name="PKG_VERSION"		value="4.6.0.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 timeout="120" cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
	<install cmd='%COMSPEC% /C copy /Y /V "%PKG_SOURCE%\skins\*.acs*" "%PKG_DESTINATION%\skins"' />
	
	<upgrade timeout="120" cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_UPGRADE_SWITCH%' />
	<upgrade cmd='%COMSPEC% /C copy /Y /V "%PKG_SOURCE%\skins\*.acs*" "%PKG_DESTINATION%\skins"' />
	
	<remove timeout="120" cmd='%COMSPEC% /C if exist "%PKG_REMOVE_NAME%" "%PKG_REMOVE_NAME%" %PKG_REMOVE_SWITCH%'>
		<exit code="any"/>
	</remove>

</package>