An NSIS plugin to display or get a list of programs that are locking a selection of files that have to be uninstalled or overwritten.
http://nsis.sf.net/File:LockedList.zip
Stu
http://nsis.sf.net/File:LockedList.zip
Stu
You'll get some garbage for the first program captions. I might be able to fix this.code:
Name "LockedList Test"
OutFile "LockedListTest.exe"
!include MUI.nsh
!insertmacro MUI_PAGE_WELCOME
Page Custom LockedListShow
!insertmacro MUI_LANGUAGE English
Function LockedListShow
LockedList::AddModule /NOUNLOAD "$SYSDIR\kernel32.dll"
LockedList:ialog
FunctionEnd
Section
SectionEnd
and I can see only two of them.code:
Name "LockedList Test"
OutFile "LockedListTest.exe"
!include MUI.nsh
!insertmacro MUI_PAGE_WELCOME
Page Custom LockedListShow
!insertmacro MUI_LANGUAGE English
Function LockedListShow
MessageBox MB_OK "test1"
LockedList::AddModule /NOUNLOAD "$SYSDIR\kernel32.dll"
MessageBox MB_OK "test2"
LockedList:ialog
FunctionEnd
Section
MessageBox MB_OK "test3"
SectionEnd
andcode:
Name "LockedList Test"
OutFile "LockedListTest.exe"
!include MUI.nsh
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
Page Custom LockedListShow
!insertmacro MUI_LANGUAGE English
Function LockedListShow
MessageBox MB_OK "test1"
LockedList::AddModule /NOUNLOAD "$SYSDIR\kernel32.dll"
MessageBox MB_OK "test2"
LockedList:ialog
FunctionEnd
Section "Install"
MessageBox MB_OK "test3"
SectionEnd
the first one shows message boxescode:
Name "LockedList Test"
OutFile "LockedListTest.exe"
!include MUI.nsh
!insertmacro MUI_PAGE_WELCOME
Page Custom LockedListShow
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE English
Function LockedListShow
MessageBox MB_OK "test1"
LockedList::AddModule /NOUNLOAD "$SYSDIR\kernel32.dll"
MessageBox MB_OK "test2"
LockedList:ialog
FunctionEnd
Section "Install"
MessageBox MB_OK "test3"
SectionEnd
and as results I've gotcode:
LockedList::AddModule /NOUNLOAD "$SYSDIR\kernel32.dll"
LockedList:ialog
Comment