域名将于6月份到期,并且不再续费,届时网站将无法访问。
6月份之前如果服务器到期将提前关闭网站,请改访问模组网社区

天际传奇版打包脚本

《上古卷轴5:天际》传奇版的打包脚本,用的依旧是 NSIS 。

应该是存在一些问题的,现在思维定死了,实在找不出来。

然后自我感觉的大问题是“Unicode 路径的判断”,这边借助的是正则表达式,但是测试后仅对简体中文系统有效,繁体中文效果不怎么好,英文版的没测试。本来是可以使用 Unicode 版的 NSIS ,可以直接用插件判断 Unicode 路径,但是 Unicode 版本的 NSIS 不支持 CABSetup ,只好忍痛抛弃了。程序不支持 Unicode 真的很痛苦,特别是想做多语言支持,当时为了测试繁体中文版,花了快一个礼拜 🙁

废话太多了,而且感觉看的人实在不多,如果阁下发现bug或者缺陷麻烦告知,谢谢。

下面进入正题

!include					"MUI2.nsh"
!include					"x64.nsh"
!include					"LogicLib.nsh"
!include					"nsDialogs.nsh"
!include					"WordFunc.nsh"
!include					"StrFunc.nsh"
${StrLoc}
!include					"NSISpcre.nsh"
!include					"FileFunc.nsh"

Name						"The Elder Scrolls V: Skyrim"
OutFile			 			"Setup.exe"
VIProductVersion			"2013.05.16.01"
SetCompressor	   			/SOLID lzma
RequestExecutionLevel		admin

!define						MUI_ABORTWARNING

!define						MUI_ICON "skyrim.ico"
!define						MUI_UNICON "skyrim.ico"
!define						MUI_WELCOMEFINISHPAGE_BITMAP "images\installbackground.bmp"
BrandingText				"The Elder Scrolls V: Skyrim by icedream"

!define						MUI_CUSTOMFUNCTION_GUIINIT onGUIInit
!insertmacro				MUI_PAGE_WELCOME
!insertmacro				MUI_PAGE_LICENSE "Readme.txt"
!define						MUI_PAGE_CUSTOMFUNCTION_LEAVE DirectoryLeave
!insertmacro				MUI_PAGE_DIRECTORY
Page						custom PAGE_CHECK_LOCATIONS PAGE_CHECK_LOCATIONS_Leave
!define						MUI_PAGE_CUSTOMFUNCTION_LEAVE ComponentsLeave
!insertmacro				MUI_PAGE_COMPONENTS
Page						custom PAGE_FONT PAGE_FONT_Leave
!insertmacro				MUI_PAGE_INSTFILES
!define						MUI_FINISHPAGE_NOAUTOCLOSE
!define						MUI_FINISHPAGE_RUN "$(Text_Run)"
!define						MUI_FINISHPAGE_RUN_TEXT "$(Text_Run_Text)"
!insertmacro				MUI_PAGE_FINISH

!define						MUI_UNWELCOMEFINISHPAGE_BITMAP "images\uninstallbackground.bmp"
!insertmacro				MUI_UNPAGE_CONFIRM
!insertmacro				MUI_UNPAGE_INSTFILES

!insertmacro				MUI_LANGUAGE "English"
!insertmacro				MUI_LANGUAGE "SimpChinese"
!insertmacro				MUI_LANGUAGE "TradChinese"

!insertmacro				MUI_RESERVEFILE_LANGDLL

!insertmacro				"REMatches"

;English Strings
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "The Elder Scrolls V: Skyrim"
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "Bethesda Game Studios"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Bethesda Game Studios"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "The Elder Scrolls V: Skyrim"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" VIProductVersion
LangString Section_Simple ${LANG_ENGLISH} "Simple"
LangString Section_Typical ${LANG_ENGLISH} "Typical"
LangString Text_Update ${LANG_ENGLISH} "Update(&U)"
LangString PAGE_CHECK_LOCATIONS_TITLE ${LANG_ENGLISH} "Installation Location Check"
LangString PAGE_CHECK_LOCATIONS_SUBTITLE ${LANG_ENGLISH} "A risky installation location has been detected."
LangString Text_BaseFiles ${LANG_ENGLISH} "Offcial Release"
LangString Text_BaseFiles_Desc ${LANG_ENGLISH} "TESV: Skyrim 1.9.32.0 Offcial Release"
LangString Text_Extract_Cancel ${LANG_ENGLISH} "Extract process was cancelled"
LangString Text_Extract_Fail ${LANG_ENGLISH} "Extract failed with error code "
LangString Text_Crack ${LANG_ENGLISH} "Steam Crack"
LangString Text_Crack_Desc_3DM ${LANG_ENGLISH} "TESV: Skyrim 1.9.32.0 3DM Crack"
LangString Text_Crack_Desc_RELOADED ${LANG_ENGLISH} "TESV: Skyrim 1.9.32.0 RELOADED Crack"
LangString Text_Hans ${LANG_ENGLISH} "汉化"
LangString Text_Hans_Desc ${LANG_ENGLISH} "蒹葭汉化组制作《上古卷轴5:天际》全文本完整汉化v7.0最终版"
LangString Text_Font ${LANG_ENGLISH} "中文字体"
LangString Text_Font_Desc ${LANG_ENGLISH} "个性化中文字体,安装汉化的人这个必选"
LangString Text_Font_Required ${LANG_ENGLISH} "安装汉化的必需同时安装中文字体。"
LangString Text_Manual ${LANG_ENGLISH} "Manual"
LangString Text_Manual_Desc ${LANG_ENGLISH} "The Elder Scrolls V: Skyrim Manual"
LangString Text_Start_Shortcut ${LANG_ENGLISH} "Start Menu Shortcut"
LangString Text_Start_Shortcut_Desc ${LANG_ENGLISH} "Create Start Menu Shortcut to Skyrim"
LangString Text_Desktop_Shortcut ${LANG_ENGLISH} "Desktop Shortcut"
LangString Text_Desktop_Shortcut_Desc ${LANG_ENGLISH} "Create Desktop Shortcut to Skyrim"
LangString Text_Copying ${LANG_ENGLISH} "Copying"
LangString Text_Installing ${LANG_ENGLISH} "Installing"
LangString Text_Installed ${LANG_ENGLISH} "Installed"
LangString Text_Files ${LANG_ENGLISH} "Containing:"
LangString Text_Sizes ${LANG_ENGLISH} "Size:"
LangString Text_Creation_Kit ${LANG_ENGLISH} "Do you want to install Creation Kit?"
LangString Text_Tools_Package ${LANG_ENGLISH} "Do you want to install common skyrim tools?"
LangString Text_Delete_All ${LANG_ENGLISH} "Empty game directory?"
LangString Text_Registry_Detected ${LANG_ENGLISH} "Remaining registry entry:"
LangString Text_File_Detected ${LANG_ENGLISH} "Remaining configuration files:"
LangString Text_Game_Installed ${LANG_ENGLISH} "Error: You have installed Skyrim, or you failed to uninstall all files. More details refer to the the following list, please repair it(them) first before installing:"
LangString Text_Cleaning ${LANG_ENGLISH} "Do you want to automatically fix the errors or abort the installation and fix it(them) manually?$\nChoose $\"OK$\" to automatically fix, and $\"Cancel$\" to manually."
LangString Text_UAC_Warn ${LANG_ENGLISH} "You are attempting to install Skyrim into the Program Files directory."
LangString Text_UAC_Warn_Desc ${LANG_ENGLISH} "This is a very common problems on Windows Vista, 7 or 8. If you continue with the install into Program Files, you may have trouble starting Skyrim, as User Access Controls (UAC) may prevent you from accessing game files.$\n$\nWe strongly recommend you to install Skyrim to other path, eg: C:\Games\Skyrim."
LangString Text_Unicode ${LANG_ENGLISH} "Unexpected strings in installation folder, choose another one."
LangString Text_Run ${LANG_ENGLISH} "$INSTDIR\SkyrimLauncher.exe"
LangString Text_Run_Text ${LANG_ENGLISH} "Launch Skyrim"
LangString Text_FZCY ${LANG_ENGLISH} "方正粗圆"
LangString Text_FZSH ${LANG_ENGLISH} "方正水黑"
LangString Text_FZZY ${LANG_ENGLISH} "方正准圆"
LangString Text_FZJT ${LANG_ENGLISH} "方正剑体"
LangString Text_MSYHA ${LANG_ENGLISH} "微软雅黑A"
LangString Text_MSYHB ${LANG_ENGLISH} "微软雅黑B"
LangString Text_FZSZ ${LANG_ENGLISH} "方正水柱"
LangString Text_MNZY ${LANG_ENGLISH} "迷你稚艺"
LangString Text_FZTYS ${LANG_ENGLISH} "方正特雅宋"
LangString Text_ZHSRX ${LANG_ENGLISH} "张海山锐谐"
LangString Text_FZZYS ${LANG_ENGLISH} "方正准雅宋"
LangString Text_FZXZ ${LANG_ENGLISH} "方正悬针篆变"
LangString Text_FZZZHS ${LANG_ENGLISH} "方正正准黑(简)"
LangString Text_FZZZH ${LANG_ENGLISH} "方正正准黑"

;简体中文字符
VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "ProductName" "The Elder Scrolls V: Skyrim"
VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "CompanyName" "Bethesda Game Studios"
VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "LegalCopyright" "Bethesda Game Studios"
VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileDescription" "The Elder Scrolls V: Skyrim"
VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileVersion" VIProductVersion
LangString Section_Simple ${LANG_SIMPCHINESE} "最简安装"
LangString Section_Typical ${LANG_SIMPCHINESE} "典型安装"
LangString Text_Update ${LANG_SIMPCHINESE} "更新(&U)"
LangString PAGE_CHECK_LOCATIONS_TITLE ${LANG_SIMPCHINESE} "安装路径检查"
LangString PAGE_CHECK_LOCATIONS_SUBTITLE ${LANG_SIMPCHINESE} "检测到非法安装路径"
LangString Text_BaseFiles ${LANG_SIMPCHINESE} "游戏本体"
LangString Text_BaseFiles_Desc ${LANG_SIMPCHINESE} "TESV: Skyrim 1.9.32.0 游戏本体"
LangString Text_Extract_Cancel ${LANG_SIMPCHINESE} "解压已取消"
LangString Text_Extract_Fail ${LANG_SIMPCHINESE} "解压出错,错误代码:"
LangString Text_Crack ${LANG_SIMPCHINESE} "破解补丁"
LangString Text_Crack_Desc_3DM ${LANG_SIMPCHINESE} "TESV: Skyrim 1.9.32.0 3DM 破解补丁"
LangString Text_Crack_Desc_RELOADED ${LANG_SIMPCHINESE} "TESV: Skyrim 1.9.32.0 RELOADED 破解补丁"
LangString Text_Hans ${LANG_SIMPCHINESE} "汉化"
LangString Text_Hans_Desc ${LANG_SIMPCHINESE} "蒹葭汉化组制作《上古卷轴5:天际》全文本完整汉化v7.0最终版"
LangString Text_Font ${LANG_SIMPCHINESE} "中文字体"
LangString Text_Font_Desc ${LANG_SIMPCHINESE} "个性化中文字体,安装汉化的人这个必选"
LangString Text_Font_Required ${LANG_SIMPCHINESE} "安装汉化的必需同时安装中文字体。"
LangString Text_Manual ${LANG_SIMPCHINESE} "游戏手册"
LangString Text_Manual_Desc ${LANG_SIMPCHINESE} "The Elder Scrolls V: Skyrim 手册"
LangString Text_Start_Shortcut ${LANG_SIMPCHINESE} "开始菜单快捷方式"
LangString Text_Start_Shortcut_Desc ${LANG_SIMPCHINESE} "创建开始菜单快捷方式至 Skyrim"
LangString Text_Desktop_Shortcut ${LANG_SIMPCHINESE} "桌面快捷方式"
LangString Text_Desktop_Shortcut_Desc ${LANG_SIMPCHINESE} "创建 Skyrim 的桌面快捷方式"
LangString Text_Copying ${LANG_SIMPCHINESE} "正在复制"
LangString Text_Installing ${LANG_SIMPCHINESE} "正在安装"
LangString Text_Installed ${LANG_SIMPCHINESE} "安装完成"
LangString Text_Files ${LANG_SIMPCHINESE} "包含文件:"
LangString Text_Sizes ${LANG_SIMPCHINESE} "文件总体积:"
LangString Text_Creation_Kit ${LANG_SIMPCHINESE} "是否安装官方编辑器 Creation Kit?"
LangString Text_Tools_Package ${LANG_SIMPCHINESE} "是否安装游戏常用工具?"
LangString Text_Delete_All ${LANG_SIMPCHINESE} "清空整个游戏目录?"
LangString Text_Registry_Detected ${LANG_SIMPCHINESE} "残留的注册表项目:"
LangString Text_File_Detected ${LANG_SIMPCHINESE} "残留的配置文件:"
LangString Text_Game_Installed ${LANG_SIMPCHINESE} "安装出错:电脑内已安装旧版本或者安装的旧版文件没有完全卸载干净。可能的错误信息如下,请先修复相关错误再安装新游戏。"
LangString Text_Cleaning ${LANG_SIMPCHINESE} "是否自动修复并直接安装?$\n选择“确定”将自动修复并进入安装,选择“取消”则自己修复错误。"
LangString Text_UAC_Warn ${LANG_SIMPCHINESE} "检测到你要将程序安装到 Program Files 目录。"
LangString Text_UAC_Warn_Desc ${LANG_SIMPCHINESE} "这是 Vista、Win7 与 Win8 的普遍问题了,如果你把游戏安装到 Program Files 目录内,游戏以及后面安装的程序会受到 UAC 的影响而无法正常工作,从而产生无法预计的错误,甚至可能会无法启动。$\n$\n我们强烈建议你调整为其他路径,比如 C:\Games\Skyrim。"
LangString Text_Unicode ${LANG_SIMPCHINESE} "安装路径不可以包含中文,请重新选择安装路径!"
LangString Text_Run ${LANG_SIMPCHINESE} "$INSTDIR\SkyrimLauncherCN.exe"
LangString Text_Run_Text ${LANG_SIMPCHINESE} "运行游戏"
LangString Text_FZCY ${LANG_SIMPCHINESE} "方正粗圆"
LangString Text_FZSH ${LANG_SIMPCHINESE} "方正水黑"
LangString Text_FZZY ${LANG_SIMPCHINESE} "方正准圆"
LangString Text_FZJT ${LANG_SIMPCHINESE} "方正剑体"
LangString Text_MSYHA ${LANG_SIMPCHINESE} "微软雅黑A"
LangString Text_MSYHB ${LANG_SIMPCHINESE} "微软雅黑B"
LangString Text_FZSZ ${LANG_SIMPCHINESE} "方正水柱"
LangString Text_MNZY ${LANG_SIMPCHINESE} "迷你稚艺"
LangString Text_FZTYS ${LANG_SIMPCHINESE} "方正特雅宋"
LangString Text_ZHSRX ${LANG_SIMPCHINESE} "张海山锐谐"
LangString Text_FZZYS ${LANG_SIMPCHINESE} "方正准雅宋"
LangString Text_FZXZ ${LANG_SIMPCHINESE} "方正悬针篆变"
LangString Text_FZZZHS ${LANG_SIMPCHINESE} "方正正准黑(简)"
LangString Text_FZZZH ${LANG_SIMPCHINESE} "方正正准黑"

;羉砰いゅ才
VIAddVersionKey /LANG=${LANG_TRADCHINESE} "ProductName" "The Elder Scrolls V: Skyrim"
VIAddVersionKey /LANG=${LANG_TRADCHINESE} "CompanyName" "Bethesda Game Studios"
VIAddVersionKey /LANG=${LANG_TRADCHINESE} "LegalCopyright" "Bethesda Game Studios"
VIAddVersionKey /LANG=${LANG_TRADCHINESE} "FileDescription" "The Elder Scrolls V: Skyrim"
VIAddVersionKey /LANG=${LANG_TRADCHINESE} "FileVersion" VIProductVersion
LangString Section_Simple ${LANG_TRADCHINESE} "程虏杆"
LangString Section_Typical ${LANG_TRADCHINESE} "ㄥ杆"
LangString Text_Update ${LANG_TRADCHINESE} "穝(&U)"
LangString PAGE_CHECK_LOCATIONS_TITLE ${LANG_TRADCHINESE} "杆隔畖浪琩"
LangString PAGE_CHECK_LOCATIONS_SUBTITLE ${LANG_TRADCHINESE} "盎代獶猭杆隔畖"
LangString Text_BaseFiles ${LANG_TRADCHINESE} "笴栏セ砰"
LangString Text_BaseFiles_Desc ${LANG_TRADCHINESE} "TESV: Skyrim 1.9.32.0 笴栏セ砰"
LangString Text_Extract_Cancel ${LANG_TRADCHINESE} "秆溃"
LangString Text_Extract_Fail ${LANG_TRADCHINESE} "秆溃岿岿粇絏"
LangString Text_Crack ${LANG_TRADCHINESE} "瘆秆干"
LangString Text_Crack_Desc_3DM ${LANG_TRADCHINESE} "TESV: Skyrim 1.9.32.0 3DM 瘆秆干"
LangString Text_Crack_Desc_RELOADED ${LANG_TRADCHINESE} "TESV: Skyrim 1.9.32.0 RELOADED 瘆秆干"
LangString Text_Hans ${LANG_TRADCHINESE} "簙て"
LangString Text_Hans_Desc ${LANG_TRADCHINESE} "愣傅簙て竤舱籹禸5ぱ悔ゅЧ俱簙てv7.0程沧"
LangString Text_Font ${LANG_TRADCHINESE} "いゅ"
LangString Text_Font_Desc ${LANG_TRADCHINESE} "┦ていゅ杆簙て硂ゲ匡"
LangString Text_Font_Required ${LANG_TRADCHINESE} "杆簙てゲ惠杆いゅ"
LangString Text_Manual ${LANG_TRADCHINESE} "笴栏も"
LangString Text_Manual_Desc ${LANG_TRADCHINESE} "The Elder Scrolls V: Skyrim も"
LangString Text_Start_Shortcut ${LANG_TRADCHINESE} "秨﹍匡虫倍畖"
LangString Text_Start_Shortcut_Desc ${LANG_TRADCHINESE} "ミ秨﹍匡虫倍畖 Skyrim"
LangString Text_Desktop_Shortcut ${LANG_TRADCHINESE} "倍畖"
LangString Text_Desktop_Shortcut_Desc ${LANG_TRADCHINESE} "ミ Skyrim 倍畖"
LangString Text_Copying ${LANG_TRADCHINESE} "タ狡籹"
LangString Text_Installing ${LANG_TRADCHINESE} "タ杆"
LangString Text_Installed ${LANG_TRADCHINESE} "杆ЧΘ"
LangString Text_Files ${LANG_TRADCHINESE} "郎"
LangString Text_Sizes ${LANG_TRADCHINESE} "郎羆砰縩"
LangString Text_Creation_Kit ${LANG_TRADCHINESE} "琌杆﹛よ絪胯竟 Creation Kit"
LangString Text_Tools_Package ${LANG_TRADCHINESE} "琌杆笴栏盽ノㄣ"
LangString Text_Delete_All ${LANG_TRADCHINESE} "睲俱笴栏ヘ魁"
LangString Text_Registry_Detected ${LANG_TRADCHINESE} "摧痙爹盡"
LangString Text_File_Detected ${LANG_TRADCHINESE} "摧痙舱篈郎"
LangString Text_Game_Installed ${LANG_TRADCHINESE} "杆岿筿福ず杆侣セ┪杆侣郎⊿ΤЧ更爱瞓岿粇戈癟叫確闽岿粇杆穝笴栏"
LangString Text_Cleaning ${LANG_TRADCHINESE} "琌笆確钡杆$\n匡拒絋﹚盢笆確秈杆匡拒玥確岿粇"
LangString Text_UAC_Warn ${LANG_TRADCHINESE} "盎代璶盢祘Α杆 Program Files ヘ魁"
LangString Text_UAC_Warn_Desc ${LANG_TRADCHINESE} "硂琌 VistaWin7 籔 Win8 炊筂拜肈狦р笴栏杆 Program Files ヘ魁ず笴栏の杆祘Α穦 UAC 紇臫τ礚猭タ盽眖τ玻ネ礚猭箇璸岿粇穦礚猭币笆$\n$\nи眏疨某秸俱ㄤ隔畖ゑ C:\Games\Skyrim"
LangString Text_Unicode ${LANG_TRADCHINESE} "杆隔畖ぃいゅ叫穝匡拒杆隔畖"
LangString Text_Run ${LANG_TRADCHINESE} "$INSTDIR\SkyrimLauncherCN.exe"
LangString Text_Run_Text ${LANG_TRADCHINESE} "磅︽笴栏"
LangString Text_FZCY ${LANG_TRADCHINESE} "よタ彩蛾"
LangString Text_FZSH ${LANG_TRADCHINESE} "よタ堵"
LangString Text_FZZY ${LANG_TRADCHINESE} "よタ蛾"
LangString Text_FZJT ${LANG_TRADCHINESE} "よタ糃砰"
LangString Text_MSYHA ${LANG_TRADCHINESE} "稬硁懂堵A"
LangString Text_MSYHB ${LANG_TRADCHINESE} "稬硁懂堵B"
LangString Text_FZSZ ${LANG_TRADCHINESE} "よタ琖"
LangString Text_MNZY ${LANG_TRADCHINESE} "癵竂美"
LangString Text_FZTYS ${LANG_TRADCHINESE} "よタ疭懂Ш"
LangString Text_ZHSRX ${LANG_TRADCHINESE} "眎綰坑"
LangString Text_FZZYS ${LANG_TRADCHINESE} "よタ懂Ш"
LangString Text_FZXZ ${LANG_TRADCHINESE} "よタ腶皐絝跑"
LangString Text_FZZZHS ${LANG_TRADCHINESE} "よタタ堵虏"
LangString Text_FZZZH ${LANG_TRADCHINESE} "よタタ堵"

Var Dialog
Var Label
Var Font
Var Image
Var ImageHandle

Var FontChose
Var FontID
Var ErrorMsg

InstType "$(Section_Typical)"
InstType "$(Section_Simple)"

Section "$(Text_BaseFiles)" Desc_BaseFiles
	SectionIn 1 2 RO
	w7tbp::Start

	DetailPrint "$(Text_Installing) Skyrim ..."
	CABSetup::Extract "/SOURCE=$EXEDIR\Source\skyrim1.cab" "/TARGET=$INSTDIR" /ALL "/reportfile=$PLUGINSDIR\skyrim.rpt" "/showrate" "/resume" |
	Pop $R0
	DetailPrint "$(Text_Installing) HearthFires ..."
	CABSetup::Extract "/SOURCE=$EXEDIR\Source\HearthFires.cab" "/TARGET=$INSTDIR\Data" /ALL "/reportfile=$PLUGINSDIR\HearthFires.rpt" "/showrate" "/resume" |
	Pop $R0
	DetailPrint "$(Text_Installing) Dawnguard ..."
	CABSetup::Extract "/SOURCE=$EXEDIR\Source\Dawnguard.cab" "/TARGET=$INSTDIR\Data" /ALL "/reportfile=$PLUGINSDIR\Dawnguard.rpt" "/showrate" "/resume" |
	Pop $R0
	DetailPrint "$(Text_Installing) Dragonborn ..."
	CABSetup::Extract "/SOURCE=$EXEDIR\Source\Dragonborn.cab" "/TARGET=$INSTDIR\Data" /ALL "/reportfile=$PLUGINSDIR\Dragonborn.rpt" "/showrate" "/resume" |
	Pop $R0

	${IfThen} $R0 = 0 ${|} Goto Done ${|}

	${If} $R0 = 995
		DetailPrint "$(Text_Extract_Cancel)"
		SetDetailsPrint None
		Goto Done
	${EndIf}

	DetailPrint "$(Text_Extract_Fail)$R0"
	Done:
		SetOutPath		"$INSTDIR"
		CreateDirectory	"$DOCUMENTS\My Games\Skyrim"
		DetailPrint		"$(Text_Installing) SkyrimPrefs.ini ..."
		CopyFiles /SILENT "$INSTDIR\Skyrim\SkyrimPrefs.ini" "$DOCUMENTS\My Games\Skyrim"
		DetailPrint 	"$(Text_Installing) Microsoft DirectX ..."
		IfFileExists	"$SYSDIR\D3DX9_43.dll" 0 +6
		IfFileExists	"$SYSDIR\D3DX10_43.dll" 0 +5
		IfFileExists	"$SYSDIR\D3DX11_43.dll" 0 +4
			${GetFileVersion} "$SYSDIR\D3DX9_43.dll" $5
			${VersionCompare} $5 "9.29.952.3111" $R0
			${If} $R0 != "0"
				ExecWait '"$INSTDIR\DirectX10\DXSETUP.exe" /silent'
			${EndIf}
		WriteRegDWORD	HKLM "Software\Valve\Steam\Apps\72850" "DXSetup" "1"
		DetailPrint 	"Microsoft DirectX $(Text_Installed) ..."
		DetailPrint 	"$(Text_Installing) Microsoft Visual C++ 2010 x86 Redistributable ..."
		IfFileExists	"$COMMONFILES\Microsoft Shared\VC\msdia100.dll" 0 +4
			${GetFileVersion} "$COMMONFILES\Microsoft Shared\VC\msdia100.dll" $5
			${VersionCompare} $5 "10.0.40219.1" $R0
			${If} $R0 = "2"
				ExecWait '"$INSTDIR\VCRedist\vcredist_x86.exe" /q /norestart'
			${EndIf}
		WriteRegDWORD	HKLM "Software\Valve\Steam\Apps\72850" "VCRedist" "1"
		DetailPrint		"Microsoft Visual C++ 2010 x86 Redistributable $(Text_Installed) ..."
		DetailPrint 	"$(Text_Installing) Microsoft .NET Framework 3.5 ..."
		ReadRegDWORD $5 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" "SP"
		${If} $5 != "1"
			ExecWait '"$INSTDIR\DotNetFX\dotnetfx35setup.exe" /q /norestart'
		${EndIf}
		WriteRegDWORD	HKLM "Software\Valve\Steam\Apps\72850" "DotNetFX351" "1"
		DetailPrint		"Microsoft .NET Framework 3.5 $(Text_Installed) ..."
		WriteRegStr		HKLM "SOFTWARE\Bethesda Softworks\Skyrim" "Installed Path" "$INSTDIR\"
		WriteRegStr		HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "DisplayIcon" "$INSTDIR\TESV.exe,0"
		WriteRegStr		HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "DisplayName" "The Elder Scrolls V: Skyrim"
		WriteRegStr		HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "HelpLink" "http://support.steampowered.com/"
		WriteRegStr		HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "InstallLocation" "$INSTDIR"
		WriteRegStr		HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "Publisher" "Bethesda Game Studios"
		WriteRegStr		HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "UninstallString" "$COMMONFILES\Steam App 72850\uninstall.exe"
		WriteRegStr		HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "URLInfoAbout" "http://www.elderscrolls.com"
		WriteRegDWORD	HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "NoRepair" 1
		WriteRegDWORD	HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "NoModify" 1
		CreateDirectory "$COMMONFILES\Steam App 72850"
		WriteUninstaller "$COMMONFILES\Steam App 72850\uninstall.exe"
SectionEnd

SectionGroup /e "$(Text_Crack)" Desc_Crack
	Section "3DM" Desc_3DM_Crack
		SectionIn 1
		DetailPrint "$(Text_Installing) $(Text_Crack_Desc_3DM) ..."
		CopyFiles /SILENT "$EXEDIR\Crack\3DM\*.*" "$INSTDIR" 18781
	SectionEnd

	Section "RELOADED" Desc_RELOADED_Crack
		DetailPrint "$(Text_Installing) $(Text_Crack_Desc_RELOADED) ..."
		CopyFiles /SILENT "$EXEDIR\Crack\RELOADED\*.*" "$INSTDIR" 18713
	SectionEnd
SectionGroupEnd

Section "$(Text_Hans)" Desc_Hans
	SectionIn 1
	${If} $LANGUAGE == ${LANG_SIMPCHINESE}
		DetailPrint "$(Text_Installing)$(Text_Hans) ..."
		CopyFiles /SILENT "$EXEDIR\Chinese\Simplified\*.*" "$INSTDIR" 65228
	${ElseIf} $LANGUAGE == ${LANG_TRADCHINESE}
		DetailPrint "$(Text_Installing)$(Text_Hans) ..."
		CopyFiles /SILENT "$EXEDIR\Chinese\Traditional\*.*" "$INSTDIR" 66150
	${EndIf}
SectionEnd

Section "$(Text_Font)" Desc_Font
	SectionIn 1
	DetailPrint "$(Text_Installing)$(Text_Font) $FontChose ..."
	CopyFiles /SILENT "$EXEDIR\Fonts\$FontID\*.*" "$INSTDIR"
SectionEnd

Section "$(Text_Manual)" Desc_Manual
	SectionIn 1
	DetailPrint "$(Text_Installing) $(Text_Manual) ..."
	CopyFiles /SILENT "$EXEDIR\Manual\skyrim_gfw_manual-07.pdf" "$INSTDIR" 6572
SectionEnd

Section "$(Text_Start_Shortcut)" Desc_Start
	SectionIn 1
	CreateDirectory "$SMPROGRAMS\Steam"
	CreateShortCut "$SMPROGRAMS\Steam\Skyrim.lnk" "$(Text_Run)"
SectionEnd

Section "$(Text_Desktop_Shortcut)" Desc_Desktop
	SectionIn 1
	CreateShortCut "$DESKTOP\Skyrim.lnk" "$(Text_Run)"
SectionEnd

Section "-Tools"
	DetailPrint "$(Text_Copying) Creation Kit"
	CopyFiles /SILENT "$EXEDIR\Tools\Creation Kit 1.9.32.0.exe" "$INSTDIR"
	MessageBox MB_YESNO|MB_ICONINFORMATION|MB_SETFOREGROUND|MB_DEFBUTTON1 "$(Text_Creation_Kit)" IDYES 0 IDNO +2
		ExecWait "$INSTDIR\Creation Kit 1.9.32.0.exe"
	DetailPrint "$(Text_Copying) Unofficial Skyrim Tools Package"
	CopyFiles /SILENT "$EXEDIR\Tools\Unofficial Skyrim Tools Package 2013.05.09.exe" "$INSTDIR"
	MessageBox MB_YESNO|MB_ICONINFORMATION|MB_SETFOREGROUND|MB_DEFBUTTON1 "$(Text_Tools_Package)" IDYES 0 IDNO +2
		ExecWait "$INSTDIR\Unofficial Skyrim Tools Package 2013.05.09.exe"
SectionEnd

Section "uninstall"
	w7tbp::Start
	Delete "$INSTDIR\3DMGAME.ini"
	Delete "$INSTDIR\3DM\3dm.dds"
	RMDir  "$INSTDIR\3DM"
	Delete "$INSTDIR\Creation Kit 1.9.32.0.exe"
	Delete "$INSTDIR\Data\Interface\book.swf"
	Delete "$INSTDIR\Data\Interface\Translate_ENGLISH.txt"
	Delete "$INSTDIR\Data\Interface\fontconfig.txt"
	Delete "$INSTDIR\Data\Interface\fonts_console.swf"
	Delete "$INSTDIR\Data\Interface\fonts_en.swf"
	Delete "$INSTDIR\Data\Interface\MyFont.swf"
	Delete "$INSTDIR\Data\Interface\ZHSRX.swf"
	Delete "$INSTDIR\Data\Interface\MNZY.swf"
	Delete "$INSTDIR\Data\Interface\FZZZH.swf"
	Delete "$INSTDIR\Data\Interface\MSYH.swf"
	Delete "$INSTDIR\Data\Interface\FZSZ.swf"
	Delete "$INSTDIR\Data\Interface\FZSH.swf"
	Delete "$INSTDIR\Data\Interface\FZJT.swf"
	Delete "$INSTDIR\Data\Interface\FZXZ.swf"
	RMDir  "$INSTDIR\Data\Interface"
	Delete "$INSTDIR\Data\Strings\Skyrim_English.DLSTRINGS"
	Delete "$INSTDIR\Data\Strings\Skyrim_English.ILSTRINGS"
	Delete "$INSTDIR\Data\Strings\Skyrim_English.STRINGS"
	Delete "$INSTDIR\Data\Strings\Update_English.DLSTRINGS"
	Delete "$INSTDIR\Data\Strings\Update_English.ILSTRINGS"
	Delete "$INSTDIR\Data\Strings\Update_English.STRINGS"
	RMDir  "$INSTDIR\Data\Strings"
	Delete "$INSTDIR\Data\Textures\architecture\markarth\mrksignalchemyshop01_g.dds"
	Delete "$INSTDIR\Data\Textures\architecture\markarth\mrksigngengoods01_g.dds"
	Delete "$INSTDIR\Data\Textures\architecture\markarth\mrksignsbinn01_g.dds"
	RMDir  "$INSTDIR\Data\Textures\architecture\markarth"
	Delete "$INSTDIR\Data\Textures\architecture\solitude\eastempireco_g.dds"
	RMDir  "$INSTDIR\Data\Textures\architecture\solitude"
	RMDir  "$INSTDIR\Data\Textures\architecture"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signbraidwoodinn01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signdeadmansdrink01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signfourshieldstavern01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signfrostfruitinn01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signfrozenhearth01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signmoorsideinn01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signnightgateinn01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signoldhroldan01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signvilemyr01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\inns\signwindpeakinn01_g.dds"
	RMDir  "$INSTDIR\Data\Textures\clutter\signage\inns"
	Delete "$INSTDIR\Data\Textures\clutter\signage\riften\signrtbeeandbarb01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\riften\signrtblackbriarmeadery01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\riften\signrtfishery01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\riften\signrtorphanage01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\riften\signrtpawnshop01_g.dds"
	RMDir  "$INSTDIR\Data\Textures\clutter\signage\riften"
	Delete "$INSTDIR\Data\Textures\clutter\signage\riverwood\riverwoodblacksmith01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\riverwood\riverwoodriverwoodtrader01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\riverwood\riverwoodsleepinggiantinn01_g.dds"
	RMDir  "$INSTDIR\Data\Textures\clutter\signage\riverwood"
	Delete "$INSTDIR\Data\Textures\clutter\signage\roadsigns\roadsignscities01.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\roadsigns\roadsignscities01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\roadsigns\roadsignscities01_n.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\roadsigns\roadsignsnorthern01.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\roadsigns\roadsignsnorthern01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\roadsigns\roadsignsnorthern01_n.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\roadsigns\roadsignssouthern01.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\roadsigns\roadsignssouthern01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\roadsigns\roadsignssouthern01_n.dds"
	RMDir  "$INSTDIR\Data\Textures\clutter\signage\roadsigns"
	Delete "$INSTDIR\Data\Textures\clutter\signage\solitude\sangelinearomatics_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\solitude\sbitsandpices_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\solitude\sfletcher_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\solitude\sradientraiments_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signage\solitude\swinkingskeever_g.dds"
	RMDir  "$INSTDIR\Data\Textures\clutter\signage\solitude"
	RMDir  "$INSTDIR\Data\Textures\clutter\signage"
	Delete "$INSTDIR\Data\Textures\clutter\signalchemyshop01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signbanneredmare01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signcandlehearthinn01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signdrunkenhuntsman_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signgeneralgoods01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signhonningbrewmeadery01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signraggedflagon01_g.dds"
	Delete "$INSTDIR\Data\Textures\clutter\signstables01_g.dds"
	RMDir  "$INSTDIR\Data\Textures\clutter"
	RMDir  "$INSTDIR\Data\Textures"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ai_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\a_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ba_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\bei_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ben_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\boo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\bo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\bu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\cheng_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\che_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\chi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\chuan_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\dai_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\dang_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\dan_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\da_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\de_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\dian_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\dii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\di_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\dong_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\dui_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\du_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\fou_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ge_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\gong_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\gon_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\guan_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\guo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\guu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\gu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\haii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\hai_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\hao_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\hee_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\heng_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\he_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\hong_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\huang_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\huanying_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\huan_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\huo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\jang_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\jian_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\jia_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\jie_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\jii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\jingguo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\jing_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\jin_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\jiu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ji_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ka_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\kee_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ke_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\kuang_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\lai_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\lin_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\li_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\long_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\luoo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\luo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\maa_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ma_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\meiii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\meii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\meili_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\mei_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\men_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\mi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\mo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\naa_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\nai_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\na_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\nii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ning_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ni_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\no_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\pai_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\pei_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\po_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\qe_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\qian_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\qin_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\qi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\qu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ran_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\re_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ru_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\san_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\seng_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\sen_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\se_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\shang_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\sheng_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\she_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\shii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\shi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\shuoo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\shuoren_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\shuo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\shu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\sii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\si_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\song_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\sui_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\suo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\taa_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\tai_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ta_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\tian_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\tongguo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\tong_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\tou_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\uo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\wa_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\weii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\wei_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\wi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\wo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\wuu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\wu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\xian_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\xiao_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\xie_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\xing_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\xiwang_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\xi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\xuee_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\xue_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\xu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\yan_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\yao_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ya_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\yee_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\ye_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\yii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\yi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\yon_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\you_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\yuren_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\yuu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\yu_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zai_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zao_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zengshi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zeng_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zhan_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zheng_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zhe_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zhii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zhi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zhong_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zi_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zong_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zuan_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zuii_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zui_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zun_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zuoo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zuo_letter.png"
	Delete "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters\zu_letter.png"
	RMDir  "$INSTDIR\Data\Textures\Interface\Books\Illuminated_Letters"
	RMDir  "$INSTDIR\Data\Textures\Interface\Books"
	RMDir  "$INSTDIR\Data\Textures\Interface"
	RMDir  "$INSTDIR\Data\Textures"
	Delete "$INSTDIR\Data\Video\BGS_Logo.bik"
	RMDir  "$INSTDIR\Data\Video"
	Delete "$INSTDIR\Data\Dawnguard.bsa"
	Delete "$INSTDIR\Data\Dawnguard.esm"
	Delete "$INSTDIR\Data\Dragonborn.bsa"
	Delete "$INSTDIR\Data\Dragonborn.esm"
	Delete "$INSTDIR\Data\HearthFires.bsa"
	Delete "$INSTDIR\Data\HearthFires.esm"
	Delete "$INSTDIR\Data\Skyrim - Animations.bsa"
	Delete "$INSTDIR\Data\Skyrim - Interface.bsa"
	Delete "$INSTDIR\Data\Skyrim - Meshes.bsa"
	Delete "$INSTDIR\Data\Skyrim - Misc.bsa"
	Delete "$INSTDIR\Data\Skyrim - Shaders.bsa"
	Delete "$INSTDIR\Data\Skyrim - Sounds.bsa"
	Delete "$INSTDIR\Data\Skyrim - Textures.bsa"
	Delete "$INSTDIR\Data\Skyrim - Voices.bsa"
	Delete "$INSTDIR\Data\Skyrim - VoicesExtra.bsa"
	Delete "$INSTDIR\Data\Skyrim.esm"
	Delete "$INSTDIR\Data\Update.bsa"
	Delete "$INSTDIR\Data\Update.esm"
	RMDir  "$INSTDIR\Data"
	Delete "$INSTDIR\DirectX10\*.*"
	RMDir  "$INSTDIR\DirectX10"
	Delete "$INSTDIR\DotNetFX\dotnetfx35setup.exe"
	RMDir  "$INSTDIR\DotNetFX"
	Delete "$INSTDIR\Skyrim\SkyrimPrefs.ini"
	RMDir  "$INSTDIR\Skyrim"
	Delete "$INSTDIR\VCRedist\vcredist_x86.exe"
	RMDir  "$INSTDIR\VCRedist"
	Delete "$INSTDIR\atimgpud.dll"
	Delete "$INSTDIR\binkw32.dll"
	Delete "$INSTDIR\binkw32_ori.dll"
	Delete "$INSTDIR\high.ini"
	Delete "$INSTDIR\installscript.vdf"
	Delete "$INSTDIR\language.txt"
	Delete "$INSTDIR\low.ini"
	Delete "$INSTDIR\medium.ini"
	Delete "$INSTDIR\readme.txt"
	Delete "$INSTDIR\reloaded.nfo"
	Delete "$INSTDIR\SkyrimLauncher.exe"
	Delete "$INSTDIR\SkyrimLauncherCN.exe"
	Delete "$INSTDIR\Skyrim_default.ini"
	Delete "$INSTDIR\skyrim_gfw_manual-07.pdf"
	Delete "$INSTDIR\steam_api.dll"
	Delete "$INSTDIR\Steamclient.dll"
	Delete "$INSTDIR\steam_rld.ini"
	Delete "$INSTDIR\TESV.exe"
	Delete "$INSTDIR\Unofficial Skyrim Tools Package 2013.05.09.exe"
	Delete "$INSTDIR\VeryHigh.ini"
	RMDir  "$INSTDIR"
	Delete "$DESKTOP\Skyrim.lnk"
	Delete "$SMPROGRAMS\Steam\Skyrim.lnk"
	RMDir  "$SMPROGRAMS\Steam"
	MessageBox MB_YESNO|MB_ICONINFORMATION|MB_SETFOREGROUND|MB_DEFBUTTON2 "$(Text_Delete_All)" IDYES 0 IDNO +2
		RMDir /r "$INSTDIR"
	DeleteRegKey HKLM "Software\Bethesda Softworks\Skyrim"
	DeleteRegKey HKLM "Software\Valve\Steam\Apps\72850"
	DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850"
	Delete "$COMMONFILES\Steam App 72850\*.*"
	RMDir  "$COMMONFILES\Steam App 72850"
SectionEnd

Function .onInit
	!insertmacro MUI_LANGDLL_DISPLAY

	InitPluginsDir
	File /oname=$PLUGINSDIR\FZCY.bmp		".\Fonts\-- Preview\FZCY.bmp"
	File /oname=$PLUGINSDIR\FZJT.bmp		".\Fonts\-- Preview\FZJT.bmp"
	File /oname=$PLUGINSDIR\FZSH.bmp		".\Fonts\-- Preview\FZSH.bmp"
	File /oname=$PLUGINSDIR\FZSZ.bmp		".\Fonts\-- Preview\FZSZ.bmp"
	File /oname=$PLUGINSDIR\FZTYS.bmp		".\Fonts\-- Preview\FZTYS.bmp"
	File /oname=$PLUGINSDIR\FZXZ.bmp		".\Fonts\-- Preview\FZXZ.bmp"
	File /oname=$PLUGINSDIR\FZZZHS.bmp		".\Fonts\-- Preview\FZZZHS.bmp"
	File /oname=$PLUGINSDIR\FZZZH.bmp		".\Fonts\-- Preview\FZZZH.bmp"
	File /oname=$PLUGINSDIR\FZZYS.bmp		".\Fonts\-- Preview\FZZYS.bmp"
	File /oname=$PLUGINSDIR\FZZY.bmp		".\Fonts\-- Preview\FZZY.bmp"
	File /oname=$PLUGINSDIR\MNZY.bmp		".\Fonts\-- Preview\MNZY.bmp"
	File /oname=$PLUGINSDIR\MSYHA.bmp		".\Fonts\-- Preview\MSYHA.bmp"
	File /oname=$PLUGINSDIR\MSYHB.bmp		".\Fonts\-- Preview\MSYHB.bmp"
	File /oname=$PLUGINSDIR\ZHSRX.bmp		".\Fonts\-- Preview\ZHSRX.bmp"
	File /oname=$PLUGINSDIR\skyrim.rpt		".\skyrim.rpt"
	File /oname=$PLUGINSDIR\HearthFires.rpt	".\HearthFires.rpt"
	File /oname=$PLUGINSDIR\Dawnguard.rpt	".\Dawnguard.rpt"
	File /oname=$PLUGINSDIR\Dragonborn.rpt	".\Dragonborn.rpt"
FunctionEnd

Function onGUIInit
	StrCpy $ErrorMsg ""
	${If} ${RunningX64}   
		SetRegView 64
	${EndIf} 

	ReadRegStr $R1 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "DisplayName"
	${If} $R1 != ""
		StrCpy $ErrorMsg "$ErrorMsg$\n* $(Text_Registry_Detected)HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850"
	${EndIf}
	ReadRegStr $R1 HKLM "Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850" "DisplayName"
	${If} $R1 != ""
		StrCpy $ErrorMsg "$ErrorMsg$\n* $(Text_Registry_Detected)HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850"
	${EndIf}

	ReadRegStr $R1 HKLM "Software\Bethesda Softworks\Skyrim" "Installed Path"
	${If} $R1 != ""
		StrCpy $ErrorMsg "$ErrorMsg$\n* $(Text_Registry_Detected)HKEY_LOCAL_MACHINE\Software\Bethesda Softworks\Skyrim\"
	${EndIf}
	ReadRegStr $R1 HKLM "Software\Wow6432Node\Bethesda Softworks\Skyrim" "Installed Path"
	${If} $R1 != ""
		StrCpy $ErrorMsg "$ErrorMsg$\n* $(Text_Registry_Detected)HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Skyrim\"
	${EndIf}

	IfFileExists "$DOCUMENTS\My Games\Skyrim\Skyrim.ini" 0 +2
		StrCpy $ErrorMsg "$ErrorMsg$\n* $(Text_File_Detected)$DOCUMENTS\My Games\Skyrim\Skyrim.ini"
	IfFileExists "$DOCUMENTS\My Games\Skyrim\SkyrimPrefs.ini" 0 +2
		StrCpy $ErrorMsg "$ErrorMsg$\n* $(Text_File_Detected)$DOCUMENTS\My Games\Skyrim\SkyrimPrefs.ini"

	${If} $ErrorMsg != ""
		MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "$(Text_Game_Installed)$\n$ErrorMsg$\n$\n$(Text_Cleaning)" IDOK anto IDCANCEL manual
		manual:
			Abort
		anto:
			DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850"
			DeleteRegKey HKLM "Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 72850"
			DeleteRegKey HKLM "Software\Bethesda Softworks\Skyrim"
			DeleteRegKey HKLM "Software\Wow6432Node\Bethesda Softworks\Skyrim"
			Rename "$DOCUMENTS\My Games\Skyrim\Skyrim.ini" "$DOCUMENTS\My Games\Skyrim\Skyrim.ini.backup"
			Rename "$DOCUMENTS\My Games\Skyrim\SkyrimPrefs.ini" "$DOCUMENTS\My Games\Skyrim\SkyrimPrefs.ini.backup"
	${EndIf}

	; Detect Steam
	ReadRegStr $1 HKLM "Software\Valve\Steam" "InstallPath"
	${IF} $1 == ""
		ReadRegStr $1 HKLM "Software\Wow6432Node\Valve\Steam" "InstallPath"
	${EndIf}
	${IF} $1 == ""
		StrCpy $INSTDIR "$PROGRAMFILES\Bethesda Softworks\Skyrim"
	${Else}
		StrCpy $INSTDIR "$1\steamapps\common\Skyrim"
	${EndIf}

	SectionSetSize ${Desc_BaseFiles} 9038994

	${If} $LANGUAGE == ${LANG_ENGLISH}
		SectionSetFlags ${Desc_Hans} "SECTION_OFF"
		SectionSetText ${Desc_Hans} ""
		SectionSetFlags ${Desc_Font} "SECTION_OFF"
		SectionSetText ${Desc_Font} ""
	${ElseIf} $LANGUAGE == ${LANG_SIMPCHINESE}
		SectionSetSize ${Desc_Hans} 65228
	${ElseIf} $LANGUAGE == ${LANG_TRADCHINESE}
		SectionSetSize ${Desc_Hans} 66150
	${EndIf}

	SetRegView lastused

	; Add an "Update(&U)" button at the left corner on every page.
	System::Call `*(i8,i201,i50,i14)i.R0`
	System::Call `user32::MapDialogRect(i$HWNDPARENT,iR0)`
	System::Call `*$R0(i.R1,i.R2,i.R3,i.R4)`
	System::Free $R0
	System::Call `user32::CreateWindowEx(i,ts,ts,i${BS_PUSHBUTTON}|${WS_CHILD}|${WS_VISIBLE}|${WS_TABSTOP},iR1,iR2,iR3,iR4,i$HWNDPARENT,i1300,i,i)i.R0` `Button` `$(Text_Update)`
	SendMessage $HWNDPARENT ${WM_GETFONT} 0 0 $0
	SendMessage $R0 ${WM_SETFONT} $0 0
	GetFunctionAddress $R0 FuncAbout
	ButtonEvent::AddEventHandler 1300 $R0
FunctionEnd

Function FuncAbout
	ExecShell "open" "http://tesfans.org/category/skyrim/"
FunctionEnd

Function un.onInit
	!insertmacro MUI_UNGETLANGUAGE
	StrCpy $INSTDIR ""
	ReadRegStr $INSTDIR HKLM "Software\Bethesda Softworks\Skyrim" "Installed Path"
	${If} $INSTDIR == ""
		ReadRegStr $INSTDIR HKLM "Software\Wow6432Node\Bethesda Softworks\Skyrim" "Installed Path"
	${EndIf}
FunctionEnd

Function DirectoryLeave
	${If} $INSTDIR =~ "[一-龥]"
		MessageBox MB_OK "$(Text_Unicode)"
		Abort
	${EndIf}
FunctionEnd

Function PAGE_CHECK_LOCATIONS
	!insertmacro MUI_HEADER_TEXT $(PAGE_CHECK_LOCATIONS_TITLE) $(PAGE_CHECK_LOCATIONS_SUBTITLE)

	; test for installation in program files
	StrCpy $5 ""
	${StrLoc} $6 $INSTDIR "$PROGRAMFILES\" ">"
	${If} "0" == $6
		StrCpy $5 "1"
	${Endif}

	${If} $5 == ""
		Abort
	${Endif}

	nsDialogs::Create 1018
	Pop $Dialog
	${If} $Dialog == error
		Abort
	${EndIf}

	${NSD_CreateLabel} 0 0 100% 24u "$(Text_UAC_Warn)"
	Pop $Label
	SetCtlColors $Label "FF0000" "transparent"

	${NSD_CreateLabel} 0 24 100% 128u "$(Text_UAC_Warn_Desc)"
	Pop $Label

	nsDialogs::Show
FunctionEnd

Function PAGE_CHECK_LOCATIONS_Leave
FunctionEnd

Function ComponentsLeave
	SectionGetFlags ${Desc_Hans} $3
	SectionGetFlags ${Desc_Font} $4
	${If} $3 == ${SF_SELECTED}
	${AndIf} $4 != ${SF_SELECTED}
		MessageBox MB_OK|MB_ICONINFORMATION "$(Text_Font_Required)"
		SectionSetFlags ${Desc_Font} ${SF_SELECTED}
		Abort
	${EndIf}
FunctionEnd

Function PAGE_FONT
	SectionGetFlags ${Desc_Font} $R1
	${If} $R1 == ${SF_SELECTED}
		nsDialogs::Create 1018
		Pop $Dialog
		${If} $Dialog == error
			Abort
		${EndIf}

		${NSD_CreateListBox} 0u 75u 140u 63u ""
			Pop $Font
		${NSD_LB_AddString} $Font "$(Text_FZCY)"
		${NSD_LB_AddString} $Font "$(Text_FZSH)"
		${NSD_LB_AddString} $Font "$(Text_FZZY)"
		${NSD_LB_AddString} $Font "$(Text_FZJT)"
		${NSD_LB_AddString} $Font "$(Text_MSYHA)"
		${NSD_LB_AddString} $Font "$(Text_MSYHB)"
		${NSD_LB_AddString} $Font "$(Text_FZSZ)"
		${NSD_LB_AddString} $Font "$(Text_MNZY)"
		${NSD_LB_AddString} $Font "$(Text_FZTYS)"
		${NSD_LB_AddString} $Font "$(Text_ZHSRX)"
		${NSD_LB_AddString} $Font "$(Text_FZZYS)"
		${NSD_LB_AddString} $Font "$(Text_FZXZ)"
		${NSD_LB_AddString} $Font "$(Text_FZZZHS)"
		${NSD_LB_AddString} $Font "$(Text_FZZZH)"
		${NSD_OnChange} $Font PAGE_FONTS_Change
		${NSD_LB_SelectString} $Font "$(Text_FZJT)"

		${NSD_CreateLabel} 150u 75u 140u 63u "$(Text_Files)$\n$\tfontconfig.txt$\n$\tfonts_console.swf$\n$\tfonts_en.swf$\n$\tFZJT.swf$\n$(Text_Sizes)$\n$\t2.22MB"
			Pop $Label

		${NSD_CreateBitmap} 0u 0u 280u 68u ""
			Pop $Image
		${NSD_SetImage} $Image $PLUGINSDIR\FZJT.bmp $ImageHandle
		StrCpy $FontChose "$(Text_FZJT)"
		StrCpy $FontID "FZJT"
		nsDialogs::Show
	${Else}
		Abort
	${EndIf}
FunctionEnd

Function PAGE_FONTS_Change
	${NSD_LB_GetSelection} $Font $FontChose
	${If} $FontChose == "$(Text_FZCY)"
		StrCpy $FontID "FZCY"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tMyFont.swf$\n$(Text_Sizes)$\n$\t7.42MB"
	${ElseIf} $FontChose == "$(Text_FZSH)"
		StrCpy $FontID "FZSH"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tfonts_console.swf$\n$\tfonts_en.swf$\n$\tFZSH.swf$\n$(Text_Sizes)$\n$\t3.86MB"
	${ElseIf} $FontChose == "$(Text_FZZY)"
		StrCpy $FontID "FZZY"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tMyFont.swf$\n$(Text_Sizes)$\n$\t7.34MB"
	${ElseIf} $FontChose == "$(Text_FZJT)"
		StrCpy $FontID "FZJT"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tfonts_console.swf$\n$\tfonts_en.swf$\n$\tFZJT.swf$\n$(Text_Sizes)$\n$\t2.22MB"
	${ElseIf} $FontChose == "$(Text_MSYHA)"
		StrCpy $FontID "MSYHA"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tMyFont.swf$\n$(Text_Sizes)$\n$\t5.65MB"
	${ElseIf} $FontChose == "$(Text_MSYHB)"
		StrCpy $FontID "MSYHB"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tfonts_console.swf$\n$\tfonts_en.swf$\n$\tMSYH.swf$\n$(Text_Sizes)$\n$\t8.01MB"
	${ElseIf} $FontChose == "$(Text_FZSZ)"
		StrCpy $FontID "FZSZ"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tfonts_console.swf$\n$\tfonts_en.swf$\n$\tFZSZ.swf$\n$(Text_Sizes)$\n$\t4.20MB"
	${ElseIf} $FontChose == "$(Text_MNZY)"
		StrCpy $FontID "MNZY"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tfonts_console.swf$\n$\tfonts_en.swf$\n$\tMNZY.swf$\n$(Text_Sizes)$\n$\t2.68MB"
	${ElseIf} $FontChose == "$(Text_FZTYS)"
		StrCpy $FontID "FZTYS"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tMyFont.swf$\n$(Text_Sizes)$\n$\t8.00MB"
	${ElseIf} $FontChose == "$(Text_ZHSRX)"
		StrCpy $FontID "ZHSRX"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tfonts_console.swf$\n$\tfonts_en.swf$\n$\tZHSRX.swf$\n$(Text_Sizes)$\n$\t7.38MB"
	${ElseIf} $FontChose == "$(Text_FZZYS)"
		StrCpy $FontID "FZZYS"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tMyFont.swf$\n$(Text_Sizes)$\n$\t7.64MB"
	${ElseIf} $FontChose == "$(Text_FZXZ)"
		StrCpy $FontID "FZXZ"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tfonts_console.swf$\n$\tfonts_en.swf$\n$\tFZXZ.swf$\n$(Text_Sizes)$\n$\t3.75MB"
	${ElseIf} $FontChose == "$(Text_FZZZHS)"
		StrCpy $FontID "FZZZHS"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tMyFont.swf$\n$(Text_Sizes)$\n$\t1.31MB"
	${ElseIf} $FontChose == "$(Text_FZZZH)"
		StrCpy $FontID "FZZZH"
		${NSD_SetText} $Label "$(Text_Files)$\n$\tfontconfig.txt$\n$\tfonts_console.swf$\n$\tfonts_en.swf$\n$\tFZZZH.swf$\n$(Text_Sizes)$\n$\t1.75MB"
	${EndIf}
	${NSD_SetImage} $Image $PLUGINSDIR\$FontID.bmp $ImageHandle
FunctionEnd

Function PAGE_FONT_Leave
	${NSD_FreeImage} $ImageHandle
FunctionEnd

!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
	!insertmacro MUI_DESCRIPTION_TEXT ${Desc_BaseFiles} $(Text_BaseFiles_Desc)
	!insertmacro MUI_DESCRIPTION_TEXT ${Desc_3DM_Crack} $(Text_Crack_Desc_3DM)
	!insertmacro MUI_DESCRIPTION_TEXT ${Desc_RELOADED_Crack} $(Text_Crack_Desc_RELOADED)
	!insertmacro MUI_DESCRIPTION_TEXT ${Desc_Hans} $(Text_Hans_Desc)
	!insertmacro MUI_DESCRIPTION_TEXT ${Desc_Font} $(Text_Font_Desc)
	!insertmacro MUI_DESCRIPTION_TEXT ${Desc_Manual} $(Text_Manual_Desc)
	!insertmacro MUI_DESCRIPTION_TEXT ${Desc_Start} $(Text_Start_Shortcut_Desc)
	!insertmacro MUI_DESCRIPTION_TEXT ${Desc_Desktop} $(Text_Desktop_Shortcut_Desc)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
icedream

About icedream

其实我知道的东西很少,只是翻译了一些东西,悲催的是翻译过后很快就忘了。

2 Responses to 天际传奇版打包脚本

  1. 21455063 2013 年 6 月 16 日 at 下午 6:44 #

    哇,就一个安装脚本这么多代码,程序员好幸苦啊

    • icedream 2013 年 6 月 16 日 at 下午 6:48 #

      这个还行,常见工具包的那个才算复杂。这个的内容长,但是有一半是多语言词汇表和要删除的文件列表。