0
I have an old game my wife and I like to play; I've installed it on a brand-new windows 10 machine and it runs fine from the command line and from double-clicking the executable in File Explorer.
However, it always displays the UAC "Do you want this program to make changes" prompt when it is run that way, and I'm trying to run the game without that.
Various instructions point me to the task scheduler: create a task, give it "highest privileges", allow it to run on demand, then create a shortcut to run that task.
So I create the task in Task Scheduler, and instructions reasonably suggest testing it to run from there, and that's where I'm stuck now. I can't seem to get the game to run by having Task Scheduler run the task I created.
Under "General" (in task scheduler properties for this task) I have "run only when user is logged on", "run with highest privileges", and "configure for Windows 10". Triggers is empty. Actions has "Start a program" and the full pathname including the executable name and ".exe". Under conditions I unchecked "start the task only if the computer is on AC power", and didn't check any of the other boxes.
If I right-click the task and choose 'Run', it changes the task status to "Running" but nothing else happens. If I go to a privileged command prompt and try to use "schtasks /run /tn taskName", I get a message saying it started the task successfully and nothing else happens.
I suppose I should mention that this game is a "full-screen" game; all normal Windows windows disappear and this is the only thing on the screen. I don't know, of course, whether that makes any difference.
One other oddity -- I thought perhaps changing the default option of "Start the task only if the computer is on AC power" might be a problem, so I went back to the task properties and attempted to change that. When I do that I get something like "the task xml contains a value which is incorrectly formatted or out of range". I would expect to get an error attempting to run the task, in that case, but thought I would mention that for what it's worth.
The game is "Caesar III", in case that matters to anyone. How would I get this to run without the UAC prompt, whether through task scheduler or otherwise?
Even if you used the task scheduler method you would still have to escalate the programs permissions – Ramhound – 2018-04-18T11:30:43.457
Is that additional click really that much of a problem? I suppose you've already spent more time on researching how to avoid it than you'd spent clicking it for the rest of your lifetime. – gronostaj – 2018-04-18T12:36:39.030
@Ramhound Task Scheduler has a checkbox for running with "highest permissions" -- I don't remember the exact placement and wording -- but I thought that would take care of the permissions issue. – rcook – 2018-04-18T13:13:39.927
@gronostaj I also configure these things for my wife; it annoys both of us, but of course annoying her is a bigger issue. Besides, I'd like to understand better how it works, to the extent of knowing how to get rid of this extra prompt. There really ought to be a way. – rcook – 2018-04-18T13:15:05.520
@rcook - I am here to say you are mistaken. By default, any escalation in an application's permission will result in a UAC prompt, even if you are running as an Administrator (note: the built-in Administrator account is something else entirely). Windows 7 by default did not work like this, and you could also change the UAC behavior in Windows 7, with Windows 8 even the lowest security setting still results in a UAC prompt. It sounds like you should be running Windows 7, not Windows 10. – Ramhound – 2018-04-18T13:29:36.747
Play it online? https://epicport.com/en/caesar3 EDIT: Nevermind, this is a terrible terrible port. Amusingly bad.
– Michael Frank – 2018-04-19T10:16:15.540@rcook ; I know you're looking for an answer that doesn't disable UAC but gets rid of the prompt, but the problem here is, there likely isn't one. Increased security in Windows and the fact that Caesar III is 20 years old this year. That it even runs in Windows 10 without being a GoG port is a little surprising. Have you considered running WinXP in a virtual machine for this purpose? – CDove – 2018-04-19T14:30:55.017
Well, it's from GoG, I don't know if that makes it a GoG port. I had NOT considered a VM, thanks for the suggestion. – rcook – 2018-04-19T18:21:34.750