简体   繁体   中英

my NSIS installer doesn't always extract all files

I use the NSIS "File" command in order to extract about 1000 files. I've written a simple script in Python, which runs the installer 1000 times, and I've run it. 156 of the installations have finished with not all of the files extracted. I haven't found this problem (or any similar one) in Google. I'll appreciate any help.

Edit - the relevant code:

SetOutPath $INSTDIR

SetOverwrite on

File /r "..\resources\${VERSION}\*"

Ok, I've found a workaround for my case. In my case, the ~1000 files are divided within several directories under the "..\\resources\\${VERSION}" directory, so instead of executing one File command on the main directory, I've executed the File command on each inner directory seperately, and it has worked (1,000 installations out of 1,000 installations). I guess it's "hard" for the File command to extract ~1000 files at once.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM