NSIS Find files in silent mode not working

坚强是说给别人听的谎言 提交于 2019-12-13 04:52:23

问题


I have the following function to recursively search for dll files.

Function ProcessDLLFiles
Exch $0
Push $1
Push $2
FindFirst $1 $2 "$INSTDIR\*.dll"
loop:
    IfErrors end
    DetailPrint 'Found "$0\$2"'
    FindNext $1 $2
    goto loop
end:
FindClose $1
FindFirst $1 $2 "$0\*.*"
dirloop:
    IfErrors dirend 
    IfFileExists "$0\$2\*.*" 0 dirnext
    StrCmp $2 "." dirnext
    StrCmp $2 ".." dirnext
    Push "$0\$2"
    call ${__FUNCTION__}
dirnext:
    FindNext $1 $2
    goto dirloop
dirend:
    FindClose $1
Pop $2
Pop $1
Pop $0
FunctionEnd

When I run the installer normally, it works as expected and finds all dll files in the associated folder.

However, it does not find these files in silent mode, even though I can navigate to the directory it is searching in and see that the files are there. I already request admin privileges during installation, and Administrators have full permissions on the dll files in the folder.

Any ideas why it may not be finding the files?


回答1:


When calling the nxs plugin to create a banner, needed to use /end parameter.



来源:https://stackoverflow.com/questions/8215733/nsis-find-files-in-silent-mode-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!