How to add an Environment variable ( a directory C:/test1/bin) in System variable path( not in User variable ) using Qt Installer framework? I have tried like this,
component.addOperation ("EnvironmentVariable", "PATH","C:/testl/bin", true) ;
But this adds in User variable Path, Please help me to modify this so that the value will get added in System variable path.
I use the reg to solve:
You can use the "REG ADD /?" in powershell to find the help.
Please note that this installer need call gainAdminRights():