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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With