LisHawj Posted October 3, 2018 Share Posted October 3, 2018 I am writing a small GUI script to toggle between deploying an Office scrubber and the Office deployment itself. I am running into a compilation error "Error: Unable to add resources. C:\Users\TestAccount\AppData\Local\Autoitv3\Aut2Exe\autf26a.tmp.exe". I have spent close to 3 hours searching the Internet and reading other posts that reported the same error and have tried every one of the solutions to no success. Is there a file size limitation to FileInstall? Your help is appreciated. So here is what I have done or try already: 1. Excluded the path from my AV scanner. 2. Comment out the #include <StaticConstants.au3> line from my script. 3. Verified that I can include each of the file separately into my script without the compilation error. The error only kicks up when I include both files in my script. a. file "streamx86.exe" is 1.22GB, and "Streamx86_2.exe" is 225MB. 4. Tried compiling in both 32/64-bit with both file and still get the error. 5. Tried compiling without UPX and/or lowest compression. expandcollapse popup#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Outfile_x64=C:\1Sign\Setup.exe #AutoIt3Wrapper_UseX64=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> ;#include <StaticConstants.au3> #include <WindowsConstants.au3> DirCreate("C:\OfficeClean\Office\Data\16.0.8326.2076\") If @error Then MsgBox(64, "Office 365/2016 Clean and Install", "Error - unable to create folder C:\OfficeClean on the local PC." & _ @CRLF & "Please check you have READ/WRITE permission to the local drive.") Sleep(3000) FileInstall("C:\Signed Files\Streamx86.exe", "C:\Windows\Temp\Streamx86.exe", 1) FileInstall("C:\Signed Files\Streamx86_2.exe", "C:\Windows\Temp\Streamx86_2.exe", 1) $CI_GUI = GUICreate("Office 365/2016 Clean and Install", 347, 145, -1, -1) $Checkbox1 = GUICtrlCreateCheckbox("", 24, 43, 17, 17) GUICtrlSetFont(-1, 10, 800, 0, "Calibri") $Checkbox2 = GUICtrlCreateCheckbox("", 24, 65, 17, 17) GUICtrlSetFont(-1, 10, 800, 0, "Calibri") $Label1 = GUICtrlCreateLabel("Select a task option(s) and click Run.", 62, 8, 227, 22) GUICtrlSetFont(-1, 11, 400, 0, "Calibri") $Button1 = GUICtrlCreateButton("Run", 136, 104, 75, 25, $BS_DEFPUSHBUTTON) $Label2 = GUICtrlCreateLabel("Run Office Cleaner/Scrubber", 40, 44, 250, 15) $Label3 = GUICtrlCreateLabel("Run Office Installer", 40, 67, 250, 13) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then _RunScrubber() EndIf If GUICtrlRead($Checkbox2) = $GUI_CHECKED Then _RunOInstall() EndIf EndSwitch WEnd Func _RunScrubber() Msgbox(0,"","You have selected to run the scrubber.") EndFunc Func _RunOInstall() Msgbox(0,"","You have selected to run the installer.") Endfunc Link to comment Share on other sites More sharing options...
Developers Jos Posted October 3, 2018 Developers Share Posted October 3, 2018 (edited) Likely your AntiVirus software is messing with you. We recommend to exclude C:\Users\????\AppData\Local\Autoitv3 in your AV software as that is used by aut2exe to store the tempfiles during the whole process. Jos Edited October 3, 2018 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
caramen Posted October 3, 2018 Share Posted October 3, 2018 (edited) Let's see if my magic ball is working Kaspersky is rude hihi Please let me know witch AV you are using it s ineresting me please. Edited October 3, 2018 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
LisHawj Posted October 3, 2018 Author Share Posted October 3, 2018 I am using McAfee 10.5 in an enterprise environment. I have excluded the path on my system that is used to compile the script. However, Jos comment has stir a thought in my mind and I am going to try compiling the script on a non domain PC. Link to comment Share on other sites More sharing options...
LisHawj Posted October 3, 2018 Author Share Posted October 3, 2018 Thank you, @Jos. I was able to compile my script on a VM that is not running our enterprise McAfee AV. It is really odd that I can compile the script using a single file, but not both files until I compiled it from a VM without McAfee. So to anyone else out there that ever runs into the error ""Error: Unable to add resources. C:\Users\TestAccount\AppData\Local\Autoitv3\Aut2Exe\autf26a.tmp.exe". The solution: Compile your script from a PC without AV or a clean VM PC. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now