elchaca

Buidling AutoIT

9 posts in this topic

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

 

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hi ElChaca,

 

You have added a trailing backslash to both FileInstall destination path and $sfldr1 variable.

Edited by Anas
1 person likes this

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

It seems de size of the exe (1700mb) gives the problem.

When I use a smaller one no problemns.

Does anyone have a solution how to fix it?

 

 

 

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks for helping. Can You tell Me the maximum size to add?

Share this post


Link to post
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