Jump to content

Recommended Posts

Posted

Using 3.3.14.5, tested also on current version 3.3.16.1, same problem.

This popup during a compile attempt (compiled fine about a week ago):
image.png.9fffe4647ee8476392906107377997bc.png

+>09:17:55 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe_x64.exe  /in "D:\TFS\***\Dev\Install\AutoIT\9.4\***.au3" /out "C:\Users\****\AppData\Local\AutoIt v3\Aut2exe\~AUA723.tmp.exe" /nopack /icon "D:\TFS\***\Dev\Install\AutoIT\9.4\Install.ico" /comp 2
+>09:17:59 Aut2exe.exe ended.C:\Users\*******\AppData\Local\AutoIt v3\Aut2exe\~AUA723.tmp.exe. rc:0
>09:17:59 Performing the Program Resource Update steps:
!>09:17:59 Error: Failed to enumerate RT_VERSION resources, using defaults.
! Removal UpdateResource: RT_VERSION/1 - LastError:87:The parameter is incorrect.
+ UpdateResources other: $result[0] = 0 - LastError:87:The parameter is incorrect.
...>Updating Program Version information.
!>09:17:59 Error: Failed to enumerate RT_MANIFEST resources, using defaults.
...>Setting Program ExecutionLevel Manifest information to asInvoker
...>Setting Program Compatibility Manifest information to Windows10
+ UpdateResources other: $result[0] = 0 - LastError:87:The parameter is incorrect.
...>Updating Program Manifest information.
!>09:18:00 Error: EndUpdateResource: Returncode = 0 - LastError:1400:Invalid window handle.rc:2
!>09:18:00 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2

If I comment out the #AutoIt3Wrapper_Res_<RESOURCENAME=***> lines, this avoids the problem

If I add (I can't add exclusions at work but am about to request one) an exclusion for the directory %userprofile%\AppData\Local\AutoIt v3, this avoids the problem.

What Windows Defender reports:
image.png.f8d27595ec531b898cbbcffb8f0fc863.png

 

Posted

Uncommented out the first resource "Description", and this caused the failure. Will try each of the others singly...
Fileversion, ProductName, ProductVersion, CompanyName, LegalCopyright, Language, each of these singly triggered the error and the Windows Defender finding.

Posted

There was a Windoze update last night. Just went to recompile a script  and got the same error.
Followed @Nine's advice and whitelisted AutoIt3 folder, AppData folder and Script folder.

I don't want this Microsoft big brother protection but they make it very hard to disable.

Phil Seakins

Posted (edited)
7 minutes ago, pseakins said:

I don't want this Microsoft big brother protection but they make it very hard to disable.

It's not that hard. I disabled Windows Defender permanently from Group Policy.

Edited by Andreik
Posted
31 minutes ago, pseakins said:

big brother protection but they make it very hard to disable.

; Microsoft Defender is a pain to disable on your system because of multiple fail-safe methods built into Windows Security.
; So, disable Tamper Protection and then run this below to disable Microsoft Defender.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Microsoft Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
reboot
; However, do not leave your system open to malware infestation, and use a third-party antivirus if you don’t like Defender.

 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

Hy there
had the same problem today but find a solution

Simple use #pragma 
that works @ my site WIN10 22H2 latest security updates
 

#Region ;**** Directives created by AutoIt3Wrapper_GUI ; That works only****
#AutoIt3Wrapper_Icon=X:\OM_MUC\MopsIt\MucDecode.ico
#AutoIt3Wrapper_Outfile_x64=MucDecode64.exe
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

;~ Try pragma's for further APP infos instead of using  AutoIt3Wrapper_<Resources>
#pragma compile(AutoItExecuteAllowed, True)
#pragma compile(ExecLevel, asInvoker)
#pragma compile(FileDescription, DB Browser for My SQLITE Base)
#pragma compile(ProductName, MucDecode )
#pragma compile(ProductVersion, 3.3.16.1)
#pragma compile(FileVersion, 2023.12.19.65) ; The last parameter is optional.
#pragma compile(LegalCopyright, © My Company System Incorporated)
#pragma compile(CompanyName, 'My Company System Incorporated')

see more in AutoIt Help  #pragma ....

Watch results in details of EXE properties ....
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...