-
Notifications
You must be signed in to change notification settings - Fork 1
/
WixPatch.xml
42 lines (41 loc) · 1.5 KB
/
WixPatch.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<CPackWiXPatch>
<!-- Fragment ID is from [build/_CPack_Packages/win64/WIX/features.wxs] -->
<CPackWiXFragment Id="CM_CP_bin.luajit.exe">
<Environment
Id='UpdatePath'
Name='PATH'
Action='set'
Permanent='no'
Part='last'
Value='[INSTALL_ROOT]bin;[AppDataFolder]luarocks\bin'
/>
<Environment
Id='CreateLuaPath'
Name='LUA_PATH'
Action='create'
Permanent='no'
Value='[INSTALL_ROOT]bin\lua\?.lua;[INSTALL_ROOT]bin\lua\?\init.lua;[INSTALL_ROOT]bin\?.lua;[INSTALL_ROOT]bin\?\init.lua;[INSTALL_ROOT]bin\..\share\lua\5.1\?.lua;[INSTALL_ROOT]bin\..\share\lua\5.1\?\init.lua;.\?.lua;.\?\init.lua;[AppDataFolder]luarocks\share\lua\5.1\?.lua;[AppDataFolder]luarocks\share\lua\5.1\?\init.lua'
/>
<Environment
Id='CreateLuaCPath'
Name='LUA_CPATH'
Action='create'
Permanent='no'
Value='[INSTALL_ROOT]bin\?.dll;[INSTALL_ROOT]bin\..\lib\lua\5.1\?.dll;[INSTALL_ROOT]bin\loadall.dll;.\?.dll;[AppDataFolder]luarocks\lib\lua\5.1\?.dll'
/>
<Environment
Id='UpdateConfig'
Name='LUAROCKS_CONFIG'
Action='set'
Permanent='no'
Part='last'
Value='[INSTALL_ROOT]etc\luarocks\config.lua'
/>
</CPackWiXFragment>
<!-- Allow installation by non-administrative users -->
<!-- https://learn.microsoft.com/windows/win32/msi/allusers -->
<CPackWiXFragment Id="#PRODUCT">
<Property Id="ALLUSERS" Value="2" />
<Property Id="MSIINSTALLPERUSER" Value="1" />
</CPackWiXFragment>
</CPackWiXPatch>