Jump to content

how would i "install" a program?


Swift
 Share

Recommended Posts

how would i make a .exe install a program?

like...it would put the .exe file at start>all programs

place....and it would put a shortcut on the desktop...how would i do this?

Inetget()

and

Copyfile()?

Link to comment
Share on other sites

You need to FileCreateShortcut the exe to:

C:\Documents and Settings\All Users\Desktop

for the desktop shortcut

and

C:\Documents and Settings\All Users\Start Menu\Programs

for the start menu shortcut

[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]
Link to comment
Share on other sites

FileInstall(@Scriptdir & "\1.exe", @ProgramFilesDir & "\File\1.exe")

doesnt...work...????????????

i put a 1.exe on my desktop...tring to put it into program files dir....but...nothing happens...

Link to comment
Share on other sites

FileInstall(@Scriptdir & "\1.exe", @ProgramFilesDir & "\File\1.exe")

doesnt...work...????????????

i put a 1.exe on my desktop...tring to put it into program files dir....but...nothing happens...

From the help file:

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.

If you are wondering why see whats NOT on the AutoIt TODO list:

http://svn.autoitscript.com/trac/wiki/AutoItNotOnToDoList

If your exe is in the same folder as your script just do this:

FileInstall("1.exe", @ProgramFilesDir & "\File\1.exe")

Edited by weaponx
Link to comment
Share on other sites

not really what im looking for...and this isnt working for me either...so i think ima just give up...i want to take the .exe from @SCRIPTDIR...but it wont let me...and theres nothing else i can do...so im giving up on this project to install my programs...unless theres another way which i dont know about...

Link to comment
Share on other sites

  • Developers

not really what im looking for...and this isnt working for me either...so i think ima just give up...i want to take the .exe from @SCRIPTDIR...but it wont let me...and theres nothing else i can do...so im giving up on this project to install my programs...unless theres another way which i dont know about...

Patience's is a virtue ... :D

Now which part is soo difficult for you that is not clearly explained in the helpfile?

You CANNOT use variables(nor macro's) in the first param of FileInstall, but when the file is in the same directory as the script then just lose it and only specify teh name for the file to be included ....

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...