Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging console output using Qt Installer Framework scripting

I added some console.log("xxxxxx") via component / controller scripting to my installer.

ie.

function Controller()
{
    console.log("OS: " + systemInfo.productType);
}

How can I view the console log during the running of the installer?

like image 884
Vincent Avatar asked Jan 07 '20 01:01

Vincent


2 Answers

Not sure if you can see a log during installation. But after a "successful" installation the TargetDir will contain a file named InstallationLog.txt that contains all the console.log lines from the installation process.

Edit: To see it live, do like @CherryDT points out in his comment: Run your installer from the command line and provide the -v parameter (fx my_installer.exe -v).

Edit: The previous Edit is slightly wrong, check @KcFnMi answer.

like image 88
Hjalti Avatar answered Oct 19 '22 03:10

Hjalti


To see console.log information at runtime (the time you're running the installer, not the time you are building the installer) do:

installer.exe -d

or

installer --version

-d, --verbose Verbose mode. Prints out more information.

https://doc.qt.io/qtinstallerframework/ifw-cli.html

Note: It's not -v:

-v, --version Displays version information.

enter image description here

like image 1
KcFnMi Avatar answered Oct 19 '22 03:10

KcFnMi