1!ifdef INSTALL
2	; 95.0
3	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Test Spring MT.lnk"
4	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Test Spring MT (safemode).lnk"
5	Delete "$INSTDIR\spring-multithreaded.exe"
6
7	; Old DLLs, not needed anymore
8	; (python upgraded to 25)
9	Delete "$INSTDIR\python24.dll"
10
11	Delete "$INSTDIR\settingstemplate.xml"
12
13	; Remove Luxi.ttf, it has been replaced by FreeSansBold
14	Delete "$INSTDIR\Luxi.ttf"
15	Delete "$INSTDIR\fonts\Luxi.ttf"
16
17	; Remove SelectionEditor, it has been integrated into SpringLobby and SpringSettings
18	Delete "$INSTDIR\SelectionEditor.exe"
19	Delete "$INSTDIR\MSVCP71.dll"
20	Delete "$INSTDIR\zlibwapi.dll"
21
22	; Purge old file from 0.75 install.
23	Delete "$INSTDIR\LuaUI\unitdefs.lua"
24
25	; next one is deprecated since mingwlibs 20.1 (around spring v0.81.2.1)
26	Delete "$INSTDIR\wrap_oal.dll"
27	Delete "$INSTDIR\cache\ArchiveCacheV9.lua"
28
29	Delete "$INSTDIR\SpringDownloader.exe"
30	Delete "$INSTDIR\springfiles.url"
31	Delete "$INSTDIR\ArchiveCacheV7.lua"
32
33	; zero-k lobby icon
34	Delete "$INSTDIR\Zero-K.ico"
35
36	RmDir "$INSTDIR\mods"
37
38        ; Demofile file association (with multiengine support this doesn't work as current spring can't run old demos)
39        !insertmacro APP_UNASSOCIATE "sdf" "spring.demofile"
40
41	; deprecated Shortcuts
42	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk"
43	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Website.lnk"
44	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Spring test.lnk"
45	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Spring multiplayer battleroom.lnk"
46	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Selectionkeys editor.lnk"
47	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Update CA.lnk"
48	Delete "$SMPROGRAMS\${PRODUCT_NAME}\rapid-GUI.lnk"
49	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Settings.lnk"
50
51
52	Delete "$SMPROGRAMS\${PRODUCT_NAME}\SpringDownloader.lnk"
53	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Spring Website.lnk"
54	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Download Content.lnk"
55	Delete "$SMPROGRAMS\${PRODUCT_NAME}\Readme.lnk"
56
57	Delete "$INSTDIR\Spring.url"
58	Delete "$INSTDIR\springfiles.url"
59
60	Delete "$DESKTOP\Zero-K Lobby.lnk"
61
62!endif
63