!macro CustomCodePostInstall
	nsExec::ExecToStack `"$INSTDIR\App\bin\upx.exe" -d "$INSTDIR\App\SkypeInstaller\SkypeSetupFull.exe"`
	Pop $R1 ;exit code
	Pop $R2	;UPX output
	
	nsExec::Exec `"$INSTDIR\App\bin\7za.exe" x "$INSTDIR\App\SkypeInstaller\SkypeSetupFull.exe" -o"$INSTDIR\App\Skype\Phone"`
	Pop $R1 ;exit code
	
	RMDir /r "$INSTDIR\App\bin"
	RMDir /r "$INSTDIR\App\SkypeInstaller"

	Rename "$INSTDIR\App\Skype\Phone\Skype4COM.dll.6F88B3BF_1A40_4409_9A67_3EC9E8B8AD33" "$INSTDIR\App\Skype\Phone\Skype4COM.dll"
	Rename "$INSTDIR\App\Skype\Phone\SkypeThirdPartyAttributions" "$INSTDIR\App\Skype\Phone\third-party_attributions.txt"
	Delete "$INSTDIR\App\Skype\Phone\SkypeDesktopIni"
	Delete "$INSTDIR\App\Skype\Phone\Updater.exe"
	Delete "$INSTDIR\App\Skype\Phone\Updater.dll"
	
	CreateDirectory "$INSTDIR\App\Skype\login"
	Rename "$INSTDIR\App\Skype\Phone\logindx01" "$INSTDIR\App\Skype\login\index.html"
	
	CreateDirectory "$INSTDIR\App\Skype\login\css"
	Rename "$INSTDIR\App\Skype\Phone\logcss01" "$INSTDIR\App\Skype\login\css\login.css"
	
	CreateDirectory "$INSTDIR\App\Skype\login\css\platform"
	Rename "$INSTDIR\App\Skype\Phone\logplat01" "$INSTDIR\App\Skype\login\css\platform\win.css"
	Rename "$INSTDIR\App\Skype\Phone\logplat02" "$INSTDIR\App\Skype\login\css\platform\mac.css"
		
	CreateDirectory "$INSTDIR\App\Skype\login\css\retina"
	Rename "$INSTDIR\App\Skype\Phone\logcss20" "$INSTDIR\App\Skype\login\css\retina\login.css"	
	
	CreateDirectory "$INSTDIR\App\Skype\login\images"
	Rename "$INSTDIR\App\Skype\Phone\logimg01" "$INSTDIR\App\Skype\login\images\background.png"	
	Rename "$INSTDIR\App\Skype\Phone\logimg02" "$INSTDIR\App\Skype\login\images\buttons.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg03" "$INSTDIR\App\Skype\login\images\capsLock.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg04" "$INSTDIR\App\Skype\login\images\checkbox.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg05" "$INSTDIR\App\Skype\login\images\logoanim.gif"
	Rename "$INSTDIR\App\Skype\Phone\logimg06" "$INSTDIR\App\Skype\login\images\dropdown.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg07" "$INSTDIR\App\Skype\login\images\fb.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg08" "$INSTDIR\App\Skype\login\images\icons.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg09" "$INSTDIR\App\Skype\login\images\inputfields.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg10" "$INSTDIR\App\Skype\login\images\loader.gif"
	Rename "$INSTDIR\App\Skype\Phone\logimg11" "$INSTDIR\App\Skype\login\images\loader.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg12" "$INSTDIR\App\Skype\login\images\messageBottom.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg13" "$INSTDIR\App\Skype\login\images\messageTop.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg14" "$INSTDIR\App\Skype\login\images\msAccount.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg15" "$INSTDIR\App\Skype\login\images\msAccountOverlay.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg16" "$INSTDIR\App\Skype\login\images\picture.jpg"
	Rename "$INSTDIR\App\Skype\Phone\logimg17" "$INSTDIR\App\Skype\login\images\plus.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg18" "$INSTDIR\App\Skype\login\images\skype.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg19" "$INSTDIR\App\Skype\login\images\skypelogo.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg20" "$INSTDIR\App\Skype\login\images\skypeicon.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg21" "$INSTDIR\App\Skype\login\images\messageBottomShort.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg22" "$INSTDIR\App\Skype\login\images\messageTopShort.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg23" "$INSTDIR\App\Skype\login\images\msDefaultPicture.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg24" "$INSTDIR\App\Skype\login\images\capsLockShort.png"
	
	CreateDirectory "$INSTDIR\App\Skype\login\images\retina"
	Rename "$INSTDIR\App\Skype\Phone\logimg30" "$INSTDIR\App\Skype\login\images\retina\background@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg31" "$INSTDIR\App\Skype\login\images\retina\buttons@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg32" "$INSTDIR\App\Skype\login\images\retina\checkbox@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg33" "$INSTDIR\App\Skype\login\images\retina\dropdown@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg34" "$INSTDIR\App\Skype\login\images\retina\facebook@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg35" "$INSTDIR\App\Skype\login\images\retina\fb@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg36" "$INSTDIR\App\Skype\login\images\retina\icons@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg37" "$INSTDIR\App\Skype\login\images\retina\inputfields@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg38" "$INSTDIR\App\Skype\login\images\retina\loader@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg39" "$INSTDIR\App\Skype\login\images\retina\messageBottom@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg40" "$INSTDIR\App\Skype\login\images\retina\messageBottomShort@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg41" "$INSTDIR\App\Skype\login\images\retina\messageTop@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg42" "$INSTDIR\App\Skype\login\images\retina\messageTopShort@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg43" "$INSTDIR\App\Skype\login\images\retina\msAccount@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg44" "$INSTDIR\App\Skype\login\images\retina\msAccountOverlay@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg45" "$INSTDIR\App\Skype\login\images\retina\msDefaultPicture@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg46" "$INSTDIR\App\Skype\login\images\retina\plus@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg47" "$INSTDIR\App\Skype\login\images\retina\skype@2x.png"
	Rename "$INSTDIR\App\Skype\Phone\logimg48" "$INSTDIR\App\Skype\login\images\retina\skypeicon@2x.png"
	
	CreateDirectory "$INSTDIR\App\Skype\login\languages"
	Rename "$INSTDIR\App\Skype\Phone\loglang01" "$INSTDIR\App\Skype\login\languages\ar.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang02" "$INSTDIR\App\Skype\login\languages\bg.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang03" "$INSTDIR\App\Skype\login\languages\cs.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang04" "$INSTDIR\App\Skype\login\languages\da.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang05" "$INSTDIR\App\Skype\login\languages\de.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang06" "$INSTDIR\App\Skype\login\languages\el.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang07" "$INSTDIR\App\Skype\login\languages\en.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang08" "$INSTDIR\App\Skype\login\languages\es.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang09" "$INSTDIR\App\Skype\login\languages\et.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang10" "$INSTDIR\App\Skype\login\languages\fi.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang11" "$INSTDIR\App\Skype\login\languages\fr.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang12" "$INSTDIR\App\Skype\login\languages\he.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang13" "$INSTDIR\App\Skype\login\languages\hu.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang14" "$INSTDIR\App\Skype\login\languages\id.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang15" "$INSTDIR\App\Skype\login\languages\it.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang16" "$INSTDIR\App\Skype\login\languages\ja.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang17" "$INSTDIR\App\Skype\login\languages\ko.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang18" "$INSTDIR\App\Skype\login\languages\lt.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang19" "$INSTDIR\App\Skype\login\languages\lv.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang20" "$INSTDIR\App\Skype\login\languages\nl.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang21" "$INSTDIR\App\Skype\login\languages\no.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang22" "$INSTDIR\App\Skype\login\languages\pl.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang23" "$INSTDIR\App\Skype\login\languages\pt.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang24" "$INSTDIR\App\Skype\login\languages\pt-br.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang25" "$INSTDIR\App\Skype\login\languages\ro.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang26" "$INSTDIR\App\Skype\login\languages\ru.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang27" "$INSTDIR\App\Skype\login\languages\sv.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang28" "$INSTDIR\App\Skype\login\languages\zh-hans.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang29" "$INSTDIR\App\Skype\login\languages\zh-hant.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang30" "$INSTDIR\App\Skype\login\languages\tr.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang31" "$INSTDIR\App\Skype\login\languages\uk.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang32" "$INSTDIR\App\Skype\login\languages\vi.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang33" "$INSTDIR\App\Skype\login\languages\ca.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang34" "$INSTDIR\App\Skype\login\languages\hr.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang35" "$INSTDIR\App\Skype\login\languages\sr-latn.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang36" "$INSTDIR\App\Skype\login\languages\sk.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang37" "$INSTDIR\App\Skype\login\languages\sl.js"
	Rename "$INSTDIR\App\Skype\Phone\loglang38" "$INSTDIR\App\Skype\login\languages\th.js"
	
	CreateDirectory "$INSTDIR\App\Skype\login\js"
	Rename "$INSTDIR\App\Skype\Phone\logjs01" "$INSTDIR\App\Skype\login\js\login.js"
!macroend
