python - NSIS CopyFiles not working for .py files -


i creating installer python program using nsis. have copy source files c:\program files\snakecharmer, first making sure created, copying source files c:\program files\snakecharmer. there 3 .py files copying, plus __pycache__, , other things.

the contents of __pycache__ copied, not stay in __pycache__, copied loose directory. 3 .py files not copied @ all. else copies correctly.

here code

copyfiles "$r0\snakecharmer.py" "$instdir" copyfiles "$r0\snakecharmerupdater.py" "$instdir" copyfiles "$r0\cobracrypt.py" "$instdir" copyfiles "$r0\__pycache__" "$instdir" copyfiles "$r0\run_snakecharmer.bat" "$instdir" copyfiles "$r0\icon.ico" "$instdir" copyfiles "$r0\snakecharmer.lnk" "c:\programdata\microsoft\windows\start menu\programs" 

the first 3 .py files didn't copy.

why happening , how can fix it?

nsis uses shfileoperation internally, there no special handling of file types. make sure destination directory exists before start operation: createdirectory "$instdir"

process monitor give clues why fails...


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -