Jump to content

CreateFilesEmbedded.au3 - Like FileInstall...


JScript
 Share

Recommended Posts

Hello,

thanks for your very useful software, please find below the translation in french based on the code for the language give by RugWarrior.

ElseIf StringInStr($SysLang, "French", False) Then
  $a_language[1] = "Options pour le fichier de sortie"
  $a_language[2] = "Créer une fonction basée sur le nom de sortie"
  $a_language[3] = "Ajouter les entêtes pour l'UDF"
  $a_language[4] = "Créer seulement un fichier avec le binaire"
  $a_language[5] = "Ajouter la compression LZNT native de Windows"
  $a_language[6] = "Niveau compression"
  $a_language[7] = "&Ouvrir un fichier"
  $a_language[8] = "Intégrer fichier"
  $a_language[9] = "Test"
  $a_language[10] = "Standard"
  $a_language[11] = "Avancement conversion: "
  $a_language[12] = "Quitter"
  $a_language[13] = "Lignes converties: "
  $a_language[14] = "Choisir un fichier pour "
  $a_language[15] = "Fichier"
  $a_language[16] = "Non!"
  $a_language[17] = "Test uniquement disponible avec l'option: " & '"' & $a_language[2] & '" activée!'
  $a_language[18] = "Patientez, creation du fichier .au3 ->"
  $a_language[19] = "Enregistrer le fichier tel que construit"
  $a_language[20] = "Compression en cours..."
  $a_language[21] = " - Terminé!"
  $a_language[22] = 'Le fichier "'
  $a_language[23] = '" a été converti en fichier .au3.'

The button test doesn't work!

Edited by ricky03
Link to comment
Share on other sites

I used this UDF to create a menu of programs, currently with 11 useful programs that can be added and many other portable programs, wanted to share with you just do not have time to translate into English

Link 1: http://www.4shared.com/rar/_mCJSUXA/Menu_de_programas.html

Link 2: http://www.mediafire.com/?4bhmvk23216gh04

Posted Image

Note: When the jscript function include imprinting folders can be included several other useful programs in this menu.

Edited by Belini
Link to comment
Share on other sites

@ricky03

Yes, the button test still doesn't work in this version, only in next! Thank's.

@Belini

Very nice, but you could have opened a thread showing your program!

@SeF

Will be fixed in next version, thanks for reporting the error!

Regards,

João Carlos.

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

  • 2 weeks later...

@Belini

Very nice, but you could have opened a thread showing your program!

Sure I will do so then.

Link to comment
Share on other sites

  • 3 weeks later...

Hello JScript,

I wanted to thank you for sharing your UDF with the rest of us.

Being able to use a variable as the path of the file to install is very appealing to me. And I also do not want to use compression.

Like many others, I am looking forward to the release of your new version.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Link to comment
Share on other sites

  • 2 weeks later...

Recently i have tried this UDF and i found this great.

I saw this:

( $lToSave = False, $sPath = @TempDir, $lExecute = False )

I like to ask, what is the usage of data that will be returned if $lToSave = False ? Can this be used directly with any functions? Coz if have trued Run() and FileGetVersion with it without any success.

Link to comment
Share on other sites

@D4RKON3

Maybe I didn't understand the question, but do an analysis in the sample below:

; Syntax ........: ( [ lToSave [, sPath [, lExecute ]]] )
; Parameters ....: lToSave           - [optional] If True, save the file, else, return binary data. Default is False.
;                  sPath             - [optional] The path of the file to be save. Default is @TempDir
;                  lExecute          - [optional] Flag to execute file saved. Default is False
; Return values .: Success           - Returns decompressed binary data or saved.
;                  Failure           - Returns 0 and set @error to 1.

Regards,

João Carlos.

Edited by JScript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

OK!

See a simple example of using the binary return (without writing the file in HDD)

BinarySoundTest.zip

The same can be done with images, use your imagination

Regards,

João Carlos.

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

  • 1 month later...

I'm afraid i don't completely understand how i would refer my application to use this code to display a picture. Once i include the au3 that contains the picture i embedded i have no idea how i would tell the program to use that information. I'm probably doing things completely wrong.

Please would you explain this to me using this example if possible ;).

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EmbeddedFile.au3>
#Region ### START Koda GUI section ### Form=
$EmbedTest = GUICreate("File Embed Test", 577, 361, 192, 124)
$Pic1 = GUICtrlCreatePic("EmbeddedFile.jpg", 0, 0, 576, 360) ; <--- What would i put here?
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
EndSwitch
WEnd
Edited by Venix
Link to comment
Share on other sites

@Venix

Hi, try this:

$Pic1 = GUICtrlCreatePic(_EmbeddedFile(True), 0, 0, 576, 360)

Excuse me for the lack of information in the first post, but I'm working on a new version with support for multiple languages ​​and multiple examples of usage!

Regards,

João Carlos.

Edited by JScript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

Thanks that worked perfectly, don't worry about the information I'm still quite new so it can be hard for me to use some scripts ;). This is great by the way i have been looking for something like this for a long time to keep programs completely portable.

Link to comment
Share on other sites

  • 4 months later...

@JScript

You might include RunBinary also in the created UDF (). With this you can set lToSave to false and lExecute to true to run the embedded file from memory.

Probably a function like EmbeddedFileSetExecutionParameters(InjectionModule, CommandLineParameters,StartUpParameters etc) is also needed for passing the parameters to this 'internal' function.

Hereunder you can find the translation for dutch. Please set "English" as default if the @oslang is not known and create an option to change the language while running the tool. Thnx

"Dutch"

$a_language[1] = "Opties voor het output bestand."
$a_language[2] = "Genereer een functie op basis van de naam van het output bestand."
$a_language[3] = "Voeg voorbeelden voor een User Defined Functions (UDF) toe."
$a_language[4] = "Genereer alleen een bestand met de binaire data."
$a_language[5] = "LZNT compressie native Windows toevoegen."
$a_language[6] = "Compressie niveau"
$a_language[7] = "&Open bestand"
$a_language[8] = "Voeg bestand toe"
$a_language[9] = "Test"
$a_language[10] = "Standaard"
$a_language[11] = "Voortgang van de conversie:"
$a_language[12] = "Sluiten"
$a_language[13] = "Geconverteerde regels"
$a_language[14] = "Kies een bestand"
$a_language[15] = "Bestand"
$a_language[16] = "Nee!"
$a_language[17] = 'Test alleen met de optie: "Genereer een functie op basis van de naam van het output bestand" geactiveerd!'
$a_language[18] = "'Een moment, genereer het bestand. AU3 indeling->"
$a_language[19] = "Sla het bestand op na generatie"
$a_language[20] = "Comprimeer het bestand ..."
$a_language[21] = "- Voltooid!"
$a_language[22] = 'Bestand" '
$a_language[23] = '"AU3 indeling is gegenereerd voor."'
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

×
×
  • Create New...