简体   繁体   中英

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

I have a freeware program to ready share via my website. It 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM