zoukankan      html  css  js  c++  java
  • wix tool 打包官方例子


    wixtoolset 和VS 插件:https://wixtoolset.org/releases/

    教学:https://www.firegiant.com/wix/tutorial/getting-started/

    例子:https://www.firegiant.com/system/files/samples/samplewixui.zip

    如果是VS 来创建,用到UI界面 需要在VS引用 “”WixUIExtension“(C:Program Files (x86)WiX Toolset v3.11in\WixUIExtension.dll)

    <?xml version='1.0' encoding='windows-1252'?>
    <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
      <Product Name='Foobar 1.0' Id='YOURGUID-86C7-4D14-AEC0-86416A69ABDE' UpgradeCode='YOURGUID-7349-453F-94F6-BCB5110BA4FD'
        Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme Ltd.'>
    
        <Package Id='*' Keywords='Installer'
          Description="Acme's Foobar 1.0 Installer"
          Comments='Foobar is a registered trademark of Acme Ltd.' Manufacturer='Acme Ltd.'
          InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
    
        <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" />
        <Property Id='DiskPrompt' Value="Acme's Foobar 1.0 Installation [1]" />
    
        <Directory Id='TARGETDIR' Name='SourceDir'>
          <Directory Id='ProgramFilesFolder' Name='PFiles'>
            <Directory Id='Acme' Name='Acme'>
              <Directory Id='INSTALLDIR' Name='Foobar 1.0'>
    
                <Component Id='MainExecutable' Guid='YOURGUID-83F1-4F22-985B-FDB3C8ABD471'>
                  <File Id='FoobarEXE' Name='FoobarAppl10.exe' DiskId='1' Source='FoobarAppl10.exe' KeyPath='yes'>
                    <Shortcut Id="startmenuFoobar10" Directory="ProgramMenuDir" Name="Foobar 1.0" WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe" IconIndex="0" Advertise="yes" />
                    <Shortcut Id="desktopFoobar10" Directory="DesktopFolder" Name="Foobar 1.0" WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe" IconIndex="0" Advertise="yes" />
                  </File>
                </Component>
    
                <Component Id='HelperLibrary' Guid='YOURGUID-6BE3-460D-A14F-75658D16550B'>
                  <File Id='HelperDLL' Name='Helper.dll' DiskId='1' Source='Helper.dll' KeyPath='yes' />
                </Component>
    
                <Component Id='Manual' Guid='YOURGUID-574D-4A9A-A266-5B5EC2C022A4'>
                  <File Id='Manual' Name='Manual.pdf' DiskId='1' Source='Manual.pdf' KeyPath='yes'>
                    <Shortcut Id="startmenuManual" Directory="ProgramMenuDir" Name="Instruction Manual" Advertise="yes" />
                  </File>
                </Component>
    
              </Directory>
            </Directory>
          </Directory>
    
          <Directory Id="ProgramMenuFolder" Name="Programs">
            <Directory Id="ProgramMenuDir" Name="Foobar 1.0">
              <Component Id="ProgramMenuDir" Guid="YOURGUID-7E98-44CE-B049-C477CC0A2B00">
                <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
                <RegistryValue Root='HKCU' Key='Software[Manufacturer][ProductName]' Type='string' Value='' KeyPath='yes' />
              </Component>
            </Directory>
          </Directory>
    
          <Directory Id="DesktopFolder" Name="Desktop" />
        </Directory>
    
        <Feature Id='Complete' Title='Foobar 1.0' Description='The complete package.'
          Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>
          <Feature Id='MainProgram' Title='Program' Description='The main executable.' Level='1'>
            <ComponentRef Id='MainExecutable' />
            <ComponentRef Id='HelperLibrary' />
          <ComponentRef Id='ProgramMenuDir' />
          </Feature>
    
          <Feature Id='Documentation' Title='Description' Description='The instruction manual.' Level='1000'>
            <ComponentRef Id='Manual' />
          </Feature>
        </Feature>
    
        <UIRef Id="WixUI_Mondo" />
        <UIRef Id="WixUI_ErrorProgressText" />
    
        <Icon Id="Foobar10.exe" SourceFile="FoobarAppl10.exe" />
    
      </Product>
    </Wix>
    

      

    加UI的地方:

    <UIRef Id="WixUI_Mondo" />
    <UIRef Id="WixUI_ErrorProgressText" />

    参考: https://www.bbsmax.com/A/n2d9p61Q5D/

  • 相关阅读:
    bzoj 4883 [Lydsy1705月赛]棋盘上的守卫——并查集(思路!)
    洛谷 1979 华容道——最短路+dp
    51nod 1443 路径和树——最短路生成树
    hdu 2222 Keywords Search——AC自动机
    bzoj 2067 [Poi2004]SZN——二分+贪心
    洛谷 1084 疫情控制——二分答案+贪心(贪心思路!)
    CF 1042A Benches——二分答案(水题)
    洛谷 1314 聪明的质监员——二分答案
    洛谷P3690 LCT模板
    bzoj1875 [SDOI2009]HH去散步——矩阵快速幂
  • 原文地址:https://www.cnblogs.com/wgscd/p/13444563.html
Copyright © 2011-2022 走看看