脚本:千千静听5.5.2.0优化增强版
优质
小牛编辑
140浏览
2023-12-01
; 安装程序初始定义常量 !define PRODUCT_NAME "ttpsetup" !define PRODUCT_VERSION "5.5.2.0" !define PRODUCT_PUBLISHER "XXXX" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\TTPlayer.exe" !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" !define PRODUCT_UNINST_ROOT_KEY "HKLM" !define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir" SetCompressor lzma ; ------ MUI 现代界面定义 (1.67 版本以上兼容) ------ !include "MUI.nsh" ; MUI 预定义常量 !define MUI_ABORTWARNING !define MUI_ICON "..\My Documents\My Pictures\128.ico" !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" !define MUI_WELCOMEFINISHPAGE_BITMAP "C:\Documents and Settings\Administrator\My Documents\My Pictures\wizard.bmp" !define MUI_WELCOMEPAGE_TITLE "\r\n 千千静听5.5.2.0优化增强版" !define MUI_WELCOMEPAGE_TEXT " 千千静听是一款完全免费的音乐播放软件,集播放、音效、转换、歌词等众多功能于一身。其小巧精致、操作简捷、功能强大的特点,深得用户喜爱,本版集成音效增强插件,去除了原版安装程序捆绑的多余程序\r\n\r\n 软件作者:XXXX\r\n\r\n 梦想吧:http://www.dreams8.com/\r\n\r\n $_CLICK" ; 欢迎页面 !insertmacro MUI_PAGE_WELCOME ; 许可协议页面 !insertmacro MUI_PAGE_LICENSE "C:\Documents and Settings\Administrator\My Documents\My Pictures\新建 文本文档.txt" ; 组件选择页面 !insertmacro MUI_PAGE_COMPONENTS ; 安装目录选择页面 !define MUI_DIRECTORYPAGE_TEXT_TOP "本向导将引导您安装千千静听5.5.2.0优化增强版到下列文件夹,要安装到不同文件夹,单击[浏览(B)]并选择其他文件夹。单击[下一步(N)]继续" !insertmacro MUI_PAGE_DIRECTORY ; 开始菜单设置页面 var ICONS_GROUP !define MUI_STARTMENUPAGE_NODISABLE !define MUI_STARTMENUPAGE_DEFAULTFOLDER "千千静听" !define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" !define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}" !insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP ; 安装过程页面 !insertmacro MUI_PAGE_INSTFILES ; 安装完成页面 !define MUI_FINISHPAGE_RUN "$INSTDIR\TTPlayer.exe" !insertmacro MUI_PAGE_FINISH ; 安装卸载过程页面 !insertmacro MUI_UNPAGE_INSTFILES ; 安装界面包含的语言设置 !insertmacro MUI_LANGUAGE "SimpChinese" VIProductVersion "5.5.2.0" VIAddVersionKey /LANG=2052 "ProductName" "XXXX出品" VIAddVersionKey /LANG=2052 "CompanyName" "XXXX" VIAddVersionKey /LANG=2052 "LegalCopyright" "XXX作品" VIAddVersionKey /LANG=2052 "FileDescription" "千千静听5.5.2.0优化增强版" VIAddVersionKey /LANG=2052 "FileVersion" "5.5.2" ; 安装预释放文件 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS ; ------ MUI 现代界面定义结束 ------ ReserveFile "${NSISDIR}\Plugins\advsplash.dll" ReserveFile "..\My Documents\My Pictures\131.bmp" ReserveFile "${NSISDIR}\Plugins\system.dll" ReserveFile "..\My Documents\My Music\44f697851bb48f8e94698b13fe921419.mp3" Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" OutFile "ttpsetup.exe" InstallDir "$PROGRAMFILES\TTPlayer" InstallDirRegKey HKLM "${PRODUCT_UNINST_KEY}" "UninstallString" ShowInstDetails show ShowUnInstDetails show BrandingText " XXX-制作" Section "主程序" SEC01 SetOutPath "$INSTDIR" SetOverwrite ifnewer File "ttpsetup\files\Update.txt" File "ttpsetup\files\ttpres.dll" File "ttpsetup\files\TTPlayer.exe" File "ttpsetup\files\ttpctrl.dll" File "ttpsetup\files\ttpcomm.dll" File "ttpsetup\files\tak_deco_lib.dll" File "ttpsetup\files\mp3PRO.dll" File "ttpsetup\files\FAQ.txt" File "ttpsetup\files\browser.dll" SetOutPath "$INSTDIR\AddIn" File "ttpsetup\files\AddIn\ttp_aac.dll" File "ttpsetup\files\AddIn\ttp_ac3dts.dll" File "ttpsetup\files\AddIn\ttp_ape.dll" File "ttpsetup\files\AddIn\ttp_asf.dll" File "ttpsetup\files\AddIn\ttp_clienc.dll" File "ttpsetup\files\AddIn\ttp_enc.dll" File "ttpsetup\files\AddIn\ttp_flac.dll" File "ttpsetup\files\AddIn\ttp_lrcsh.dll" File "ttpsetup\files\AddIn\ttp_mod.dll" File "ttpsetup\files\AddIn\ttp_mpc.dll" File "ttpsetup\files\AddIn\ttp_ogg.dll" File "ttpsetup\files\AddIn\ttp_rm.dll" File "ttpsetup\files\AddIn\ttp_tak.dll" SetOutPath "$INSTDIR\Skin" File "ttpsetup\files\Skin\ArcticAMP.skn" File "ttpsetup\files\Skin\Let's Web.skn" File "ttpsetup\files\Skin\orange.skn" File "ttpsetup\files\Skin\PurpleMyth.skn" File "ttpsetup\files\Skin\Thebes.skn" File "ttpsetup\files\Skin\Winamp Modern.skn" File "ttpsetup\files\Skin\WMP10.skn" RegDLL "$INSTDIR\ttpres.dll" RegDLL "$INSTDIR\ttpctrl.dll" RegDLL "$INSTDIR\ttpcomm.dll" RegDLL "$INSTDIR\tak_deco_lib.dll" RegDLL "$INSTDIR\browser.dll" RegDLL "$INSTDIR\mp3PRO.dll" ; 创建开始菜单快捷方式 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateDirectory "$SMPROGRAMS\$ICONS_GROUP" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\千千静听.lnk" "$INSTDIR\TTPlayer.exe" CreateShortCut "$DESKTOP\千千静听.lnk" "$INSTDIR\TTPlayer.exe" !insertmacro MUI_STARTMENU_WRITE_END SectionEnd Section "第三方音效增强插件" SEC02 SetOutPath "$INSTDIR\plugins\DFX" File "ttpsetup\files\plugins\DFX\dfxwsettings.exe" SetOutPath "$INSTDIR\plugins\DFX\Presets\Factsoft" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\1.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\10.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\11.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\12.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\13.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\14.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\15.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\16.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\17.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\18.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\19.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\2.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\20.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\21.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\22.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\23.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\24.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\25.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\26.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\27.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\28.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\29.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\3.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\30.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\31.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\32.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\33.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\34.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\35.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\36.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\37.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\38.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\39.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\4.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\5.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\6.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\7.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\8.fac" File "ttpsetup\files\plugins\DFX\Presets\Factsoft\9.fac" SetOutPath "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\all_off.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\headphone_on.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\master.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\music1_on.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\music2_on.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\no_audio.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_0.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_1.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_10.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_2.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_3.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_4.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_5.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_6.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_7.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_8.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\number_9.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\section_off.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\skin_definition.txt" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\skin_info.txt" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\slider.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_1.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_10.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_11.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_12.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_13.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_14.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_15.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_16.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_17.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_18.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_19.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_2.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_20.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_3.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_4.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_5.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_6.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_7.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_8.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_9.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_1.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_10.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_11.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_12.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_13.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_14.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_15.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_16.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_17.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_18.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_19.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_2.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_20.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_3.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_4.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_5.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_6.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_7.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_8.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_9.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_1.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_10.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_11.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_12.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_13.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_14.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_15.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_16.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_17.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_18.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_19.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_2.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_20.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_3.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_4.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_5.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_6.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_7.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_8.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_9.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_1.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_10.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_11.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_12.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_13.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_14.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_15.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_16.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_17.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_18.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_19.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_2.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_20.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_3.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_4.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_5.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_6.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_7.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_8.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_9.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_1.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_10.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_11.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_12.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_13.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_14.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_15.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_16.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_17.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_18.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_19.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_2.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_20.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_3.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_4.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_5.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_6.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_7.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_8.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_9.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\speech_on.bmp" File "ttpsetup\files\plugins\DFX\Shared\Skins\default_Winamp\Thumbs.db" SetOutPath "$INSTDIR\plugins" File "ttpsetup\files\plugins\dsp_dfx.dll" File "ttpsetup\files\plugins\dsp_enh.dll" SetOutPath "$INSTDIR\plugins\Enhancer\017" File "ttpsetup\files\plugins\Enhancer\017\enhancer.gif" File "ttpsetup\files\plugins\Enhancer\017\enhancer.set" File "ttpsetup\files\plugins\Enhancer\017\Thumbs.db" RegDLL "$INSTDIR\plugins\dsp_dfx.dll" RegDLL "$INSTDIR\plugins\dsp_enh.dll" ; 创建开始菜单快捷方式 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application !insertmacro MUI_STARTMENU_WRITE_END SectionEnd Section -AdditionalIcons SetOutPath $INSTDIR !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe" !insertmacro MUI_STARTMENU_WRITE_END SectionEnd Section -Post WriteUninstaller "$INSTDIR\uninst.exe" WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\TTPlayer.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\TTPlayer.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" SectionEnd #-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--# ; 区段组件描述 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "5.5.2.0主程序(已包含对CD,MP3等格式的支持)" !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "音效增强插件,推荐安装" !insertmacro MUI_FUNCTION_DESCRIPTION_END Function .onInit InitPluginsDir File "/oname=$PLUGINSDIR\Splash_131.bmp" "..\My Documents\My Pictures\131.bmp" ; 使用闪屏插件显示闪屏 advsplash::show 1000 600 400 -1 "$PLUGINSDIR\Splash_131" Pop $0 ; $0 返回 '1' 表示用户提前关闭闪屏, 返回 '0' 表示闪屏正常结束, 返回 '-1' 表示闪屏显示出错 File "/oname=$PLUGINSDIR\bgm_44f697851bb48f8e94698b13fe921419.mp3" "..\My Documents\My Music\44f697851bb48f8e94698b13fe921419.mp3" ; 打开音乐文件 System::Call "winmm.dll::mciSendString(t 'OPEN $PLUGINSDIR\bgm_44f697851bb48f8e94698b13fe921419.mp3 TYPE MPEGVIDEO ALIAS BGMUSIC', t .r0, i 130, i 0)" ; 开始播放音乐文件 System::Call "winmm.dll::mciSendString(t 'PLAY BGMUSIC NOTIFY REPEAT', t .r0, i 130, i 0)" FunctionEnd Function .onGUIEnd ; 停止播放音乐文件 System::Call "winmm.dll::mciSendString(t 'STOP BGMUSIC',t .r0,i 130,i 0)" ; 关闭音乐文件 System::Call "winmm.dll::mciSendString(t 'CLOSE BGMUSIC',t .r0,i 130,i 0)" FunctionEnd /****************************** * 以下是安装程序的卸载部分 * ******************************/ Section Uninstall !insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP Delete "$INSTDIR\uninst.exe" Delete "$INSTDIR\plugins\Enhancer\017\Thumbs.db" Delete "$INSTDIR\plugins\Enhancer\017\enhancer.set" Delete "$INSTDIR\plugins\Enhancer\017\enhancer.gif" Delete "$INSTDIR\plugins\dsp_enh.dll" Delete "$INSTDIR\plugins\dsp_dfx.dll" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\Thumbs.db" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\speech_on.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_9.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_8.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_7.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_6.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_5.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_4.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_3.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_20.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_2.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_19.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_18.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_17.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_16.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_15.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_14.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_13.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_12.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_11.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_10.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_5_1.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_9.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_8.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_7.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_6.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_5.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_4.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_3.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_20.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_2.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_19.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_18.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_17.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_16.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_15.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_14.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_13.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_12.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_11.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_10.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_4_1.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_9.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_8.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_7.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_6.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_5.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_4.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_3.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_20.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_2.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_19.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_18.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_17.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_16.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_15.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_14.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_13.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_12.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_11.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_10.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_3_1.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_9.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_8.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_7.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_6.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_5.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_4.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_3.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_20.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_2.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_19.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_18.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_17.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_16.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_15.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_14.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_13.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_12.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_11.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_10.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_2_1.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_9.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_8.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_7.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_6.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_5.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_4.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_3.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_20.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_2.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_19.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_18.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_17.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_16.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_15.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_14.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_13.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_12.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_11.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_10.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\spectrum_1_1.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\slider.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\skin_info.txt" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\skin_definition.txt" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\section_off.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_9.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_8.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_7.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_6.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_5.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_4.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_3.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_2.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_10.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_1.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\number_0.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\no_audio.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\music2_on.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\music1_on.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\master.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\headphone_on.bmp" Delete "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp\all_off.bmp" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\9.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\8.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\7.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\6.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\5.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\4.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\39.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\38.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\37.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\36.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\35.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\34.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\33.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\32.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\31.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\30.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\3.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\29.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\28.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\27.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\26.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\25.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\24.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\23.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\22.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\21.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\20.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\2.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\19.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\18.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\17.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\16.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\15.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\14.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\13.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\12.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\11.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\10.fac" Delete "$INSTDIR\plugins\DFX\Presets\Factsoft\1.fac" Delete "$INSTDIR\plugins\DFX\dfxwsettings.exe" Delete "$INSTDIR\Skin\WMP10.skn" Delete "$INSTDIR\Skin\Winamp Modern.skn" Delete "$INSTDIR\Skin\Thebes.skn" Delete "$INSTDIR\Skin\PurpleMyth.skn" Delete "$INSTDIR\Skin\orange.skn" Delete "$INSTDIR\Skin\Let's Web.skn" Delete "$INSTDIR\Skin\ArcticAMP.skn" Delete "$INSTDIR\AddIn\ttp_tak.dll" Delete "$INSTDIR\AddIn\ttp_rm.dll" Delete "$INSTDIR\AddIn\ttp_ogg.dll" Delete "$INSTDIR\AddIn\ttp_mpc.dll" Delete "$INSTDIR\AddIn\ttp_mod.dll" Delete "$INSTDIR\AddIn\ttp_lrcsh.dll" Delete "$INSTDIR\AddIn\ttp_flac.dll" Delete "$INSTDIR\AddIn\ttp_enc.dll" Delete "$INSTDIR\AddIn\ttp_clienc.dll" Delete "$INSTDIR\AddIn\ttp_asf.dll" Delete "$INSTDIR\AddIn\ttp_ape.dll" Delete "$INSTDIR\AddIn\ttp_ac3dts.dll" Delete "$INSTDIR\AddIn\ttp_aac.dll" Delete "$INSTDIR\browser.dll" Delete "$INSTDIR\FAQ.txt" Delete "$INSTDIR\mp3PRO.dll" Delete "$INSTDIR\tak_deco_lib.dll" Delete "$INSTDIR\ttpcomm.dll" Delete "$INSTDIR\ttpctrl.dll" Delete "$INSTDIR\TTPlayer.exe" Delete "$INSTDIR\ttpres.dll" Delete "$INSTDIR\Update.txt" Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" Delete "$DESKTOP\千千静听.lnk" Delete "$SMPROGRAMS\$ICONS_GROUP\千千静听.lnk" UnRegDLL "$INSTDIR\ttpres.dll" UnRegDLL "$INSTDIR\ttpctrl.dll" UnRegDLL "$INSTDIR\ttpcomm.dll" UnRegDLL "$INSTDIR\tak_deco_lib.dll" UnRegDLL "$INSTDIR\browser.dll" UnRegDLL "$INSTDIR\mp3PRO.dll" UnRegDLL "$INSTDIR\plugins\dsp_dfx.dll" UnRegDLL "$INSTDIR\plugins\dsp_enh.dll" RMDir "$SMPROGRAMS\$ICONS_GROUP" RMDir "$INSTDIR\Skin" RMDir "$INSTDIR\plugins\Enhancer\017" RMDir "$INSTDIR\plugins\DFX\Shared\Skins\default_Winamp" RMDir "$INSTDIR\plugins\DFX\Presets\Factsoft" RMDir "$INSTDIR\plugins\DFX" RMDir "$INSTDIR\plugins" RMDir "$INSTDIR\AddIn" RMDir "$INSTDIR" DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" SetAutoClose true SectionEnd #-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--# Function un.onInit MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "您确实要完全移除 $(^Name) ,及其所有的组件?" IDYES +2 Abort FunctionEnd Function un.onUninstSuccess HideWindow MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功地从您的计算机移除。" FunctionEnd