What is a good free utility to create a self-extra

2019-01-24 16:13发布

According to the answers to this question, I cannot embed a file version in my .msi file.

The installer that I give the client needs to have a file version.

So, what I want to do is create a self-extracting executable containing the msi file and the setup.exe generated by Visual Studio, and put the file version on this self-extracting executable instead.

Therefore, I need a utility to create self-extracting executables which supports embedding a file version in its output. It also needs to support automatically running a file after extraction, so I can start the real installer automatically. It would be nice if it was scriptable.

All I could find was this, which looks great, but I would much prefer a free alternative.

Does anyone have any suggestions?

Edit: To clarify, I'm not really looking to create an installer - I already have a VS setup project. I just want a self-extractor (like WinZip can create). So, the user mouses over Setup-Blorgbeard2008.exe, sees "Version: 1.0.0.0". User doubleclicks it, it silently extracts setup.exe and setup.msi to a temp folder, then runs setup.exe. User then sees normal installer screen and proceeds as normal.

Another Edit: Yay, I don't need a self-extractor anymore, since my other question has now been answered. That makes this whole question pretty much irrelevant. It would still be nice to be able to distribute only one file, rather than setup.exe and setup.msi.

9条回答
乱世女痞
2楼-- · 2019-01-24 16:19

Experiment in progress here:

Pop-up Version info: http://screencast.com/t/LVqvLfxCj3g

From Visual Studio Assembly info: http://screencast.com/t/fqunlMNh13

Installed with plain old MSI file.

By adding the "Version: 1.5.0" text into the Description property of the Setup Project, the version number also shows on the MSI file like so: http://screencast.com/t/A499i6jS

I generally just rename the MSI file, like DataMonkey_1_5_0.msi for my own purposes.

查看更多
疯言疯语
3楼-- · 2019-01-24 16:22

nsis looks like a good choice

查看更多
来,给爷笑一个
4楼-- · 2019-01-24 16:26

NSIS can do this.

Part of our build environment is a script that outputs version information to a "header" file that our NSIS script sources. You should be able to use something similar to embed your version information and you can certainly get NSIS to run a file after extraction.

In fact, as NSIS creates the installer package... you may be able to simplify your approach a great deal.

查看更多
We Are One
5楼-- · 2019-01-24 16:30

Little bit surprised that it is not listed here yet: IExpress is a simple tool coming with Windows and can be used to create self-extracting installers.

查看更多
Root(大扎)
6楼-- · 2019-01-24 16:31

try inno-setup

set the VersionInfoVersion directive to your binary version number, e.g.

VersionInfoVersion = 1.1.0.0

this will appear in mouseover text and properties

查看更多
聊天终结者
7楼-- · 2019-01-24 16:32

When you download Windows SDK, there is MSIStuff.exe and Setup.exe for which MS provides source code to compile. MSIStuff will "stuff" the MSI you give it into Setup.exe. Setup.exe can then be distributed.

More information at http://support.microsoft.com/kb/888473

Cons:

  • You'll have to recompile Setup.exe with the version of your product every time there is a new version of your product (MSI).
  • Not sure what license the Setup.exe source is distributed under.
查看更多
登录 后发表回答