1. I've created a new project using the ".NET Application template", then in the Wizard selected "MSI setup file. A single MSI setup which contains all installation files."
2. In the project, I've set synchronization of the "Application Folder" with the folder containing my application files.
3. I’ve pressed the “Build” toolbar button, and after waiting I’ve got an error: my application files can't be put in one CAB archive due to CAB format limitations.
4. To avoid this error, on the “Builds” page for "DefaultBuild" I've selected the “Advanced CAB layout”, then configured it as on the screenshots below: Maximum CAB size: 50 MB, checked “Compress this CAB for smaller size”.
5. With these settings, I successfully built the project, but generated CAB files were not included in the MSI installer.
6. Since I need to build a standalone MSI file, I’ve checked the “Include CAB into the MSI database” checkbox on the same page:
But now an attempt to build the project failed with the following output:
Details:Checking builds status
Build required.
[ DefaultBuild ]
Building package:
C:\AppServer\AppServer-dev\build\install\win\Setup Files\Disk1\AppServer.gitignore.msi
Prepare build
Detecting MSI incompatible resources
Preparing files
Creating CAB file(s)
Creating MSI database
Inserting CAB file(s) into MSI
Writing Summary Information
Error calling MSI API: 1627 Method: MsiDatabaseCommit Table: . Extended Error: 1: 2265 2: 3: -2147286767 .
Error details
Build finished because an error was encountered.
7. I suspected that the reason for the error is that my project is too large, and removed some folders effectively reducing it to 170212 files with an overall size of 5,76 GB. Now I was able to build the project without errors and obtained a standalone MSI file of size 1,99 GB.Error calling MSI API: 1627 Method: MsiDatabaseCommit Table: . Extended Error: 1: 2265 2: 3: -2147286767 .
Advanced Installer 18.1 build 4fb1edbd
*** Stack Trace (x86) ***
[0x75c9a8b2] RaiseException()
[0x01e64a2a] -----
[0x00e64935] -----
[0x00e64668] -----
[0x00e791c3] -----
[0x00eaefa3] -----
[0x00e65106] -----
[0x00520000] MODULE_BASE_ADDRESS
Is Advanced Installer limited to have no more than about 170200 files for one project when creating a standalone MSI installer? Is there a way to overcome this limitation?