diff options
| author | A2va <[email protected]> | 2024-05-24 18:14:04 +0200 |
|---|---|---|
| committer | A2va <[email protected]> | 2024-05-24 18:14:04 +0200 |
| commit | 6072e5322a07588331cace47edd6022910094691 (patch) | |
| tree | d29744c530859eae24e76ec7fcd25531e4dc0199 /tests/plugins/pack/xmake.lua | |
| parent | 28322db9b0c5ccee35c1445dfc567bea0d8ff072 (diff) | |
Add wix format to tests
Diffstat (limited to 'tests/plugins/pack/xmake.lua')
| -rw-r--r-- | tests/plugins/pack/xmake.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua index 1ce179b33..2506d2fc4 100644 --- a/tests/plugins/pack/xmake.lua +++ b/tests/plugins/pack/xmake.lua @@ -19,7 +19,7 @@ target("foo") add_packages("zlib") xpack("test") - set_formats("nsis", "srpm", "rpm", "zip", "targz", "srczip", "srctargz", "runself") + set_formats("nsis", "srpm", "rpm", "zip", "targz", "srczip", "srctargz", "runself", "wix") set_title("hello") set_author("ruki") set_description("A test installer.") @@ -61,6 +61,11 @@ xpack_component("LongPath") set_title("Enable Long Path") set_description("Increases the maximum path length limit, up to 32,767 characters (before 256).") on_installcmd(function (component, batchcmds) + batchcmds:rawcmd("wix", [[ + <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Control\FileSystem"> + <RegistryValue Type="integer" Name="LongPathsEnabled" Value="1" KeyPath="yes"/> + </RegistryKey> + ]]) batchcmds:rawcmd("nsis", [[ ${If} $NoAdmin == "false" ; Enable long path |
