How to create a robust, minimal installer for Wind

2019-01-13 08:03发布

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?

13条回答
放荡不羁爱自由
2楼-- · 2019-01-13 08:12

Try Advanced Installer, I think it can do all that you ask. I use it for slightly more complex installers but the free version is easy to use and powerful.

There can be an issue with MSI files, older PCs don't have the latest Windows Installer, 3.1, so you need to install that or prompt the user to, first! Have you looked into using IExpress if you just want to copy a file across?

查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-01-13 08:12

NSIS is the way to go, very simple to learn, just write a simple file specifying which files you want to install over where. You can also add QuickLaunch options and so on. Then run the NSIS compiler and you get the exe.

查看更多
SAY GOODBYE
4楼-- · 2019-01-13 08:12

I'm using Actual Installer. Try it!

查看更多
Animai°情兽
5楼-- · 2019-01-13 08:16

Both NSIS and Inno Setup will cope with all the tasks specified. Inno Setup uses a Pascal-like language for its scripts, NSIS uses its own script language.

查看更多
▲ chillily
6楼-- · 2019-01-13 08:18

I've heard good things about the free installer Innosetup, and the website says it can create single EXE installs.

查看更多
Juvenile、少年°
7楼-- · 2019-01-13 08:19

If you want to use standard deployment methods with your installer you probably should stay away from NSIS. See http://unattended.sourceforge.net/installers.php for an overview.

查看更多
登录 后发表回答