Computer Science Canada [Tutorial] Packing and Deployment |
Author: | rdrake [ Fri Sep 22, 2006 12:55 pm ] | ||||||||||||
Post subject: | [Tutorial] Packing and Deployment | ||||||||||||
So you've got your picture perfect application all coded and ready to go. But you're probably wondering, "how do I get this marvelous program to other people?" The answer is simple, you must create an installer. Here is our gem of a program, in its entirity:
Note: This tutorial will only cover creating Windows installers. There should be enough resources on this site covering Linux deployment. Now, we have quite a few free options for creating installers on Windows. I will discuss two of my favourites, and some of the most widely used install creators, NSIS and Inno. You can find their respective sites at the following locations: I personally find Inno Setup is easier for a beginner to use, however, you may use NSIS if you feel more comfortable. After reviewing the features, it appears as though NSIS offers more advanced options. This tutorial will mostly cover Inno. Both of these installers follow the following order in the structure of their scripts.
Default Options In Inno Setup, begins with "[Setup]"
Files to Copy Next we must define which files to copy. Now, some files can have special flags (ie, the Readme). This allows us to present the user with the option to view the files upon successful install.
Of course you can create subdirectories as well, by doing something like the following.
Icons Finally we can create some icons. Always nice when you want to make your program a bit more friendly.
Putting it all together, we get this.
If you're using Inno Setup, just press CTRL+F9 in order to compile the setup file. Look in the Output directory created by Inno for the installer. Deployment Now that you've got your installer all ready to go, where do you put it? There are several options.
|
Author: | iamcow [ Tue Sep 26, 2006 4:43 pm ] |
Post subject: | |
what language. It looks like C but I only started learning C so i wouldn't be able to tell between c and c++ |
Author: | rdrake [ Tue Sep 26, 2006 4:54 pm ] |
Post subject: | |
iamcow wrote: what language. It looks like C but I only started learning C so i wouldn't be able to tell between c and c++ The example is in C, however that does not make a difference. The program you are distributing can be in any language. |
Author: | wtd [ Tue Sep 26, 2006 5:42 pm ] | ||
Post subject: | |||
As I'm on a bit of a retro kick...
|