<?xml version="1.0" encoding="UTF-8" ?>
<setup>
	<install>
		<reg>
			<item key="HKEY_LOCAL_MACHINE" subkey="SOFTWARE\AliIM" name="AliEditVersion" type="REG_SZ" value="20131028164528_3.17.0.0" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="DisplayIcon" type="REG_SZ" value="$INSTDIR\Uninstall.exe" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="DisplayName" type="REG_SZ" value="阿里旺旺" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="Publisher" type="REG_SZ" value="阿里巴巴（中国）有限公司" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="DisplayVersion" type="REG_SZ" value="$VERSION" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="UninstallString" type="REG_SZ" value="$INSTDIR\Uninstall.exe" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="InstallLocation" type="REG_SZ" value="$INSTDIR" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="NoModify" type="REG_DWORD" value="1" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="NoRepair" type="REG_DWORD" value="1" />
			<item key="HKEY_CLASSES_ROOT" subkey="AliFileCheck.File" name="" type="REG_SZ" value="" />
			<item key="HKEY_CLASSES_ROOT" subkey="AliFileCheck.File\DefaultIcon" name="" type="REG_SZ" value="$INSTDIR\$VERSION\AliFileCheck.exe,1" />
			<item key="HKEY_CLASSES_ROOT" subkey="AliFileCheck.File\shell" name="" type="REG_SZ" value="" />
			<item key="HKEY_CLASSES_ROOT" subkey="AliFileCheck.File\shell\open" name="" type="REG_SZ" value="" />
			<item key="HKEY_CLASSES_ROOT" subkey="AliFileCheck.File\shell\open\command" name="" type="REG_SZ" value="'$INSTDIR\$VERSION\AliFileCheck.exe' '%1'" />
			<item key="HKEY_CLASSES_ROOT" subkey=".emo" name="" type="REG_SZ" value="AliIM.Emotion" />
			<item key="HKEY_CLASSES_ROOT" subkey="AliIM.Emotion" name="" type="REG_SZ" value="" />
			<item key="HKEY_CLASSES_ROOT" subkey="AliIM.Emotion\DefaultIcon" name="" type="REG_SZ" value="$INSTDIR\$VERSION\AliIMEmotion.ico"/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliIM.Emotion\shell" name="" type="REG_SZ" value=""/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliIM.Emotion\shell\open" name="" type="REG_SZ" value=""/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliIM.Emotion\shell\open\command" name="" type="REG_SZ" value="'$INSTDIR\$VERSION\wwcmd.exe' '%1'"/>
		</reg>
		<desktopicon>
			<item file="$INSTDIR\AliIM.exe" link="阿里旺旺.lnk" cmd="/run:desktop"/>
		</desktopicon>
		<startmenu>
			<item file="$INSTDIR\AliIM.exe" link="阿里旺旺\阿里旺旺.lnk" cmd="/run:winmenu"/>
			<item file="$INSTDIR\Uninstall.exe" link="阿里旺旺\卸载阿里旺旺.lnk" cmd="/run:winmenu"/>
		</startmenu>
		<process>
			<item path="$INSTDIR\AliIM.exe" param="/addtask" wait="2000" show="0"/>
			<item path="$INSTDIR\AliIM.exe" param="/cleansdk /nouaccheck" wait="5000" show="0"/>
			<item path="$INSTDIR\AliIM.exe" param="/addfw" show="0"/>
			<item path="$INSTDIR\$VERSION\EndProcess.exe" param="IMClient-RV" wait="5000" show="0"/>
			<item path="$INSTDIR\$VERSION\aliedit.exe" param="/S" show="0"/>
			<item path="$INSTDIR\$VERSION\wwbizsrv.exe" param="/install /path:'$INSTDIR'" show="0"/>
		</process>
	</install>
	
	<uninstall>
		<reg>
			<item key="HKEY_LOCAL_MACHINE" subkey="SOFTWARE\AliIM" name="AliEditVersion"/>
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="DisplayIcon" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="DisplayName" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="Publisher"/>
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="DisplayVersion" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="UninstallString" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="InstallLocation"/>
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="NoModify" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall\阿里旺旺" name="NoRepair" />
			<item key="HKEY_LOCAL_MACHINE" subkey="Software\Microsoft\Windows\CurrentVersion\Uninstall" subkeyname="阿里旺旺" />
			<item key="HKEY_CLASSES_ROOT" subkeyname=".emo"/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliFileCheck.File\shell\open" subkeyname="command"/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliFileCheck.File\shell" subkeyname="open"/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliFileCheck.File" subkeyname="shell"/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliFileCheck.File" subkeyname="DefaultIcon" />
			<item key="HKEY_CLASSES_ROOT" subkeyname="AliFileCheck.File"/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliIM.Emotion\shell\open" subkeyname="command"/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliIM.Emotion\shell" subkeyname="open"/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliIM.Emotion" subkeyname="shell"/>
			<item key="HKEY_CLASSES_ROOT" subkey="AliIM.Emotion" subkeyname="DefaultIcon" />
			<item key="HKEY_CLASSES_ROOT" subkeyname="AliIM.Emotion"/>
		</reg>
		<desktopicon>
			<item link="阿里旺旺.lnk" />
		</desktopicon>
		<startmenu>
			<item link="阿里旺旺\阿里旺旺.lnk" />
			<item link="阿里旺旺\卸载阿里旺旺.lnk"/>
			<item link="阿里旺旺"/>
		</startmenu>
		<process>
			<item path="$INSTDIR\AliIM.exe" param="/removetask" wait="2000" show="0"/>
			<item path="$INSTDIR\$VERSION\wwbizsrv.exe" param="/uninstall /path:'$INSTDIR'" wait="5000" show="0"/>
		</process>
		<file>
			<item path="$INSTDIR\$VERSION" />
			<item path="$INSTDIR\profiles" />
			<item path="$INSTDIR\new" />
			<item path="$INSTDIR\AliIM.exe" />
			<item path="$INSTDIR\AliTask.exe" />
			<item path="$INSTDIR\ATL80.dll" />
			<item path="$INSTDIR\atl100.dll" />
			<item path="$INSTDIR\GdiPlus.dll" />
			<item path="$INSTDIR\msvcp80.dll" />
			<item path="$INSTDIR\msvcp100.dll" />
			<item path="$INSTDIR\msvcr80.dll" />
			<item path="$INSTDIR\msvcr100.dll" />
			<item path="$INSTDIR\task.ini" />
			<item path="$INSTDIR\Aliim.ini" />
			<item path="$INSTDIR\AliIM.exe.manifest" />
			<item path="$INSTDIR\Microsoft.VC80.ATL.manifest" />
			<item path="$INSTDIR\Microsoft.VC80.CRT.manifest" />
			<item path="$INSTDIR\Microsoft.Windows.GdiPlus.manifest" />
		</file>
	</uninstall>
</setup>