For any updates to this article, check my site here.Ī setup program made with Windows Installer can be as small as 50kb Please send any comments or bug reports to me via email. Even the latest version of syssetup.dll (in XP) can't handle long filenames without problems! So I had to build a rename table (in the setup file), which renames all short names back to their original names. One of the problems I ran into was the lack of support for long file names when using Windows setup scripts. Create a setup wizard and run the setup script.Run an executable that is linked in your resources.inf file describes the actions in the setup process such as:Īll these actions are taken care of by Windows, so we don't have to implement them ourselves!īecause there's too much code to explain, I'll just give you a list of implementation highlights. Ask for a destination folder and program folder.Extract all files from the distribution package.The setup program performs the following tasks: The setup script, which is a Windows compatible Setup Script that does all the installation stuff for us.All files needed for the distribution glued together.The setup program = stub.exe (which unpacks the files, asks for destination folder and executes setup script).I decided to use no compression because most setups are distributed as zip files, so why compress it twice? The generated output file is made up from 3 parts: This creates a single output file that contains all setup information and files needed for installation. Output, the final step where you enter the output directory.Īfter you entered all the necessary information you can build the setup program.Shortcuts, for specifying shortcuts in the program folder (start menu).Files, this is where you specify all files that are needed to be distributed. General, where you can enter application name, company name and so on.You can also use the wizard, which will guide you through the necessary steps of creating a setup program for your software product. For example: add files, assign shortcuts and other setup specific variables. The installation builder is a simple SDI application with a tabbed form where you can enter all the information needed by the setup program. Setup Program -> The actual setup application.Installation Builder -> Used to create the installation package.Little Install Builder is made up out of two parts: If you have any suggestions or improvements please let me know! Maybe in the future I will extend the installation builder with more features, but for now I found it good enough for my needs. The application does not have all the features available in commercial setup builders, but it's a good start (I think.). There are a lot of setup programs available, but I found that their code may add more than 250KB to the total size of the final setup application, and because most of my applications are not much bigger than 100KB, I decided to write my own installation builder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |