Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
3.2.0
-
None
-
-
08a123c86b9aae85da1be1542578de060df4868b (installer-framework/tqtc-installer-framework/master)
Description
The EnvironmentVariable operation in Qt Installer Framework component scripting API is supposed to set an environment variable - which it does. However, when it's used for the first time, it also clears the environment.
STEPS TO REPRODUCE:
===================
1) Add 'component.addOperation("EnvironmentVariable", "SFDK_AUTO_STOP_VMS", "1")'
to createOperations() in one of the components
2) Build the installer
3) Run the installer
EXPECTED RESULT:
================
The Execute operations after the EnvironmentVariable operation are run with modified environment, so that the SFDK_AUTO_STOP_VMS environment variable is added to the system enviroment
ACTUAL RESULT:
==============
Only SFDK_AUTO_STOP_VMS variable is set, otherwise the environment is empty
I have already a fix for the bug, I'll prepare a pull request shortly.