NSIS杂项

来源:互联网 发布:软件系统测试手册 编辑:程序博客网 时间:2024/06/07 16:28

注册DLL,反注册DLL

RegDll"***.dll", UnRegDll"***.dll"

RMDir:

If /r is specified, the directory will be removed recursively, so all directories and files in the specified directory will be removed.

卸载禁用选择目录和编辑目录:

!define MUI_PAGE_CUSTOMFUNCTION_SHOW un.DisableBrowse
!insertmacro MUI_UNPAGE_DIRECTORY

Function un.DisableBrowse
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1001
EnableWindow $0 0


FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1019
EnableWindow $0 0
FunctionEnd

所需空间,可用空间:1023, 1024

隐藏某一项:
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1023
ShowWindow $0 ${SW_HIDE}/${SW_SHOW
}

原创粉丝点击