zoukankan      html  css  js  c++  java
  • Inno Setup入门(八)——有选择性的安装文件

    这主要使用[Components]段实现,一个演示的代码如下:

    [setup]

    ;全局设置,本段必须

    AppName=Test

    AppVerName=TEST

    DefaultDirName="E:\TEST"

    AppVersion=1.0

    Compression=lzma2/max

    ShowLanguageDialog=yes

     

    [Components]

    Name: main; Description:"主程序(必选)";Types:full compact custom;Flags: fixed

    Name: data; Description:"数据文件";Types:full

    Name: help;Description:"帮助文件";Types:full

     

    [files]

    Source: "F:\desktop\test\ipmsg.exe"; DestDir: "{app}";Components:main

    Source: "F:\desktop\test\bin.dat"; DestDir: "{app}";Components:data

    Source: "F:\desktop\test\help.chm"; DestDir: "{app}" ;Components:help

    Source: "F:\desktop\test\readme.txt"; DestDir: "{app}";Flags:isreadme

    运行生成的安装包,效果如下:

    Inno Setup入门(八)——有选择性的安装文件 - Castor - 趁年轻,多折腾~~

     通过标志位设置为fixed,将确保主程序必定安装,另外,中文包中翻译出现了点错误,呵呵,“清除”写成了“清楚”。

    转自:http://www.360doc.com/content/13/0327/15/4221543_274250543.shtml

  • 相关阅读:
    Leetcode 283. Move Zeroes
    算法总结
    随机森林
    BRICH
    DBSCAN算法
    k-means算法的优缺点以及改进
    soket编程
    手电筒过河
    字符串反转
    URAL 1356. Something Easier(哥德巴赫猜想)
  • 原文地址:https://www.cnblogs.com/xiurui12345/p/3095108.html
Copyright © 2011-2022 走看看