Sign in to follow this  
Followers 0
Swift

how would i "install" a program?

14 posts in this topic

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()?

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

so...if i uploaded the .exe somewhere...and then when you ran the "installer" it would download the .exe from rapidshare.com... (quietly...) and then copy it to the things you just gave me?

Share this post


Link to post
Share on other sites

Are you out of your mind? Have you even looked at the help file?

AutoIt can't do anything you asked.

It can't FileInstall() or FileCreateShortcut(), it can't even FileCopy()!!!

Hint Hint.

Share this post


Link to post
Share on other sites

....i was asking...if that was WHAT I NEEDED TO DO THIS OPERATION.

Share this post


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

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

@Scriptdir is a variable? i only thought $ was :D

edit:....and still doesnt work....

Edited by Swift

Share this post


Link to post
Share on other sites

Try using DirCreate (@ProgramFilesDir & "\File") before FileInstall()

Share this post


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

Share this post


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

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

hmm...well thanks...lol...but...i actually tried the install creator...it worked...its all packed into a .exe haha i love it...thanks... :D

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

check it out :D

lol...its bigger than whats allowed ><

Edited by Swift

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