How to start EXE file without questions

Started by Beat, August 03, 2024, 12:49:51 AM

Previous topic - Next topic

Beat

Hello everyone,
I have a problem with a compiled WBT file that I start in a batch file (xy.cmd) using the "call" command.
Starting it itself is not a problem, only that Windos (7 and higher) then asks whether the exe should be executed beforeexecution....
It is probably a security query (UAC). Is there a way to "build" the EXE to run without prompting?

Script:
FileList = FileItemize(StrCat('C:\yxz\','*.*'))
If FileExist(StrCat( 'C:\yxz\','Application.app')) Then
   Display(3, 'Title',StrCat('File "',ApplFile,'" exist',@CrLf,'the machine can start'))
Else
   If FileExist(StrCat('C:\yxz\','Application.err')) Then
      FileRename(StrCat('C:\yxz\','Application.err'),StrCat('C:\yxz\','Application.app'))
      Display(3, 'Title',StrCat('File "',ApplFile,'" rebuild',@CrLf,'restart the System'))
   Else
      Message('Title','not able to rebuild the file%@CRLF%kontact Abministrator')
   EndIf
EndIf

Best regards from good old Swizzerland
Beat
si tacuisses, philosophus mansisses!! ;-)
if you had remained silent, you would have continued to be a philosopher!!
Wenn du geschwiegen hättest, wärst du ein Philosoph geblieben!!

td

You use manifest settings to adjust how the OS launches your compiled script. More information can be found here:

Compiler Settings

Keep in mind that setting the manifest to "asInvoker" and "false" restricts the exe to running with standard user privileges.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade