/*
████████████████████████████████████████████████████████████████████████████████
████████████████████████████████████████████████████████████████████████████████
████████████████████████████████████████████████████████████████████████████████
████████████████████████████████████████████████████████████████████████████████
██████████████████████████████████ D o o m S t o r m ███████████████████████████
████████████████████████████████████████████████████████████████████████████████
███████████████████████████████████▒████████████████████████████████████████████
███████████████████████████████████▒████████████████████████████████████████████
██████████████████████████████████▒▒████████████████████████████████████████████
██████████████████████████████████▒█▒███████████████████████████████████████████
██████████████████████████████████▒█▒███████████████████████████████████████████
█████████████████████████████████▒██▒███████████████████████████████████████████
█████████████████████████████████▒██▒███████████████████████████████████████████
█████████████████████████████████▒██▒███████████████████████████████████████████
████████████████████████████████▒███▒███████████████████████████████████████████
████████████████████████████████▒████▒██████████████████████████████████████████
████████████████████████████████▒████▒██████████████████████████████████████████
███████████████████████████████▒█████▒██████████████████████████████████████████
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█████▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
█████████████████████████████████████▒██▒███████████████████████████████████████
██████████████████████████████████████▒▒████████████████████████████████████████
██████████████████████████████████████▒▒████████████████████████████████████████
██████████████████████████████████████▒█████████████████████████████████████████
██████████████████████████████████████▒█████████████████████████████████████████
████████████████████████████████████████████████████████████████████████████████
████████████████████████████████████████████████████████████████████████████████
*/

; === NSIS 3 Support ===
Unicode true
ManifestDPIAware true

!define SETUPURL    "http://update.iobit.com/dl/${SETUPFILE}"
!define SETUPFILE   "driver_booster_setup.exe"
!define FILENAME    "Driver_Booster_Portable_${VER}_Rev.2_${APPLANG}_Setup_Extractor"
!define COMMENTS    "Developed by DoomStorm"
!define COPYRIGHT   "IObit."
!define APPNAME     "IObit Driver Booster 5"
!define APP         "DriverBooster"
!define APPVER      "0.0.0.0"
!define VER         "5.x.x.x"
!define APPLANG     "Multi"
!define FOLDER      "DriverBoosterPortable"
!define LAUNCHER    "DriverBoosterPortable"
!define APPDIR      "DriverBooster"
!define LANGDIR     "Language"
!define APPINFO
	!define PUBLISHER    "IObit"
	!define HOMEPAGE     "http://www.google.com/search?q=${FILENAME}.paf"
	!define CATEGORY     "Utilities"
	!define DESCRIPTION  "The most effective and easiest-to-use driver updater"
	!define LANGUAGE     "Multilingual"
!define HELP
;!define SOURCE
!define INIT
!define MULTILANG
!define COMPONENTS
!define SETUPEXTRACTOR

; === Best Compression ===
SetCompress Auto
SetCompressor /SOLID lzma
SetCompressorDictSize 32
SetDatablockOptimize On

; === Cert ===
!if /FileExists ..\..\..\..\Cert\Certificate.nsh
    !include ..\..\..\..\Cert\Certificate.nsh
!endif

; === Include ===
!include Include\Installer.nsh
!include Include\CopyMoveFiles.nsh

Var SELECTED

Section "-${APPNAME} Portable" Main
	SetDetailsPrint textonly
	DetailPrint "Extracting ${APPNAME} Portable..."
	SetDetailsPrint listonly
	SetDetailsView hide

	SectionIn RO

	; === Preparing required files and directories ===
	RMDir "/r" "$TEMP\${APP}PortableTemp"
	SetOutPath "$TEMP\${APP}PortableTemp"
		File "Bin\InnoUnp\innounp.exe"

	; === Offline installer ===
	${If} $INSTALLERTYPE == "Offline"
		; === Extract files from the setup ===
		nsExec::Exec `"$TEMP\${APP}PortableTemp\innounp.exe" -x -d"$TEMP\${APP}PortableTemp" "$INPUTFILE"`

	; === Online installer ===
	${ElseIf} $INSTALLERTYPE == "Online"
		; === Download setup file ===
		inetc::get "${SETUPURL}" "$OUTPUTDIR\${SETUPFILE}" /END
		Pop $0
		StrCmp $0 "OK" +3
			MessageBox MB_USERICON "Download of ${SETUPFILE}: $0"
			Goto Cancelled

		; === Extract files from the setup ===
		nsExec::Exec `"$TEMP\${APP}PortableTemp\innounp.exe" -x -d"$TEMP\${APP}PortableTemp" "$OUTPUTDIR\${SETUPFILE}"`
	${EndIf}

	; === Install files ===
	SetOutPath "$INSTDIR"
		File "..\..\${LAUNCHER}.exe"
	SetOutPath "$INSTDIR\App\${APPDIR}"
		${CopyFiles} "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}" "$INSTDIR\App\${APPDIR}" "ALL" "FORCE"
			${CopyFilesWithout} "LatestNews"
			${CopyFilesWithout} "Pub"
			${CopyFilesWithout} "Reserve"
			${CopyFilesWithout} "ScanData"
			${CopyFilesWithout} "${LANGDIR}"
			${CopyFilesWithout} "TaskbarPin"
			${CopyFilesWithout} "Update"
			${CopyFilesWithout} "AUpdate.exe"
			${CopyFilesWithout} "AutoUpdate.exe"
			${CopyFilesWithout} "Bugreport.exe"
			${CopyFilesWithout} "ChangeIcon.exe"
			${CopyFilesWithout} "CommStat.dll"
			${CopyFilesWithout} "Dashlane_Launcher.exe"
			${CopyFilesWithout} "DBInstaller.exe"
			${CopyFilesWithout} "EULA.rtf"
			${CopyFilesWithout} "History.txt"
			${CopyFilesWithout} "InstStat.exe"
			${CopyFilesWithout} "IObitDownloader.exe"
			${CopyFilesWithout} "local.dat"
			${CopyFilesWithout} "NoteIcon.exe"
			${CopyFilesWithout} "Promote.exe"
			${CopyFilesWithout} "ScreenShot.exe"
			${CopyFilesWithout} "UpdateTips.exe"
		${CopyFilesEnd}

	Call AppInfo
		; Fix appinfo.ini:
		GetDllVersion "$INSTDIR\DriverBooster.exe" $R0 $R1
		IntOp $R2 $R0 / 0x00010000
		IntOp $R3 $R0 & 0x0000FFFF
		IntOp $R4 $R1 / 0x00010000
		IntOp $R5 $R1 & 0x0000FFFF
		StrCpy $0 "$R2.$R3.$R4.$R5"
		WriteINIStr "$INSTDIR\App\AppInfo\appinfo.ini" "Version" "PackageVersion" "$0"
		WriteINIStr "$INSTDIR\App\AppInfo\appinfo.ini" "Version" "DisplayVersion" "$0"

	Call Help

	Call Source
		SetOutPath "$INSTDIR\Other\Source"
			File /r /x thumbs.db /x version.dll "*.*"
		SetOutPath "$INSTDIR\Other\Source\Include"
			File /r /x thumbs.db "Include\*.*"

	Cancelled:
SectionEnd

!ifdef COMPONENTS
	Section /o "${APPNAME} Portable Free Edition" Free

	SectionEnd
	Section  "${APPNAME} Portable Pro Edition" Pro
		SetOutPath "$INSTDIR\App\${APPDIR}"
			File "version.dll"
	SectionEnd
!endif

!ifdef MULTILANG
	SectionGroup "Language"
		Section /o "Albanian" albanian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Albanian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Arabic" arabic
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Arabic.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Belarusian" belarusian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Belarusian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Bulgarian" bulgarian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Bulgarian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "SimpChinese" simpChinese
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\ChineseSimp.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "TradChinese" tradChinese
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\ChineseTrad.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Croatian" croatian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Croatian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Czech" czech
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Czech.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Danish" danish
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Danish.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Dutch" dutch
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Dutch.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "English" english
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\English.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Finnish" finnish
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Finnish.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "French" french
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\French.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "German" german
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\German.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Greek" greek
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Greek.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Hebrew" hebrew
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Hebrew.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Hungarian" hungarian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Hungarian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Italian" italian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Italian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Japanese" japanese
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Japanese.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Korean" korean
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Korean.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Mongolian" mongolian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Mongolian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Nepali" nepali
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Nepali.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Polish" polish
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Polish.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Portuguese" Portuguese
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Portuguese (PT-PT).lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "PortugueseBR" portugueseBr
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Portuguese (PT-BR).lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Romanian" romanian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Romanian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Russian" russian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Russian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Serbian" serbian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Serbian (Cyrillic).lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "SerbianLatin" serbianLatin
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Serbian (Latin).lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Slovenian" slovenian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Slovenian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Spanish" spanish
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Spanish.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Swedish" swedish
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Swedish.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Thai" thai
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Thai.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Turkish" turkish
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Turkish.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Ukrainian" ukrainian
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Ukrainian.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
		Section /o "Vietnamese" vietnamese
			SetOutPath "$INSTDIR\App\${APPDIR}\${LANGDIR}"
				CopyFiles /SILENT "$TEMP\${APP}PortableTemp\{app}\{cm_AppVer}\${LANGDIR}\Vietnamese.lng" "$INSTDIR\App\${APPDIR}\${LANGDIR}"
		SectionEnd
	SectionGroupEnd

	Function MultiLang
		; === Automatically select language with the same language of Windows language ===
		System::Call `kernel32::GetUserDefaultLangID() i .r0`
		StrCmp $0 "1025" "" +2
			SectionSetFlags ${arabic} 1
		StrCmp $0 "1026" "" +2
			SectionSetFlags ${bulgarian} 1
		StrCmp $0 "1028" "" +2
			SectionSetFlags ${tradChinese} 1
		StrCmp $0 "1029" "" +2
			SectionSetFlags ${czech} 1
		StrCmp $0 "1030" "" +2
			SectionSetFlags ${danish} 1
		StrCmp $0 "1031" "" +2
			SectionSetFlags ${german} 1
		StrCmp $0 "1032" "" +2
			SectionSetFlags ${greek} 1
		StrCmp $0 "1033" "" +2
			SectionSetFlags ${english} 1
		StrCmp $0 "1034" "" +2
			SectionSetFlags ${spanish} 1
		StrCmp $0 "1035" "" +2
			SectionSetFlags ${finnish} 1
		StrCmp $0 "1036" "" +2
			SectionSetFlags ${french} 1
		StrCmp $0 "1037" "" +2
			SectionSetFlags ${hebrew} 1
		StrCmp $0 "1038" "" +2
			SectionSetFlags ${hungarian} 1
		StrCmp $0 "1040" "" +2
			SectionSetFlags ${italian} 1
		StrCmp $0 "1041" "" +2
			SectionSetFlags ${japanese} 1
		StrCmp $0 "1042" "" +2
			SectionSetFlags ${korean} 1
		StrCmp $0 "1043" "" +2
			SectionSetFlags ${dutch} 1
		StrCmp $0 "1045" "" +2
			SectionSetFlags ${polish} 1
		StrCmp $0 "1046" "" +2
			SectionSetFlags ${portugueseBr} 1
		StrCmp $0 "1048" "" +2
			SectionSetFlags ${romanian} 1
		StrCmp $0 "1049" "" +2
			SectionSetFlags ${russian} 1
		StrCmp $0 "1050" "" +2
			SectionSetFlags ${croatian} 1
		StrCmp $0 "1052" "" +2
			SectionSetFlags ${albanian} 1
		StrCmp $0 "1053" "" +2
			SectionSetFlags ${swedish} 1
		StrCmp $0 "1054" "" +2
			SectionSetFlags ${thai} 1
		StrCmp $0 "1055" "" +2
			SectionSetFlags ${turkish} 1
		StrCmp $0 "1058" "" +2
			SectionSetFlags ${ukrainian} 1
		StrCmp $0 "1059" "" +2
			SectionSetFlags ${belarusian} 1
		StrCmp $0 "1060" "" +2
			SectionSetFlags ${slovenian} 1
		StrCmp $0 "1066" "" +2
			SectionSetFlags ${Vietnamese} 1
		StrCmp $0 "1104" "" +2
			SectionSetFlags ${mongolian} 1
		StrCmp $0 "1121" "" +2
			SectionSetFlags ${nepali} 1
		StrCmp $0 "2052" "" +2
			SectionSetFlags ${simpChinese} 1
		StrCmp $0 "2070" "" +2
			SectionSetFlags ${portuguese} 1
		StrCmp $0 "2074" "" +2
			SectionSetFlags ${serbianLatin} 1
		StrCmp $0 "3098" "" +2
			SectionSetFlags ${serbian} 1
	FunctionEnd
!endif

Function .onSelChange
	!insertmacro StartRadioButtons $SELECTED
		!insertmacro RadioButton ${Free}
		!insertmacro RadioButton ${Pro}
	!insertmacro EndRadioButtons
FunctionEnd

!ifdef INIT
	Function Init
		; === Destroy size lol ===
		SectionSetSize ${Main} 0
		SectionSetSize ${Pro} 0
		
		; === Set Pro edition selected by default ===
		StrCpy $SELECTED ${Pro}
	FunctionEnd
!endif

Function .onGUIEnd
	; === Remove temporary directory ===
	SetOutPath "$TEMP"
	RMDir "/r" "$TEMP\${APP}PortableTemp"
FunctionEnd
