脚本:Windows简易垃圾清理器

优质
小牛编辑
139浏览
2023-12-01
引用CLEAN.nsi的内容:

; 该脚本使用 HM VNISEdit 脚本编辑器向导产生

; 安装程序初始定义常量
!define PRODUCT_NAME "Windows简易垃圾清理器"
!define PRODUCT_VERSION "1.0"
!define PRODUCT_PUBLISHER "似水年华"
SetCompressor /final /SOLID lzma

; ------ MUI 现代界面定义 (1.67 版本以上兼容) ------
!include "MUI.nsh"
!include "Sections.nsh"
!include "UsefulLib.nsh"

; MUI 预定义常量
!define MUI_ABORTWARNING
!define MUI_ICON "TEMP\dreams8_2.ico"

; 欢迎页面
!define MUI_WELCOMEFINISHPAGE_BITMAP "temp\dreams8.bmp"
!insertmacro MUI_PAGE_WELCOME

; 许可协议页面
!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "TEMP\Licence_2.rtf"
; 安装过程页面
!insertmacro MUI_PAGE_INSTFILES
; 安装完成页面
!insertmacro MUI_PAGE_FINISH

; 安装界面包含的语言设置
!insertmacro MUI_LANGUAGE "SimpChinese"

; 安装预释放文件
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS

;安装界面下画线的文字
BrandingText "Http://www.Dreams8.com 似水年华"

; ------ MUI 现代界面定义结束 ------

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "CLEAN.EXE"
ShowInstDetails show

Section "-垃圾清理器"
RMDir /REBOOTOK /r "$WINDIR\$hf_mig$"
Delete "$WINDIR\Blue Lace 16.bmp"
Delete "$WINDIR\Coffee Bean.bmp"
Delete "$WINDIR\FeatherTexture.bmp"
Delete "$WINDIR\Gone Fishing.bmp"
Delete "$WINDIR\Greenstone.bmp"
Delete "$WINDIR\Prairie Wind.bmp"
Delete "$WINDIR\Rhododendron.bmp"
Delete "$WINDIR\River Sumida.bmp"
Delete "$WINDIR\Santa Fe Stucco.bmp"
Delete "$WINDIR\Soap Bubbles.bmp"
Delete "$WINDIR\Zapotec.bmp"
Delete "$SYSDIR\scrnsave.scr"
Delete "$SYSDIR\ss3dfo.scr"
Delete "$SYSDIR\ssbezier.scr"
Delete "$SYSDIR\ssflwbox.scr"
Delete "$SYSDIR\ssmarque.scr"
Delete "$SYSDIR\ssmypics.scr"
Delete "$SYSDIR\ssmyst.scr"
Delete "$SYSDIR\sspipes.scr"
Delete "$SYSDIR\ssstars.scr"
Delete "$SYSDIR\sstext3d.scr"
Delete "$WINDIR\Web\Wallpaper\Ascent.jpg"
Delete "$WINDIR\Web\Wallpaper\Autumn.jpg"
Delete "$WINDIR\Web\Wallpaper\Azul.jpg"
Delete "$WINDIR\Web\Wallpaper\Crystal.jpg"
Delete "$WINDIR\Web\Wallpaper\Follow.jpg"
Delete "$WINDIR\Web\Wallpaper\Friend.jpg"
Delete "$WINDIR\Web\Wallpaper\Home.jpg"
Delete "$WINDIR\Web\Wallpaper\Moon flower.jpg"
Delete "$WINDIR\Web\Wallpaper\Peace.jpg"
Delete "$WINDIR\Web\Wallpaper\Power.jpg"
Delete "$WINDIR\Web\Wallpaper\Purple flower.jpg"
Delete "$WINDIR\Web\Wallpaper\Radiance.jpg"
Delete "$WINDIR\Web\Wallpaper\Red moon desert.jpg"
Delete "$WINDIR\Web\Wallpaper\Ripple.jpg"
Delete "$WINDIR\Web\Wallpaper\Stonehenge.jpg"
Delete "$WINDIR\Web\Wallpaper\Ripple.jpg"
Delete "$WINDIR\Web\Wallpaper\Tulips.jpg"
Delete "$WINDIR\Web\Wallpaper\Vortec space.jpg"
Delete "$WINDIR\Web\Wallpaper\Wind.jpg"
Delete "$WINDIR\Web\Wallpaper\Windows XP.jpg"
StrCpy $R2 "$WINDIR" 2
Delete /REBOOTOK "$R2\INFCACHE.*"
RMDir /REBOOTOK /r "$R2\D"
RMDir /REBOOTOK /r "$WINDIR\SVCPACK"
RMDir /REBOOTOK /r "$WINDIR\SVCPACK\WMP10"
Delete /REBOOTOK "$WINDIR\SVCPACK\CLEAN.EXE"
  SetRebootFlag true
IfRebootFlag 0 +2
SectionEnd

AutoCloseWindow true

点击另存源文件