@@ -5,7 +5,7 @@ xpack("xmake")
5
5
set_copyright (" Copyright (C) 2015-present, TBOOX Open Source Group" )
6
6
7
7
set_licensefile (" ../LICENSE.md" )
8
- set_formats (" nsis" , " zip" )
8
+ set_formats (" nsis" , " wix " , " zip" )
9
9
add_targets (" demo" )
10
10
set_bindir (" ." )
11
11
set_iconfile (" src/demo/xmake.ico" )
@@ -33,7 +33,7 @@ xpack("xmake")
33
33
import (" utils.archive" )
34
34
import (" core.base.global" )
35
35
local format = package :format ()
36
- if package :is_plat (" windows" ) and (format == " nsis" or format == " zip" ) then
36
+ if package :is_plat (" windows" ) and (format == " nsis" or format == " wix " or format == " zip" ) then
37
37
local winenv = path .join (os .programdir (), " winenv" )
38
38
if os .isdir (winenv ) then
39
39
package :add (" installfiles" , path .join (winenv , " **" ), {rootdir = path .directory (winenv )})
@@ -69,6 +69,11 @@ xpack_component("LongPath")
69
69
; Enable long path
70
70
WriteRegDWORD ${HKLM} "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1
71
71
${EndIf}]] )
72
+ batchcmds :rawcmd (" wix" , [[
73
+ <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Control\FileSystem">
74
+ <RegistryValue Type="integer" Name="LongPathsEnabled" Value="1" KeyPath="yes"/>
75
+ </RegistryKey>
76
+ ]] )
72
77
end )
73
78
74
79
xpack (" xmakesrc" )
0 commit comments