注册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
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 }
GetDlgItem $0 $0 1023
ShowWindow $0 ${SW_HIDE}/${SW_SHOW }