Jump to content

NEED HELP!


poopster

Recommended Posts

Ok, here is the deal. I made a 100% self installing Ventrilo client that sets up Ventrilo Aoutomaticly. It is written as a AutoIt3 File. It calls upon a ventrilo install file that is downloaded from ventrilo's website.

Here is the issue. It is two seperate files. I have seen it where people have merged the "autoit3" .AU3 file INTO the X.exe, so that it is all one file.

The purpose is to make a 100% selfinstalling Ventrilo file that is VERY easy for people to use and they can join a Ventrilo server without having to do anything other than enter a name.

I am trying to make this ONE file instead of two to make this as simple as possible.

Thanks for the help.

Edited by poopster
Link to comment
Share on other sites


I think what you're after is the FileInstall() function in AutoIt. This allows you to include files in the .exe AutoIt produces and then use them. Here's a cut & paste from the AutoIt help file...

[b]FileInstall 
[/b]--------------------------------------------------------------------------------
Include and install a file with the compiled script.

FileInstall ( "source", "dest" [, flag] )

[u][b]Parameters
[/b][/u][i]source [/i]The source path of the file to compile. This must be a literal string; it cannot be a variable.
[i]dest[/i] The destination path of the file with trailing backslash if only the directory is used. This can be a variable.
[i]flag [/i][optional] this flag determines whether to overwrite files if they already exist:
0 = (default) do not overwrite existing files
1 = overwrite existing files

[u][b]Return Value[/b][/u]
Success: Returns 1.
Failure: Returns 0.

[u][b]Remarks[/b]
[/u]The FileInstall function is designed to include files into a compiled AutoIt script. These included files can then be "extracted" during execution of the compiled script if the statement is executed. Keep in mind that files such as images can greatly increase the size of a compiled script.
The source file must be a string and not a variable so that the compiler can extract the filename to include. The source cannot contain wildcards.

When this function is used from a non-compiled script, a copy operation is performed instead (to allow for easy testing pre-compilation).
Files maintain their original creation/modification timestamps when installed.

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
  • Recently Browsing   0 members

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