Is it possible to Run external exe As Administrator from Clarion exe?
Havent used this, but it might work for you.
windows - How to run program from command line with elevated rights - Super User
Hidden Start - Bypass UAC, Hide Console Windows, Run Apps in the Background - NTWind Software
Its probably using the same tricks as this Windows Utility uses to bypass things like UAC and other security measures, and I have used this.
Application Compatibility Toolkit (ACT) - Win32 apps | Microsoft Learn
There is discussion about this topic here …
https://clarionhub.com/t/hide-command-prompt-window-when-run-batch-file/5505/14
Maybe Power Shell script has an easy way to Run as Admin ?
You could setup a Shortcut that has Run as Admin selected, then run that.
You could setup a Manifest (named ExeName.exe.Manifest) to requireAdministrator … as long as it does not have one. I think the below is right, but untested.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0"
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="x86"
type="win32"
/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>