Qt Installer Framework and Administrator privileges [SOLVED]
-
Hi all and thanks for the hints.
I've found a problem related to admin rights so I write here instead of opening a new thread.I created a "TestInstaller" that installs a "qt hello world" program to "Program Files (86)/TestInstaller" with admin privileges.
Then if I uninstall it using admin privileges, the directory "Program Files (86)/TestInstaller" is deleted as it should.
If I uninstall it NOT using admin privileges, the directory is not deleted and still contains the file "uninstall.exe".
How can I fix this ?
-
You can't. It's a know bug bug nobody has picked it up at the moment.
-
I tried to post a thanks to nwoki the 1 October but the forum was presumably down as I could not.
Thanks.Anyway, I have other problems now: beside the logo not shown, I need to create an installer for a customer and it should NOT have admin rights.
So I wrote
<RequiresAdminRights>false</RequiresAdminRights>
in package.xml, I DON'T call
installer.gainAdminRights();
but when I execute the created installer, the admin password is asked.
Another bug or what ?
I have a Qt license, shall I contact the support ? -
@amahta said:
TargetDir
Hello All,
Actually, I have a same problem ( using 2.0.0 version), I want to use this command below:
component.addElevatedOperation("Execute", "{0,3010}", "@TargetDir@\vcredist\vcredist_x86.exe", "/norestart", "/q");
But It crashes when installing process. In my package.xml, <RequiresAdminRights>true</RequiresAdminRights> tag is exist.
Thanks in advance.
-
@amahta said in Qt Installer Framework and Administrator privileges [SOLVED]:
<RequiresAdminRights>true</RequiresAdminRights>
How to provide admin access rights or run installer.performOperation in elevated rights?
For component.addElevatedOperation("Execute", "someCommand") it works.But for controller script thid doesn't work
-
Hi everyone, i dont know if this question is already discussed but i did not find relatable.
So my question is i am developing a QT application to initialize the SSD (Solid state drives). So the flow of the application is like that........ when i run the application it checks how many drives are connected..... If i run it as administrator it find the connected drive but when i do not run it as administrator then it cant fetch the connected drive so i want to change in my application that it will not ask me for the administrative username and password.
Is there any way to do it -
@Darshan_NewBee said in Qt Installer Framework and Administrator privileges [SOLVED]:
it checks how many drives are connected
How? Please provide more details...
-
@jsulm So there is DLL that have API's to get that information like number of drives, drive details etc. So this is very known that if you want to fetch the drive details from any platform or any user section it will ask you for administrator credentials to look into it . So i want that it will not ask me for that credentials or it ask me in the time of installation only and later on it simply run with admin privileges,
Is it possible? -
@Darshan_NewBee said in Qt Installer Framework and Administrator privileges [SOLVED]:
So there is DLL that have API's
What library is it?
-
@jsulm That is opal library. Actually i am in hurry to get the solution can you please tell me what should i do for that.
-
@Darshan_NewBee said in Qt Installer Framework and Administrator privileges [SOLVED]:
can you please tell me what should i do for that
No, I don't know what this opal library is (you could post a link at least). Did you try to find something in the documentation of that library? Get some support from the authors? You are asking in a Qt forum about something which is not part of Qt.
-
@jsulm Sorry for that but i cant share you the link or more about it because its confidential and our clients dosent want to disclose it . I think there is nothing to tell about the DLL and relevant for my question .So is there any way to bypass the UAC prompt that ask for administrator credentials
-
@Darshan_NewBee said in Qt Installer Framework and Administrator privileges [SOLVED]:
So is there any way to bypass the UAC prompt that ask for administrator credentials
If that library requires administrator rights to do it work then not.
And as I already suggested: ask the authors of that lib, this is Qt forum.