thepotoko
25th October 2010 18:16 UTC
Extracting files
I'm writing my first NSIS script and even though the file-extracting commands are in a "Basic Components" section, the files are extracted before the license page shows up. Is that how it's supposed to be? It doesn't make much sense to me since I could cancel the installation before selecting any components and the files would still be already copied to the installation directory.
I'm copying the zipped folder to $TEMP and then I'm using the nsisunz::UnzipToStack command to extract them to the installation directory. The section these commands are in is the first section. Does this influence in any way?
Thanks in advanced!
Animaether
25th October 2010 18:41 UTC
that should be fine.. just make sure you have your page declarations in the right order..
Page license
Page Components
Page InstFiles
>
http://nsis.sourceforge.net/Docs/Cha...Ordering#4.5.1
thepotoko
25th October 2010 19:17 UTC
They are in that order, and it is extracting the files.
My question is, does the installer extract the files before installation begins by default? Or do I have to do something so that the files are extracted after the user clicks "Install"?
Afrow UK
25th October 2010 19:42 UTC
You use a Section (or couple) to do it.
Stu
thepotoko
25th October 2010 19:44 UTC
Never mind, it started working properly all of a sudden. Thanks to all anyway!
MSG
26th October 2010 06:33 UTC
You probably put your File commands in a function like .onInit, instead of in a section,