Skip to content

Commit 6a85b72

Browse files
FEAT: Flesh out Folders.wxs
1 parent 8b332f9 commit 6a85b72

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Installer/Folders.wxs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
22
<Fragment>
33
<StandardDirectory Id="ProgramFiles6432Folder">
4-
<Directory Id="INSTALLFOLDER" Name="!(bind.Property.Manufacturer) !(bind.Property.ProductName)" />
4+
<Directory Id="CompanyFolder" Name="!(bind.Property.Manufacturer)">
5+
<Directory Id="INSTALLFOLDER" Name="!(bind.Property.ProductName)">
6+
<Directory Id="DATAFOLDER" Name="data">
7+
<Directory Id="FLUTTERASSETSFOLDER" Name="flutter_assets">
8+
<Directory Id="AssetsFolder" Name="assets">
9+
<Directory Id="FONTSFOLDER" Name="fonts" />
10+
<Directory Id="FORMTEMPLATESFOLDER" Name="form_templates" />
11+
</Directory>
12+
<Directory Id="FLUTTERFONTSFOLDER" Name="fonts" />
13+
<Directory Id="SHADERSFOLDER" Name="shaders" />
14+
</Directory>
15+
</Directory>
16+
</Directory>
17+
</Directory>
518
</StandardDirectory>
619
</Fragment>
720
</Wix>

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ which may be suitable for large projects but unlikely to be necessary for our in
7878
- See `Package.wxs` and `AppComponents.wxs` in ours for reference
7979
6. Duplicate `ComponentGroupRef` tag for the other feature with a suitable ID for Visual C++ Redustributable libraries; similarly duplicate `AppComponents.wxs` and rename IDs to waht you used in the corresponding `ComponentGroupRef` ID
8080
- See `Package.wxs` and `VRredist.wxs` in ours for reference
81+
7. Modify `INSTALLFOLDER` in `Folders.wxs` to suit your preferred install location
82+
- Supplying `ProgramFiles6432Folder` for `StandardDirectory` simply means to use either `C:\Program Files (x86)` or `C:\Program Files` as appropriate depending on build target
83+
- The template created by HeatWave concatenates company name and product name to make one folder; we split this up into a nested folder structure for our use case
84+
8. Specify additional folders nested under `INSTALLFOLDER` according to your Flutter build
85+
- Refer to `build/windows/runner/Release` after running `flutter build windows` in your Flutter project
8186

8287
## Disclaimer
8388

0 commit comments

Comments
 (0)