!macro CustomCodePreInstall
	${If} ${FileExists} "$INSTDIR\App\AppInfo\appinfo.ini"
		ReadINIStr $0 "$INSTDIR\App\AppInfo\appinfo.ini" "Version" "PackageVersion"
		${VersionCompare} $0 "1.21.3.2" $R0
		${If} $R0 == "2"
		${AndIf} ${FileExists} "$INSTDIR\Data\Litecoin\litecoin.conf"
			${ConfigRead} "$INSTDIR\Data\Litecoin\litecoin.conf" "Prune=" $0
			${If} $0 == "2200"
			${OrIf} $0 == "550"
				;${ConfigWrite} "$INSTDIR\Data\Litecoin\litecoin.conf" "Prune=" "550" $R0
				${ConfigWrite} "$INSTDIR\Data\Litecoin\litecoin.conf" "blockfilterindex=" "0" $R0
				${ConfigWrite} "$INSTDIR\Data\Litecoin\litecoin.conf" "peerblockfilters=" "0" $R0
			${EndIf}
		${EndIf}
	${EndIf}
!macroend
