kakashi Posted February 5, 2009 Share Posted February 5, 2009 (edited) Hi everyone I want to install a software from \Temp Folder and i tried this FileInstall("software"@TempDir&"\software.exe" but i keep getting this message "Error: Error parsing function call." any ideas? Edited February 5, 2009 by kakashi Link to comment Share on other sites More sharing options...
avery Posted February 5, 2009 Share Posted February 5, 2009 (edited) FileInstall("software.exe", @TempDir & "\software.exe")oÝ÷ ÚÚò¶¬x¬zØ^±â#ºËm)äʧyçm¡§]µé©v*ðêÞ"¯{Mú{µÌ(®K¢¹²Ú«¢+Ø%¥±%¹Íѱ° ÅÕ½Ðí¥¹Íѱ°ÀäÈí¥¹ÀäÈí½à¹¥¹ÅÕ½Ðì°ÀÌØí¥¹ÌµÀìÅÕ½Ðí¥¹ÀäÈìÅÕ½Ðì¤(%¥±%¹Íѱ° ÅÕ½Ðí¥¹Íѱ°ÀäÈí¥¹ÀäÈíU1P´É,µMQU@¹¥¹ÅÕ½Ðì°ÀÌØí¥¹ÌµÀìÅÕ½Ðí¥¹ÀäÈìÅÕ½Ðì¤(%¥±%¹Íѱ° ÅÕ½Ðí¥¹Íѱ°ÀäÈí¥¹ÀäÈíU1Pµa@µMQU@¹¥¹ÅÕ½Ðì°ÀÌØí¥¹ÌµÀìÅÕ½Ðí¥¹ÀäÈìÅÕ½Ðì¤(%¥±%¹Íѱ° ÅÕ½Ðí¥¹Íѱ°ÀäÈí¥¹ÀäÈí9%MA=4µA0ĵ9Q]=I,¹¥¹ÅÕ½Ðì°ÀÌØí¥¹ÌµÀìÅÕ½Ðí¥¹ÀäÈìÅÕ½Ðì¤ Edited February 5, 2009 by avery www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org Link to comment Share on other sites More sharing options...
kakashi Posted February 5, 2009 Author Share Posted February 5, 2009 hi avery thanks for the fast response i tried them all but still not working and the software didn't start at all is there any other way that i can open/run the installation wizard from temp folder? Link to comment Share on other sites More sharing options...
avery Posted February 5, 2009 Share Posted February 5, 2009 hi avery thanks for the fast response i tried them all but still not working and the software didn't start at all is there any other way that i can open/run the installation wizard from temp folder? 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. Once you FileInstall the file into the TempDir you need to then Run it using one of the following. Run Runs an external program. RunAs Runs an external program under the context of a different user. RunAsWait Runs an external program under the context of a different user and pauses script execution until the program finishes. RunWait Runs an external program and pauses script execution until the program finishes. or ShellExecute Runs an external program using the ShellExecute API. ShellExecuteWait Runs an external program using the ShellExecute API and pauses script execution until it finishes. Run ( "filename" [, "workingdir" [, show_flag[, opt_flag ]]] ) ShellExecute ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) MAN PAGES: http://www.autoitscript.com/autoit3/docs/functions.htm I hope this helps. Thanks. avery www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org Link to comment Share on other sites More sharing options...
kakashi Posted February 5, 2009 Author Share Posted February 5, 2009 hi again i really appreciate your help ok the software.exe is already in the temp directory i tried Run("software.exe",@TempDir) but still nothing happened XZ the link helped me a lot though thanks Link to comment Share on other sites More sharing options...
erik7426 Posted February 6, 2009 Share Posted February 6, 2009 (edited) hi again i really appreciate your help ok the software.exe is already in the temp directory i tried Run("software.exe",@TempDir) but still nothing happened XZ the link helped me a lot though thanks Try Run(@TempDir & "\software.exe",@TempDir) I use this often and it works well enough... #Include <File.au3> $TempFolder = _TempFile() $ProgEXE = $TempFolder & "\software.exe" DirCreate($TempFolder) FileInstall("C:\temp\software.exe",$ProgEXE) Run($ProgEXE) Edited February 6, 2009 by erik7426 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