Jump to content

Recommended Posts

Posted

Hi,

I'm trying to create an installer that extracts about 586 files (3.2 GB) to temp directory, then executes the msi file. For this, I created a script with 586 fileinstall() functions.

Script runs perfectly when executed without compiling. But when executed after compiling, only 263 (~2 GB) files are extracted to the temp directory. The remaining fileinstall() functions returned 0. Is there any limit for usage of fileinstall() in a single script. If so, any work around other than creating a separate script for the remaining files.

-Roshith

Posted (edited)

  Help File said:

When this function is used from a non-compiled script, a copy operation is performed instead (to allow for easy testing pre-compilation).

Files maintain their original creation/modification timestamps when installed.

Hence why it works without compiling. As to the 'issue' a work around would be to compress all those file to a ZIP/7-Zip file and place it next to the compiled exe, instead of using FileInstall, which I've used for relatively small files.

Edit: It also could be (without testing it) because this is loaded into memory first and thus you get the error due to not enough memory available.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Thanks for the workaround!

btw.. I checked the memory consumption by the process. Its just ~4k kb.

And I dont get any errors as such while executing. It successfully extracted files totaling ~2 GB, then fails to extract the remaining files returning '0'.

Please ignore if its a known issue..

Posted

Hmm, I don't want to speculate before testing. Also it's not technically related to AutoIt, but it's used for the installer, how about looking at NSIS for such a job?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...