solsikkehaven Posted February 16, 2009 Share Posted February 16, 2009 (edited) If you have 1 .EXE file and makes a install script with autoIT, is it possible to package this into one file. So instead of having a install.exe (autoIT script) and program.exe (the program), then only have a complete_install.exe file ? hope you understand what I'm thinking about.... :-) Edited February 16, 2009 by solsikkehaven Link to comment Share on other sites More sharing options...
Manjish Posted February 16, 2009 Share Posted February 16, 2009 If you have 1 .EXE file and makes a install script with autoIT, is it possible to package this into one file. So instead of having a install.exe (autoIT script) and program.exe (the program), then only have a complete_install.exe file ? hope you understand what I'm thinking about.... :-) From the Help file.. Include and install a file with the compiled script. FileInstall ( "source", "dest" [, flag] ) Parameters source The source path of the file to compile. This must be a literal string; it cannot be a variable. dest The destination path of the file with trailing backslash if only the directory is used. This can be a variable. flag [optional] this flag determines whether to overwrite files if they already exist: 0 = (default) do not overwrite existing files 1 = overwrite existing files Return Value Success: Returns 1. Failure: Returns 0. Remarks 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. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
solsikkehaven Posted February 16, 2009 Author Share Posted February 16, 2009 (edited) Thanks. trying: FileInstall("DivX7.exe", "%temp%\DivX7\" ,1) seems to work indeed :-) thanks again .... EDIT: hmmm. rolled back my virtual machine.....now it doesn't work :-( Well, I'll try again :-) Edited February 16, 2009 by solsikkehaven Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now