Qt Installer Framework and Administrator privileges [SOLVED]
-
@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.