!macro CustomCodePreInstall
	${If} ${FileExists} "$INSTDIR\App\AppInfo\appinfo.ini"
		ReadINIStr $0 "$INSTDIR\App\AppInfo\appinfo.ini" "Version" "PackageVersion"
		${VersionCompare} $0 "2.2.3.21" $R0
		${If} $R0 == 2
		${AndIf} ${FileExists} "$INSTDIR\Data\config\uGet\Setting.json"
			CreateDirectory "$INSTDIR\Data\gtk-3.0"
			CopyFiles /SILENT "$INSTDIR\App\uGet\etc\gtk-3.0\settings.ini" "$INSTDIR\Data\gtk-3.0"
		${EndIf}
	${EndIf}
!macroend
