Jump to content

Buidling AutoIT


elchaca
 Share

Recommended Posts

When building autoit I get the message:

Unable to add resources.

C:\Users\Home\ppata\Local\AutoItv3\Aut2Exe\autEA4.tmp.exe

 

Whats going wrong.

This is my script:

#NoTrayIcon
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=C:\Users\Tinus\Desktop\Repacker\favicon.ico
#AutoIt3Wrapper_Res_Comment=ElChaca Unattended Releases
#AutoIt3Wrapper_Res_Description=ElChaca Unattended Releases
#AutoIt3Wrapper_Res_LegalCopyright=@Toxic 2014
#AutoIt3Wrapper_Res_Language=1043
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GuiStatusbar.au3>

#Region
  #AutoIt3Wrapper_Icon=C:\Users\Tinus\Desktop\Repacker\favicon.ico
  #AutoIt3Wrapper_UseUpx=n
  #AutoIt3Wrapper_Res_Comment=ElChaca Unattended Releases
  #AutoIt3Wrapper_Res_Description=ElChaca Unattended Releases
  #AutoIt3Wrapper_Res_LegalCopyright= @Toxic 2014
  #AutoIt3Wrapper_Res_Language=1043
  #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#EndRegion

 Local $sfldr1 = "C:\Users\Downloads\Temp\"
  DirCreate($sfldr1)
  FileInstall("banner.jpg", $sfldr1 & "\banner.jpg")


 $gui = GUICreate ( "Adobe After Effects CC 2015 v.13.8.0.37 (x64) NL", "600", "225", "-1", "-1", "-1", "-1", "0")
 GUICtrlCreatePic ($sfldr1 & "\banner.jpg", "", "", 0, 0, -1, -1)
 GUISetState(@SW_SHOW)
 $status = _GUICtrlStatusBar_Create($gui)

 _guictrlstatusbar_settext($status, @TAB & "Verzamelen van gegevens wordt voorbereid...")

 

  FileInstall("elchaca.exe", $sfldr1 & "\elchaca.exe")

 

    _guictrlstatusbar_settext($status, @TAB & "Start installatie software. Moment geduld aub...!!!")

  Sleep(5000)

 RunWait(@ComSpec & " /C " & "elchaca.exe", "C:\Users\Downloads\Temp\", @SW_HIDE)


  Sleep(15000)


 _guictrlstatusbar_settext($status, @TAB & "Verwerking software bijna voltooid...")


  Sleep(5000)

_guictrlstatusbar_settext($status, @TAB & "Installatie software is voltooid . . . . Que te divertas . . . .")


  Sleep(5000)


        DirRemove($sfldr1, 1)


I hope You can help me.

ElChaca

 

Link to comment
Share on other sites

Welcome to AutoIt and the forum!

The files you want to FileInstall currently exist in the samr directory as the script?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Hi ElChaca, welcome to the forum.

Please use the <> button when adding code, so that colors and formatting apply to you code, as it makes it much easier for your helpers to read.

Resources are anything that has a path (i.e. C:\Users\Tinus\Desktop\Repacker\favicon.ico) or an Include file. They must exist and be correct, especially Include files, which are required for your code to work. Include files are generally in the AutoIt install directory (folder).

I suspect your problem is with FileInstall (you probably need to use .\ or the correct full path).

FileInstall(".\elchaca.exe", $sfldr1 & "\elchaca.exe")

By the way AutoIt = Automate It

It is not an IT department for Auto's.

EDIT

water was too quick for me.

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

1 hour ago, TheSaint said:

EDIT

water was too quick for me.

Being quicker than an Aussie is easy :D

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Developers

Don't put that large size file inside the Script.exe but distribute it as separate Zip file, which the script can unzip and process. This way you have way more flexibility when the script needs to be modified as that doesn't require to distribute the big file again.

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

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
 Share

  • Recently Browsing   0 members

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