Creating a simple MSI packageThis tutorial will guide you step by step into the creation of a simple Advanced Installer project from scratch and building it in order to obtain a MSI package. It is addressed to those who have no previous experience in using the Advanced Installer application. Let's suppose that you want to create a package to install a simple text file, a story you wrote. Choose an already existing text file on your local disk, or create one by using the "New > Text Document" right-click context menu in Windows Explorer. Name the file "story.txt". Open it with your favorite text editor and type a couple of lines to give it some content.
Create the projectIf Advanced Installer is not currently running, start it by double-clicking on the desktop icon or by selecting it from the "Start > All Programs > Advanced Installer" menu. When the application starts, you will be presented a dialog where you can choose the type of the project you want to create.
Select the "Simple" type and press the button. The new project has been created and from now on you will edit it.
Add filesThe most important step in creating a MSI package is adding a file or folder.
Build and installNow that you have added a file to your project let's build the MSI package.
Congratulations! You have created your first Advanced Installer MSI package. By default, the "story.txt" file will be installed in "C:\Program Files\Your Company\Your Application". Browse to that folder in Windows Explorer to check. Remove the installed fileYou can remove the installed file either from the "Add/Remove Programs" pane in the Control Panel, or you can have it removed from within the Advanced Installer application itself. Simply press the button again without modifying anything and the Setup wizard will appear. Select in the second screen and wait until the uninstall process is complete.
Edit the product and company namesOf course, "Your Company" and "Your Application" aren't too expressive names for the story you are trying to distribute. Let's change them.
Create shortcutsInstalling in the "Programs Files" location is not of much use if we don't create shortcuts to the installed file. We will create two: one in the "Start" menu and another one on the computer desktop.
Change the shortcut name to "Long Story" and click . The new shortcut will be added in the "Application Shortcut Folder". That means that this shortcut will be installed in the "Start > All Programs > Product Name" menu of the Target Computer. To also create a shortcut that will be installed on the Target Computer's desktop, select the "Desktop" folder in the "Folders" tree and click the button. A file picker dialog will pop up, allowing you to select the target file of this new shortcut.
Select "story.txt" and press . Press again in the "New Shortcut" dialog, after you've changed the shortcut name to "Long Story". The new shortcut will be added to the "Desktop" folder.
Change the product versionIn time, you may want to release a new version of the story. Maybe you want to fix some issues discovered in the first release. Nothing easier with Advanced Installer. First, open the "story.txt" file your favorite text editor and add a couple of lines to it, so that we have an actual file change.
When building, saving or selecting another page, you will be asked to generate a new Product Code. Answer "Yes" if you want the new package to automatically upgrade the previous version of the story, if found on the target computer. If you answer "No", the two versions will be prevented from being installed simultaneously on the same computer. The EndThis concludes our tutorial. To learn more, please read the Professional Installation tutorial. | |
|
| Privacy Policy | Windows Installer | Search Engine Ranking | Link Analyzer | ||
| © 2002 - 2008 Caphyon Ltd. Trademarks belong to their respective owners. All rights reserved. | ||