MSFN Forum: NEED HELP! - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

NEED HELP! Read Me Rate Topic: -----

#1 User is offline   poopster 

  • Group: Members
  • Posts: 5
  • Joined: 26-October 04

  Posted 25 March 2007 - 02:00 PM

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.

This post has been edited by poopster: 25 March 2007 - 02:50 PM



#2 User is offline   SRJ 

  • Newbie
  • Group: Members
  • Posts: 48
  • Joined: 07-November 04

Posted 26 March 2007 - 02:45 AM

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.
 


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy