0 Star 8 Fork 5

Lvwl / Installer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Installer

基于.NetFramework 4.5 WPF开发的应用软件打包程序
需要自行编译和文件拷贝等操作
安装页面、多语言、安装步骤等,都可完全自定义

使用环境

  • 在Windows平台运行的应用软件需要制作安装包
  • Windows平台已经安装.NetFramework 4.5及以上版本,否则无法运行安装包
  • 开发者熟悉C#语言和WPF
  • 开发工具为Visual Studio 2019及以上版本

使用方法

  1. 准备好需要打包的文件,包括主运行的exe文件,压缩到工程的Install.Framework\Application.zip文件里。

  2. 修改Shared\ApplicationParameters.cs文件。

    public const string ExePath = "主运行程序.exe";//主启动程序文件名称,包含后缀

    public const string DisplayName = "软件名称";//程序名称,在开始菜单、桌面快捷方式、程序和功能中可见,可以与主运行程序名称不同

    public const string DisplayVersion = "1.0.0.0";//显示版本号

    public const string Publisher = "Lvwl-CN";//作者名称,公司名称或个人名称

    public const string URLUpdateInfo = "";//更新链接

    public const string URLInfoAbout = "";//支持链接

    public const string HelpLink = "";//帮助链接

    public static bool HaveLicense = true;//是否有许可协议,如果有许可协议,需要准备好协议文件,rtf格式

  3. 如果有许可协议,替换Install.Framework\Licenses目录下的许可协议文件,支持不同语言使用不同协议文件。并更改Shared\Language目录下多语言包(xaml文件),设置x:Key="StrLicensePath"的值,指向对应的协议文件。

  4. 如果需要更多种类语言包,可在Shared\Language目录下添加语言包,并修改Shared\Language\LanguageConfiguration.cs文件里的LanguageConfiguration类的构造函数,将语言包加入选项。

  5. 此工程只做了解压文件到目录,写注册表和创建快捷方式。如果需要在安装前后或卸载前后执行额外操作,可自行编写功能代码。安装操作在Install.Framework\Pages\Installing.xaml.cs文件中。卸载操作在Uninstall.Framework\Pages\Uninstalling.xaml.cs文件中。

  6. 更换Install.Framework和Uninstall.Framework的图标,需要自行准备图标,在属性=>应用程序=》图标 中修改。

  7. 更换Install.Framework\MainWindow.xaml和Uninstall.Framework\MainWindow.xaml窗体中的矢量图标,位于窗体左上角。

  8. 如果需要,可以更改Install.Framework的程序集名称为自己想要的名称。但Uninstall.Framework的程序集名称不能修改,必须为Uninstall,在代码中多次使用到该名称。

  9. 生成Uninstall.Framework,得到Uninstall.exe文件,将其压缩到Install.Framework\Application.zip文件中。

  10. 生成Install.Framework,得到最终的安装文件。

MIT License Copyright (c) 2020 Lvwl-CN Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

.net framework安装软件打包程序 展开 收起
C# 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/Lvwl-CN/Installer.git
git@gitee.com:Lvwl-CN/Installer.git
Lvwl-CN
Installer
Installer
main

搜索帮助