Archive: Extracting files


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!


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

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"?


You use a Section (or couple) to do it.

Stu


Never mind, it started working properly all of a sudden. Thanks to all anyway!


You probably put your File commands in a function like .onInit, instead of in a section,