开发者

How to package a single-file Windows EXE for downloading?

I have a freeware program to ready share via my website. I开发者_Go百科t consists of a single Win32 executable file. Its only external dependency is the .NET 4.0 client framework. The EXE file is digitally signed with my authenticode signature.

How should I package it for distribution from my website, and why?

  • post the raw EXE file?
  • post a ZIP file, containing the single EXE?
  • produce an actual installer (MSI) to post?
  • or?


If you are intending to target only Windows it's probably best to create an MSI file. You can create one by adding a Setup project to your solution in Visual Studio.


Post the EXE file.

As a user, I would find it more convenient to know what I am downloading and don't have to guess for example say if it was zipped.


I would suggest creating an Inno Setup installer that installs the program, creates a start menu and/or desktop shortcut, and checks for .NET and downloads+installs if needed. Also sign the installer. It's dead easy to create the installer, and this will make your program more widely accessible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜