kleinstein
11th October 2013 07:57 UTC
copy files into destination Computer before installing
hi,
i have to copy some files into destination Computer $TEMP folder, before "!insertmacro MUI_PAGE_INSTFILES" is called.
normally NSIS copies "all" files "at once" at the end.
But can i copy some of these files before the regular copy-process, so i can use these files during NSIS-Install Pages scrolling?
MSG
11th October 2013 08:42 UTC
Yes, you can use the File command in functions, as well as sections. In a page prefunction, for example. Or even in .onInit.
Note that putting stuff in $temp is fine (also consider using $PLUGINSDIR), but you shouldn't make any real changes to a user's system before the instfiles page.
kleinstein
16th October 2013 07:24 UTC
Thank you. It works nicely!