mark2004 Posted February 2, 2008 Share Posted February 2, 2008 I need to copy several files (some .exe and some .txt) to someone's pc and I'd like to do it by just writing a script that could do everything. It would be even cooler if it could be a wizard type installer where they just click Next through a couple windows and it does it's thing. How do I make an executable file that has other .exe's and .txt's packaged within it so that I can copy those files to certain folders??? I have no clue where to even start on this one. If anyone has a nifty little installer program that does something similar, please post your code. I'd love to be able to put something like that together. Thanks, Mark Link to comment Share on other sites More sharing options...
Tomb Posted February 2, 2008 Share Posted February 2, 2008 use FileInstall. i also said this in the clone of this thread. Link to comment Share on other sites More sharing options...
Fossil Rock Posted February 2, 2008 Share Posted February 2, 2008 Look into Inno Setup.You can delete the duplicate thread. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
mark2004 Posted February 2, 2008 Author Share Posted February 2, 2008 use FileInstall. i also said this in the clone of this thread.Great stuff. I will do some testing with FileInstall. It looks like what I'm after. I can't beleive I've never noticed that function....... Link to comment Share on other sites More sharing options...
Swift Posted February 2, 2008 Share Posted February 2, 2008 I wouldnt make an installer myself...I use Inno Installer...fast...free....no advertisments...its really cool actually... Link to comment Share on other sites More sharing options...
danielkza Posted February 2, 2008 Share Posted February 2, 2008 I wouldnt make an installer myself...I use Inno Installer...fast...free....no advertisments...its really cool actually...I prefer NSIS,it's VERY powerful,can do almost everything in a simple scripting language,lot's of User functions,LZMA compression,and the best of all,it's Open Source. Link to comment Share on other sites More sharing options...
mark2004 Posted February 2, 2008 Author Share Posted February 2, 2008 Thanks for all the great suggestions. I'll be checking out INNO and NSIS. I can never get enough scripting tools so I can't wait. Link to comment Share on other sites More sharing options...
GEOSoft Posted February 2, 2008 Share Posted February 2, 2008 I prefer NSIS,it's VERY powerful,can do almost everything in a simple scripting language,lot's of User functions,LZMA compression,and the best of all,it's Open Source.And open source makes it good because?? George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
DirtDBaK Posted February 2, 2008 Share Posted February 2, 2008 I made my own simple installer lol its posted here on the forums.Its not great like the other installers, but it outputs autoit source code so you can edit it however you want. [center][/center] Link to comment Share on other sites More sharing options...
GEOSoft Posted February 2, 2008 Share Posted February 2, 2008 I have both NSIS and Inno installed on one of my apps has support for both but I rarely use NSIS. I have templates for Inno Setup that make it plain and simple. They are both scriptable but Inno has the advantage of accepting Pascal code for those difficult to do installs as well as a preprocessor and a lot of good include files. There are also a couple of very good front ends for it. The Resource Hacker install package in my signature was created with Inno. And for danielkza: Yes Inno is open source but that has nothing to do with how good it is. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Tomb Posted February 2, 2008 Share Posted February 2, 2008 I wouldnt make an installer myself...I use Inno Installer...fast...free....no advertisments...its really cool actually...i would. i like programs to work just as i want them to so if i make something myself, it is much better in my opinion. Link to comment Share on other sites More sharing options...
GEOSoft Posted February 2, 2008 Share Posted February 2, 2008 (edited) i would. i like programs to work just as i want them to so if i make something myself, it is much better in my opinion.Wrong. A good installer does much more than just place files in a particular location and write a couple of registry entries. It takes a long time to create a good installer so best to stay with the people that specialize in it. And then there is the uninstaller and thats another whole kettle of fish. I've asked this question before but here it comes again"If it was so simple to write a good installer in AutoIt then why are the AutoIt and Scite installers written with NSIS?"Generally scripting in a proper installer is easy because all of the difficult work has been done within the installer before you ever started the script. Edited February 2, 2008 by GEOSoft George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Tomb Posted February 3, 2008 Share Posted February 3, 2008 Wrong. A good installer does much more than just place files in a particular location and write a couple of registry entries. It takes a long time to create a good installer so best to stay with the people that specialize in it. And then there is the uninstaller and thats another whole kettle of fish. I've asked this question before but here it comes again"If it was so simple to write a good installer in AutoIt then why are the AutoIt and Scite installers written with NSIS?"Generally scripting in a proper installer is easy because all of the difficult work has been done within the installer before you ever started the script.Wrong!i like files i have written Link to comment Share on other sites More sharing options...
GEOSoft Posted February 3, 2008 Share Posted February 3, 2008 Wrong!i like files i have written Then fly at it and when you screw up someones system because you didn't have a clue what you were doing then remember who is responsible. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
JustinReno Posted February 3, 2008 Share Posted February 3, 2008 I wouldnt make an installer myself...I use Inno Installer...fast...free....no advertisments...its really cool actually...Like AutoIt, it would be easy and simpler to use AutoIt in my personal opinion. Link to comment Share on other sites More sharing options...
danielkza Posted February 4, 2008 Share Posted February 4, 2008 Like AutoIt, it would be easy and simpler to use AutoIt in my personal opinion.Actually using NSIS' or Inno's wizards you don't have to write a single line of code.It can be done easily in 2 minutes. Link to comment Share on other sites More sharing options...
Swift Posted February 4, 2008 Share Posted February 4, 2008 Yep, With Inno Installer, Just Give It What Folder Etc. And Click: Create! Boom. Done. But....You Can Also Edit/Make Your Own, To Make Your Install Be Purple! Maybe Even Require A Password! Link to comment Share on other sites More sharing options...
tic Posted February 4, 2008 Share Posted February 4, 2008 it would be very easy to make an installer with the same features as those 2 mentioned and to look more graphically appealing. I have found my only limiting factor to be that I do not want to make the size of the installer too large so can't use too many graphics. Link to comment Share on other sites More sharing options...
GEOSoft Posted February 4, 2008 Share Posted February 4, 2008 (edited) it would be very easy to make an installer with the same features as those 2 mentioned and to look more graphically appealing. I have found my only limiting factor to be that I do not want to make the size of the installer too large so can't use too many graphics.Have you even thought of how much is involved in a proper installer? Here's something to start with. Both of the installers mentioned have been in development longer than AutoIt has. In other words it's taken longer to develop the installers to where they are than it has taken to develop AutoIt. If it was a matter of copying files to a location, write a couple of reg entries and create a shortcut or two (and placed into a GUI) then you should be able to write the code in less than an hour.The fact is that there is much, much more involved than those simple tasks. Perhaps you plan on using FileInstall() to install a particular dll file which is currently installed in your system32 folder but might not be on someone elses system. Where do you plan on getting the file to include in your installer? From your system32 folder? Big mistake. Does a particular file need to be registered as a shared file? You know how to handle that don't you? And since you know how to do that then I'm sure you also know how to handle that same file on uninstall. You are well aware of files on the unsafe list and know how to do those checks aren't you? I could go on ad infinitum about the things you don't know about installers. Stick with the installers the pro's (people that know how to do it) have spent so much time and effort developing. Edited February 4, 2008 by GEOSoft George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
tic Posted February 5, 2008 Share Posted February 5, 2008 (edited) actually i can do all of those things with ease, and you seem a little confused about some of the processes involved in writing an installer.heres a basic one i wrote last year:http://www.autohotkey.net/~tic/Amun-1.39.exehowever i have developed it much further now and completely made the gui using per pixel alpha blending and written it in C and have mutiple compression options. i am not yet ready to release this version as it is planned as an installer maker. Edited February 5, 2008 by tic 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