zoukankan      html  css  js  c++  java
  • inno Setup 使用笔记

    打包软件添加桌面图标和菜单栏文件夹(都可勾选):

    ; 脚本由 Inno Setup 脚本向导 生成!
    ; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!
    
    #define MyAppName "xxxx"
    #define MyAppVersion "1.0"
    #define MyAppPublisher "xxx"
    #define MyAppURL "http://xxx.xx.xx"
    #define MyAppExeName "xxxxxx"
    
    [Setup]
    ; 注: AppId的值为单独标识该应用程序。
    ; 不要为其他安装程序使用相同的AppId值。
    ; (生成新的GUID,点击 工具|在IDE中生成GUID。)
    AppId={{xxxxxx-xxxx-xxxx-xxxx-xxxxxx}
    AppName={#MyAppName}
    AppVersion={#MyAppVersion}
    ;AppVerName={#MyAppName} {#MyAppVersion}
    AppPublisher={#MyAppPublisher}
    AppPublisherURL={#MyAppURL}
    AppSupportURL={#MyAppURL}
    AppUpdatesURL={#MyAppURL}
    DefaultDirName={pf}{#MyAppName}
    DefaultGroupName={#MyAppName}
    AllowNoIcons=yes
    OutputBaseFilename=xxxx   --输出文件名
    SetupIconFile=C:xxxxxx.ico  --应用程序桌面图标
    Compression=lzma
    SolidCompression=yes
    
    [Languages]
    Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"  --简体中文
    Name: "english"; MessagesFile: "compiler:LanguagesEnglish.isl"  --英文
    
    [Tasks]
    Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone; 
    --Flags标记要想勾选创建桌面图标属性值:checkablealone [Files] Source: "C:xxxxxx.exe"; DestDir: "
    {app}"; Flags: ignoreversion Source: "C:xxxxxx.xml"; DestDir: "{app}xxx"; Flags: ignoreversion --如要添加文件夹及其该文件夹下的文件基本格式 ; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion” [Icons] Name: "{group}{#MyAppName}"; Filename: "{app}{#MyAppExeName}" Name: "{group}{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}" Name: "{group}{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" Name: "{commondesktop}{#MyAppName}"; Filename: "{app}{#MyAppExeName}"; Tasks: desktopicon [Run] Filename: "{app}{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
  • 相关阅读:
    pptpvpn链接问题
    nginx网站架构优化思路(原)
    KEEPALIVED 检测RS原理
    linux 做gw(nat)详细配置
    pptpvpn 连接后 无法上外网
    网站最常见的错误
    Python服务器开发 -- 网络基础
    python高性能编程方法一
    一步步来用C语言来写python扩展
    http响应Last-Modified和ETag
  • 原文地址:https://www.cnblogs.com/TBW-Superhero/p/7126601.html
Copyright © 2011-2022 走看看