Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

File Copy Operation fails with Error 1310 and System Error 131

Hello installer team and community,

for one of our customers, the MSI update installation failed. Reason was our "File Copy Operation".
One specific file is always copied while installation (we backup a database this way) -- usually without problems. We followed this manual:
https://www.advancedinstaller.com/user- ... ialog.html

For this customer only, the file is large (2.7GB) and we use a 32Bit MSI package. Is this a contraindication ?

MSI (s) (B4:28) [...]: Executing op: FileCopy( ...
...
MSI (s) (B4:28) [...]: Produkt: Ourproduct-Server -- Error 1310.Error writing to file: C:\ProgramData\COMPANY\ourproduct\server\db\ourproduct_live.sqlite.update-bak System error 131. Verify that you have access to that directory.


Many thanks for any hint !
Ruben

--
Advancedinstaller 13.7 Enterprise
Eventually related topic: viewtopic.php?f=2&t=11881
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: File Copy Operation fails with Error 1310 and System Error 131

Hello Ruben,

First of all, I apologize for the delayed reply, but we had some days-off here due to holidays.

The "FileSize" column from the "File" table is of "DoubleInteger" data type, which is a four-byte integer value (raging from -2,147,483,647 to +2,147,483,647). With that being said, the maximum file size supported by a .cab file is 2GB.

Since your file is larger than 2GB, I suspect that that may be the culprit here.

Advanced Installer supports packing files larger than 2GB only if the "Place files unpacked next to the MSI database" option or LZMA compression is used ("Builds" page).

Another solution would be to use the "MSI with resources next to it" package type, create a feature for each of your files (that do not exceed 2GB) and then use the "One CAB archive per feature" option ("Builds" page). But since you have only a single file that is larger than 2GB, I am afraid this may not be of help for you.

For more information about this problem, please have a look on our "Configuration Settings Tab" article, under "Archive" section.

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”