Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a robust, minimal installer for Windows? [closed]

I want to create an installer EXE with some specific properties:

  1. it should be a single exe file
  2. it should be robust (i.e. the technique should be known to work well on any Windows system)
  3. it should create only a single file (a .scn screensaver file) in %systemroot%
  4. it should add the option to uninstall that particular file in "Control Panel -> Add or Remove Programs" but without creating any new entry C:\Program Files or copying an uninstaller.exe somewhere.

I've seen installers that work like that - so how to do this?

like image 603
Mat Avatar asked Jul 02 '09 12:07

Mat


People also ask

How do I force close a Windows installer?

To stop the Windows Installer service, tap on the Windows-key, type services. msc, and hit the Enter-key. Â Locate Windows Installer, and select stop using buttons on the toolbar, or by right-clicking on the service instead.

Which Windows Installer is best?

WiX can be used directly from Visual Studio for both simple and advanced setups. Those are the best installer software packages for Windows 10. Those developers can set up some great installers for end-users to install programs with.


2 Answers

Take a look at NSIS it is quite simple and it is used to create installers for Windows.

like image 183
Otávio Décio Avatar answered Oct 10 '22 00:10

Otávio Décio


As you've said it can be an MSI, I'd suggest going down that route.

You could play around with installer projects in Visual Studio (if you have it; I'm not sure if the Express editions support making installers), as they'll quite happily produce an MSI that will do what you're asking. It's worth noting they'll produce an EXE and an MSI, you only need to distribute the MSI though.

Failing that, take a look at Windows Installer XML (WiX) as that will let you hand sculpt an MSI that does exactly what you want it to do and will cater for all five of your points above.

Note: Using an MSI will mean that you'll need to have Windows Installer on the machine you're installing to - It's in-box from Windows 2000/ME upwards.

like image 40
Rob Avatar answered Oct 10 '22 02:10

Rob