Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Inno Setup.

 

My first attempt and writing an installer for my app with Inno worked out so much better than the hour or so I spent trying to figure out the Windows Installer.

 

Not that I'm bagging the Windows Installer, it seems pretty powerful. But I wasn't exactly happy with the fact that it generate 5 different files that need to be distributed together just to ensure compatibility with everyone's system (InstMsiA.exe, IstMsiW.exe, Setup.exe, Setup.ini, and the .msi file). The overall size was just too big to distribute (3.56 mb) when Inno gave me a simple 330kb file that did everything Windows Installer did (and was a *hell* of a lot faster at doing it too)

  • *Gurus*
Posted
I'm guessing inno setup didn't include the windows installer bootstraps that install the latest version. The only file you actually *need* from the windows installer project is the .msi file, if you're willing to forget about the user having windows installer installed.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

True

 

Though what I don't get is why you need to install the installer just to install the program? Shouldn't the whole thing be self-extracting anway? And why generate an INI file? If the Setup app can find the INI file, couldn't it just find the MSI file and any other installer-required files by itself?

 

I still don't have a complete understanding of Windows Installer, especially whole bootstrap thing, but the only installer I need is one that suits my purposes. And at the moment Inno does the job just fine.

  • *Gurus*
Posted

My knowledge of windows installer is by no means comprehensive, but I do know a bit. All you actually NEED to run a windows installer package is the .msi file. These are essentially executable, in that the MSI files are run by the windows installer program. All the other files created (the .ini, setup.exe, and the two bootstraps) are meant for people without windows installer on their machine.

 

Windows Installer was first packaged with Windows 2000, and that version has been included with every Windows since (ME, XP). However, with .NET there came an updated version of it, so users need this updated version to install packages created with the .NET Setup and Deployment project wizard. This is why people usually include the bootstrap, because without it users won't be able to run the install package.

 

However - I don't bother with the bootstrap, because when I deploy applications I rely on the fact that dotnetfx.exe (the .net runtime redistributable) installs the latest windows installer on to the machine. I use an autorun menu to give the user two choices, to install the .net framework and then install my application. Once the .net framework is installed the windows installer runtimes will be updated and they can run my .msi file.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...