Batch script not working properly when executed thru Qt-application.
-
Now before we start, I want to say that I do not have any extensive knowledge of Qt or C++, so please try and explain things in a simple way. I know some terminology, but I am in no way good at this :)
So I have a Batch script that retrieves the latest Windows updates using delims, token and things like that. Now, the script works perfectly when executed independantly with Admin rights, but when the Qt-application tries to execute said script, it returns an error: 0x8000ffff. To clarify, this is a Windows error and seems to point towards corrupted files, but this can't be the case as the script does not complain independatly.
My Qt-application requires Admin rights and should work normally, but this is not the case. Anyone have an idea?
-
Hi
I would add check to bat to see if the Qts admin rights are
carried over to the .bat file. (im not sure of that)
https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights -
@Surviv0r
It may be that your issue is to do with "admin rights", but how do you know? (Are you saying you have tried running without admin right outside of Qt and you get the same error?) My first thought would be lots of things may be different in the environment between "executing independently" versus "from within some Qt application". With something like Windows Update who knows what might matter....Let's at least start with: is your Qt a command-line app (try that), or is it a GUI?