diff options
Diffstat (limited to 'tests/plugins/pack')
| -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 |
