Swift Posted January 17, 2008 Share Posted January 17, 2008 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 More sharing options...
ame1011 Posted January 17, 2008 Share Posted January 17, 2008 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 More sharing options...
Swift Posted January 17, 2008 Author Share Posted January 17, 2008 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? Link to comment Share on other sites More sharing options...
weaponx Posted January 17, 2008 Share Posted January 17, 2008 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. Link to comment Share on other sites More sharing options...
Swift Posted January 17, 2008 Author Share Posted January 17, 2008 ....i was asking...if that was WHAT I NEEDED TO DO THIS OPERATION. Link to comment Share on other sites More sharing options...
Swift Posted January 17, 2008 Author Share Posted January 17, 2008 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 More sharing options...
weaponx Posted January 17, 2008 Share Posted January 17, 2008 (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/AutoItNotOnToDoListIf your exe is in the same folder as your script just do this:FileInstall("1.exe", @ProgramFilesDir & "\File\1.exe") Edited January 17, 2008 by weaponx Link to comment Share on other sites More sharing options...
Swift Posted January 17, 2008 Author Share Posted January 17, 2008 (edited) @Scriptdir is a variable? i only thought $ was edit:....and still doesnt work.... Edited January 17, 2008 by Swift Link to comment Share on other sites More sharing options...
weaponx Posted January 17, 2008 Share Posted January 17, 2008 Try using DirCreate (@ProgramFilesDir & "\File") before FileInstall() Link to comment Share on other sites More sharing options...
blademonkey Posted January 17, 2008 Share Posted January 17, 2008 read up on this.http://nsis.sourceforge.net/Main_Pageor thishttp://www.clickteam.info/unregistered_IC.php ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
Swift Posted January 17, 2008 Author Share Posted January 17, 2008 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 More sharing options...
Developers Jos Posted January 17, 2008 Developers Share Posted January 17, 2008 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 ... 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 More sharing options...
Swift Posted January 17, 2008 Author Share Posted January 17, 2008 hmm...well thanks...lol...but...i actually tried the install creator...it worked...its all packed into a .exe haha i love it...thanks... Link to comment Share on other sites More sharing options...
Swift Posted January 17, 2008 Author Share Posted January 17, 2008 (edited) check it out lol...its bigger than whats allowed >< Edited January 17, 2008 by Swift Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now