Provide a means to use fixed translations for Qt and IFWSince building Qt statically and then IFW can be seen as a lot to
do just to be able to provide a fixed translation for a Qt or IFW
string then it is better to provide a means to override these
translations.
So if a translation is found inside :/translations_new then it will
use this one instead of the one found at :/translations for Qt or
IFW strings. This can be provided via the -r option wh...
Fix incorrect ScriptLoadingFailed enumerator scope resolutionThis was causing problems while building with msvc2013.
Change-Id: Idd6b3b4c55d2cedb946b22db75d95222d37fe64b
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Add command line option to disable checking of free space on targetAlso move functionality to PackageManagerCore::checkAvailableSpace()
for more convenient later usage, if we want to use this without
starting the Wizard GUI.
Task-number: QTIFW-1602
Change-Id: I4f2d3cc78bc542475fe9c51b9364b1b221098e4a
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Show information about updated components in repogenAdd some basic output information about updated components when running
repogen with --update-new-components option in silent mode. --update
option is left silent in this regard as it is not component version
filtered, updating everything when -e or -i parameters are not passed.
Task-number: QTIFW-1543
Change-Id: I453a4107a3ec3702945becf4e15a87aad3423c2f
Reviewed-by: Katja Marttila <katja.mart...
Fix EnvironmentVariableOp undo behavior with non-persistent variablesThe return value for undoOperation() was incorrect when dealing with
non-persistent variable, causing an empty installer error dialog to
appear if the current env does not contain exactly same variable value
as on installation.
The return value inside !isPersistent condition scope should always be
true regardless of if the temporary variable set on installation still
exists on current environm...
Fix QWizardPage title colorTitle color can be given in config.xml with tag TitleColor. If tag is
not set, set title color to empty string so correct default title color is
used from palette.
Task-number: QTIFW-1557
Change-Id: Ic0c808127203c1a70f8183627ac846229223076c
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Do not show error dialog when filelist for uninstall not foundThis error can occur for example when user has manually deleted the
installerResource folder or files inside it or the same component has
been installed multiple times (QTIFW-1502).
Change-Id: I8007a2f99517b4f90902ed3b740027d54371d119
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Fix progressbar length in component selection pageAlso use QStackedLayout to transform between treeview and progressbar
views. This simplifies the code as we hide the treeview, categories etc.
and show progressbar instead when we are fetching a new category.
QStackedLayout makes it easier as we then don't have to hide/show
individual widgets we want to show.
Change-Id: I405030e9629052c5ca773a91bc44b66d3d26e137
Reviewed-by: Jani Heikkinen <jan...
Add function for reading separate data files in ExtractArchiveOperationSplit reading of data files into its own public function so this can be
used elsewhere if needed. Also move deleting of the data file into its
own function.
Change-Id: I63f758be8863c8a19069c97d726dc573bf240484
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Fix installer executable creation in LinuxIf Linux has several partitions and tmp is pointing to a different
partition than where we are trying to create installer executable with
binarycreator, binarycreator fails with 'Invalid cross-device link'.
Fixed so that tmp is not used when creating an installer executable.
Change-Id: Ieee52ee1929f980345a7940dd381cc94dbf3d40e
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Reviewed-by: Katja M...
Add early prompt to run MaintenanceTool as admin when neededCurrently IFW does not support manipulating Windows Access Control Lists
for files. If a user does not have reading permissions to installer.dat
it will throw error on QInstaller::openForRead() before the wizard GUI
is shown. At very least, add a MessageBox to prompt the user to run the
executable again as administrator in such a case.
Task-number: QTIFW-1392
Change-Id: I9e20c34b215ee697118af9...
Add better test branch for testSetDefaultFilePermissions() on WindowsAs the function to be tested is now enabled also on Windows platforms,
this should at least check that the unsetting of legacy read-only flag
works as intended.
Task-number: QTIFW-1464
Change-Id: Ibe126d279a31aaa3d204cf6a8fe04a05ea195bb8
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Enable QInstaller::setDefaultFilePermissions() also on WindowsIn some cases, for example in CreateLocalRepository files may be left
with legacy read-only flag on Windows. Even though the permission
entries in its Access Control List are sane, this will block all writing
operations to the file.
Enable setDefaultFilePermissions() on Windows as this will unset the
read-only flag if it is set. This still does not affect ACLs.
Task-number: QTIFW-1464
Change-...
Fix extracted files list formation in ExtractArchive operationIn ExtractArchive, the ConnectionType used to connect signal
'currentFileChanged' to slot 'fileFinished' was changed to
Qt::AutoConnection in c8de51cadbc5855ca1e77d038d7f09bf60d059ee,
rather than using Qt::DirectConnection explicitly.
Now the connection type defaults to queued as the sender and
receiver live on a different thread. This seems to cause an issue
where the slot function is not inv...
Initialize 'EssentialUpdate found' -variableThis caused interesting install experiences as EssentialUpdate was
handled although no such packages were found.
Change-Id: I35bb3e1b76ed14d1e8a45cee085916b3689f0dd1
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Decrease the dat file file sizeWrite the filename list to a separate file and only the name of the
separate file is in .dat file. This has significant effect on the .dat file size
and it also decreases the restart/start time of maintenancetool.
Task-number: QTIFW-1448
Change-Id: If03ce1bb91754acfb4e7dd74434f22a6e3fa2554
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Use grid layout in component selection pageThe layout in component selection page looked bad, especially in macOS
with dark mode as the widgets were not aligned properly vertically.
Task-number: QTIFW-1334
Change-Id: I718b7eaded78906027ce227671e955afda50c264
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
Fix addDependency functionalityaddDependency was acting weird - if a subcomponent was added as
dependency, the parent was not installed. It was installed the next time
the installer was launched and something else was added/removed.
addDependency should behave the same as when selecting the component
from UI - it should install the parents too
Task-number: QTIFW-1458
Change-Id: I21726ad6acda3b1fb382263405754c2d682dea76
Revi...
Fix env variable remove on WindowsRemoving env variable failed on uninstallation on Windows if the env
variable value had @TargetDir@ in path. File separators got changed
from Windows style to unix style.
Update documentation to inform users to use '\\' as separators when
setting a path as environment variable.
Tested with following values (component.addElevatedOperation(...)
in components.qs):
"@TargetDir@\\lib\\system\\qtplu...
Fix essential package updateIf there was essential update available and autodependency to already
installed packages, the component containing autodependency was installed.
If there was a Replaces at the same time, the Replaces was ignored.
If there is an essential update, no other components should be installed
nor updated except essentials and the components that have autodependency
to essential component.
Task-number...
Hide scrollarea background while fetching categoriesPreviously we only hide the label inside the scroll area while fetching
categories, which works if the scrollarea has no background. In macOS
there is a background color in the scrollarea by default so hide the
scrollarea instead of the label to prevent the scrollarea colored
background to be visible.
Change-Id: I2ddc97f7ae9a268b8972c91ab6519381fe7b689c
Reviewed-by: Jani Heikkinen <jani.heikki...
macOS: Fix widget overlapping in componentselection page in macOS 10.12In componentselection page, calling setVisible(false) does not work in
macOS 10.12 causing the treeview to be partly visible under the progressbar.
Added repaint() call to cause immediate redraw to widget to fix the
issue.
Task-number: QTIFW-1437
Change-Id: I854d439908b8d8cd0f81076fced07a4d2d4bb6f2
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>