Jump to content
Sign in to follow this  
kakashi

software install!

Recommended Posts

kakashi

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 by kakashi

Share this post


Link to post
Share on other sites
avery

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 by avery

www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org

Share this post


Link to post
Share on other sites
kakashi

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?

Share this post


Link to post
Share on other sites
avery

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

Share this post


Link to post
Share on other sites
kakashi

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

Share this post


Link to post
Share on other sites
erik7426

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 by erik7426

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.