Hello, everybody!
I want to use Qt Installer Framework for deployment my application.
I downloaded master-branch Qt Installer Framework and build it with Qt 4.8.3.
The Qt Installer Framework documentation is informed of the possible use scripts to manage the installation.
I took a example from directory 'examples/tutorial', edited script 'examples/tutorial/packages/com.vendor.product/meta/installscript.qs' (like in documentation):
function Component()
{
component.userInterface( "IntroductionPage" ).buttons.NextButton.click;
}
Component.prototype.isDefault = function()
{
// select the component by default
return true;
}
Component.prototype.createOperations = function()
{
try {
// call the base create operations function
component.createOperations();
} catch (e) {
print(e);
}
}
function Component()
{
component.userInterface( "IntroductionPage" ).buttons.NextButton.click;
}
Component.prototype.isDefault = function()
{
// select the component by default
return true;
}
Component.prototype.createOperations = function()
{
try {
// call the base create operations function
component.createOperations();
} catch (e) {
print(e);
}
}
To copy to clipboard, switch view to plain text mode
Make installer using binarycreator. At start of installation get error:
TypeError: Result of expression 'component.userInterface( "IntroductionPage" )' [null] is not an object.
TypeError: Result of expression 'component.userInterface( "IntroductionPage" )' [null] is not an object.
To copy to clipboard, switch view to plain text mode
Why such a wrong example given in the documentation?!
Also, I found script 'auto_installations_script.qs' in sources of Qt Installer Framework, which demonstrated automation proccess installation, but not works in realy.
Release Qt Installer Framework 1.2 works with scripts like master-branch version.
Question to a respected public: anyone used Qt Installer Framework in their projects? Did you use scripts to manage the installation process?
Bookmarks