Skip to content

Commit 84e8d52

Browse files
committed
new installer
1 parent d226861 commit 84e8d52

3 files changed

Lines changed: 268 additions & 0 deletions

File tree

wix/License.rtf

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{\rtf1\ansi\ansicpg1252\deff0\nouicompat{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fnil\fcharset0 Courier New;}}
2+
{\colortbl ;\red0\green0\blue255;}
3+
{\*\generator Riched20 10.0.15063}\viewkind4\uc1
4+
\pard\sa180\qc\fs24\lang9 Apache License\line Version 2.0, January 2004\line {{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/ }}{\fldrslt{http://www.apache.org/licenses/\ul0\cf0}}}}\f0\fs24\par
5+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\par
6+
7+
\pard\fi-360\li360\sa180\tx360 1. Definitions.\par
8+
9+
\pard\sa180 "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\par
10+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\par
11+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\par
12+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.\par
13+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\par
14+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\par
15+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\par
16+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\par
17+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."\par
18+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\par
19+
20+
\pard\fi-360\li360\sa180\tx360 2. Grant of Copyright License.\par
21+
22+
\pard\sa180\tx360 Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\par
23+
24+
\pard\fi-360\li360\sa180\tx360 3. Grant of Patent License.\par
25+
26+
\pard\sa180\tx360 Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\par
27+
28+
\pard\fi-360\li360\sa180\tx360 4. Redistribution. \par
29+
30+
\pard\sa180\tx360 You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\par
31+
32+
\pard
33+
{\pntext\f0 a.\tab}{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pnlcltr{\pntxta.}}
34+
\fi-360\li720\sa180\tx360 You must give any other recipients of the Work or Derivative Works a copy of this License; and\par
35+
{\pntext\f0 b.\tab}You must cause any modified files to carry prominent notices stating that You changed the files; and\par
36+
{\pntext\f0 c.\tab}You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and \par
37+
{\pntext\f0 d.\tab}If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\par
38+
39+
\pard\sa180 You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\par
40+
41+
\pard\fi-360\li360\sa180\tx360 5.\tab Submission of Contributions. \par
42+
43+
\pard\sa180\tx360 Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\par
44+
45+
\pard\fi-360\li360\sa180\tx360 6.\tab Trademarks. \par
46+
47+
\pard\sa180\tx360 This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\par
48+
49+
\pard\fi-360\li360\sa180\tx360 7.\tab Disclaimer of Warranty. \par
50+
51+
\pard\sa180\tx360 Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\par
52+
53+
\pard\fi-360\li360\sa180\tx360 8.\tab Limitation of Liability.\par
54+
55+
\pard\sa180\tx360 In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\par
56+
57+
\pard\fi-360\li360\sa180\tx360 9.\tab Accepting Warranty or Additional Liability. \par
58+
59+
\pard\sa180\tx360 While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\par
60+
61+
\pard\sa180\qc END OF TERMS AND CONDITIONS\par
62+
How to apply the Apache License to your work.\par
63+
64+
\pard\sa180 To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.\par
65+
\f1 Copyright (C) [YYYY] [Copyright Holder]\par
66+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\par
67+
{{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/LICENSE-2.0 }}{\fldrslt{http://www.apache.org/licenses/LICENSE-2.0\ul0\cf0}}}}\f1\fs24\par
68+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\par
69+
}
70+

wix/main.wxs

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
<?xml version='1.0' encoding='windows-1252'?>
2+
<!--
3+
Copyright (C) 2017 Christopher R. Field.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
18+
<!--
19+
Please do not remove these pre-processor If-Else blocks. These are used with
20+
the `cargo wix` subcommand to automatically determine the installation
21+
destination for 32-bit versus 64-bit installers. Removal of these lines will
22+
cause installation errors.
23+
-->
24+
<?if $(var.Platform) = x64 ?>
25+
<?define Win64 = "yes" ?>
26+
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
27+
<?else ?>
28+
<?define Win64 = "no" ?>
29+
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
30+
<?endif ?>
31+
32+
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
33+
34+
<Product
35+
Id='*'
36+
Name='tmc-cli-rust'
37+
UpgradeCode='E702315C-E54D-4F15-9513-6A4CCCC7E8D7'
38+
Manufacturer='HoolaBoola'
39+
Language='1033'
40+
Codepage='1252'
41+
Version='$(var.Version)'>
42+
43+
<Package Id='*'
44+
Keywords='Installer'
45+
Description='Command line interface for TMC, written in Rust.'
46+
Manufacturer='HoolaBoola'
47+
InstallerVersion='450'
48+
Languages='1033'
49+
Compressed='yes'
50+
InstallScope='perMachine'
51+
SummaryCodepage='1252'
52+
Platform='$(var.Platform)'/>
53+
54+
<MajorUpgrade
55+
Schedule='afterInstallInitialize'
56+
DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.'/>
57+
58+
<Media Id='1' Cabinet='media1.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'/>
59+
<Property Id='DiskPrompt' Value='tmc-cli-rust Installation'/>
60+
61+
<Directory Id='TARGETDIR' Name='SourceDir'>
62+
<Directory Id='$(var.PlatformProgramFilesFolder)' Name='PFiles'>
63+
<Directory Id='APPLICATIONFOLDER' Name='tmc-cli-rust'>
64+
<!--
65+
Disabling the license sidecar file in the installer is a two step process:
66+
67+
1. Comment out or remove the `Component` tag along with its contents.
68+
2. Comment out or remove the `ComponentRef` tag with the "License" Id
69+
attribute value further down in this file.
70+
-->
71+
<Component Id='License' Guid='*' Win64='$(var.Win64)'>
72+
<File Id='LicenseFile'
73+
Name='License.rtf'
74+
DiskId='1'
75+
Source='wix\License.rtf'
76+
KeyPath='yes'/>
77+
</Component>
78+
79+
<Directory Id='Bin' Name='bin'>
80+
<Component Id='Path' Guid='56D2A05B-2A48-4265-98C6-82F804D71B6B' Win64='$(var.Win64)' KeyPath='yes'>
81+
<Environment
82+
Id='PATH'
83+
Name='PATH'
84+
Value='[Bin]'
85+
Permanent='no'
86+
Part='last'
87+
Action='set'
88+
System='yes'/>
89+
</Component>
90+
<Component Id='binary0' Guid='*' Win64='$(var.Win64)'>
91+
<File
92+
Id='exe0'
93+
Name='tmc.exe'
94+
DiskId='1'
95+
Source='target\$(var.Profile)\tmc-cli-rust.exe'
96+
KeyPath='yes'/>
97+
</Component>
98+
</Directory>
99+
</Directory>
100+
</Directory>
101+
</Directory>
102+
103+
<Feature
104+
Id='Binaries'
105+
Title='Application'
106+
Description='Installs all binaries and the license.'
107+
Level='1'
108+
ConfigurableDirectory='APPLICATIONFOLDER'
109+
AllowAdvertise='no'
110+
Display='expand'
111+
Absent='disallow'>
112+
<!--
113+
Comment out or remove the following `ComponentRef` tag to remove
114+
the license sidecar file from the installer.
115+
-->
116+
<ComponentRef Id='License'/>
117+
118+
<ComponentRef Id='binary0'/>
119+
120+
<Feature
121+
Id='Environment'
122+
Title='PATH Environment Variable'
123+
Description='Add the install location of the [ProductName] executable to the PATH system environment variable. This allows the [ProductName] executable to be called from any location.'
124+
Level='1'
125+
Absent='allow'>
126+
<ComponentRef Id='Path'/>
127+
</Feature>
128+
</Feature>
129+
130+
<SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/>
131+
132+
133+
<!--
134+
Uncomment the following `Icon` and `Property` tags to change the product icon.
135+
136+
The product icon is the graphic that appears in the Add/Remove
137+
Programs control panel for the application.
138+
-->
139+
<!--<Icon Id='ProductICO' SourceFile='wix\Product.ico'/>-->
140+
<!--<Property Id='ARPPRODUCTICON' Value='ProductICO' />-->
141+
142+
143+
<!--
144+
Adding a URL to Add/Remove Programs control panel listing for the
145+
application is a two step process:
146+
147+
1. Uncomment the following `Property` tag with the "ARPHELPLINK" Id
148+
attribute value.
149+
2. Change the value for `Value` attribute of the following
150+
`Property` tag to a valid URL.
151+
-->
152+
<!--<Property Id='ARPHELPLINK' Value='ChangeMe'/>-->
153+
154+
<UI>
155+
<UIRef Id='WixUI_FeatureTree'/>
156+
<!--
157+
Disabling the EULA dialog in the installer is a two step process:
158+
159+
1. Uncomment the following two `Publish` tags
160+
2. Comment out or remove the `<WiXVariable Id='WixUILicenseRtf'...` tag further down
161+
162+
-->
163+
<!--<Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='CustomizeDlg' Order='99'>1</Publish>-->
164+
<!--<Publish Dialog='CustomizeDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg' Order='99'>1</Publish>-->
165+
166+
</UI>
167+
168+
<!--
169+
Disabling the EULA dialog in the installer requires commenting out
170+
or removing the following `WixVariable` tag
171+
-->
172+
<WixVariable Id='WixUILicenseRtf' Value='wix\License.rtf'/>
173+
174+
175+
<!--
176+
Uncomment the next `WixVaraible` tag to customize the installer's
177+
Graphical User Interface (GUI) and add a custom banner image across
178+
the top of each screen. See the WiX Toolset documentation for details
179+
about customization.
180+
181+
The banner BMP dimensions are 493 x 58 pixels.
182+
-->
183+
<!--<WixVariable Id='WixUIBannerBmp' Value='wix\Banner.bmp'/>-->
184+
185+
186+
<!--
187+
Uncomment the next `WixVariable` tag to customize the installer's
188+
Graphical User Interface (GUI) and add a custom image to the first
189+
dialog, or screen. See the WiX Toolset documentation for details about
190+
customization.
191+
192+
The dialog BMP dimensions are 493 x 312 pixels.
193+
-->
194+
<!--<WixVariable Id='WixUIDialogBmp' Value='wix\Dialog.bmp'/>-->
195+
196+
</Product>
197+
198+
</Wix>

wix/tmc-cli-rust-0.1.0-x86_64.msi

13.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)