Qt Installer Framework - Not enough memory
-
Hello everyone!
I use Qt Installer Framework to deploy my application on Mac OS X. I have my .app application and additional files that have to be installed. Everything is installed correctly but when it starts installing the .app aplication (or .prefpane folder) it shows that there is Not enough memory and same error when installing the .prefpane folder. I've noticed it only does this when the source "file" is folder (both .app and .prefpane contain another files, they are archives..).I use archivegen to create .7z from .app and .prefpane. Both archives are extracted with the installscript.qs. Does anyone know what am I doing wrong? Or it is a bug in the Qt Installer Framework?
PS: I know for sure that I have enough memory.
.app:
@function Component(){
}Component.prototype.createOperationsForArchive = function(archive){
// component.createOperationsForArchive(archive);
component.addElevatedOperation("Extract", archive, "/Library/Applications");
}@.app package.xml ([removed] = < Script > </ Script >):
@<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>Mac Client</DisplayName>
<Description>Client for Mac</Description>
<Version>1.0.0</Version>
<ReleaseDate>2015-01-23</ReleaseDate>
<Licenses>
<icense name="License" file="license.txt" />
</Licenses>
<Default>true</Default>
[removed]installscript.js[removed]
<ForcedInstallation>true</ForcedInstallation>
<RequiresAdminRights>true</RequiresAdminRights>
</Package>@.prefpane:
@function Component(){
}Component.prototype.createOperationsForArchive = function(archive){
// component.createOperationsForArchive(archive);
component.addElevatedOperation("Extract", archive, "/Library/PreferencePanes");
}@!http://i.imgur.com/Ek5qEIM.png(Error)!
Edit:
Ok, I've noticed that it sometimes does not report Not enough memory but "internal error: E_FAIL" and also sometimes "Permission denied" on some files inside the .app or .prefpane even tough I have 'addElevatedOperation()' everywhere.
Edit2:
Another weird thing, it calls Extract twice, once as admin, once as normal user (that could be the "Permission denied" error):
First:
[5844] "Extract" as admin: true
[5844] backup com.<censored>.application operation: Extract
[5844] - arguments: installer://com.<censored>.application/<censored>Client.app.7z, /Library/Applications
[5844] DoneSecond:
[5857] perform com.<censored>.application operation: Extract
[5857] - arguments: installer://com.<censored>.application/<censored>Client.app.7z, /Library/Applications
[6153] Warning: Could not delete directory "/Library/Applications/<censored>Client.app/Contents/Resources/de.lproj" (:0, )
[6155] Done
[6155] Operation 'Extract' with arguments: 'installer://com.<censored>.application/<censored>Client.app.7z; /Library/Applications' failed: Error while extracting 'installer://com.<censored>.application/<censored>Client.app.7z': Could not open file: /Library/Applications/<censored>Client.app/Contents/Resources/de.lproj/CredentialWindowController.strings (Permission denied)
[6155] created warning message box installationErrorWithRetry: 'Installer Error', Error during installation process (com.<censored>.application):
Error while extracting 'installer://com.<censored>.application/<censored>Client.app.7z': Could not open file: /Library/Applications/<censored>Client.app/Contents/Resources/de.lproj/CredentialWindowController.strings (Permission denied)