summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-09-27 17:29:22 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-09-27 17:29:22 -0500
commit3db9f0388a58b38f2d3857155e92184b0d1b2039 (patch)
tree506c6f4c0f5bd6c2a8482e3067465423b91531a0
parent377c9263f22b9f28010a8df6220aec2fb0a46f82 (diff)
downloadlua4win-dist-lua-3db9f0388a58b38f2d3857155e92184b0d1b2039.tar.gz
lua4win-dist-lua-3db9f0388a58b38f2d3857155e92184b0d1b2039.tar.bz2
lua4win-dist-lua-3db9f0388a58b38f2d3857155e92184b0d1b2039.zip
Try a different way to do ui
-rwxr-xr-xinit2
-rw-r--r--lua4win.wxs59
2 files changed, 30 insertions, 31 deletions
diff --git a/init b/init
index 66ea653..307947d 100755
--- a/init
+++ b/init
@@ -1,3 +1,5 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2 2
3cp lua4win-dist-lua/lua4win.wxs
4
3exit -1 5exit -1
diff --git a/lua4win.wxs b/lua4win.wxs
index c1411ca..16d47f1 100644
--- a/lua4win.wxs
+++ b/lua4win.wxs
@@ -1,39 +1,36 @@
1<?xml version='1.0' encoding='windows-1252'?> 1<?xml version='1.0' encoding='windows-1252'?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3 <Product Id="*" UpgradeCode="GUID-GOES-HERE" 3 <Product Id="*" UpgradeCode="GUID-GOES-HERE"
4 Name="LuaJit Installer" 4 Name="Lua4Win Installer"
5 Version="1.0.0.0" 5 Version="1.0.0.0"
6 Manufacturer="Your Company" 6 Manufacturer="Lua4Win devs"
7 Language="1033"> 7 Language="1033">
8 <Package Id="*" Description="LuaJit Installation Package" 8 <Package Id="*" Description="Lua4Win Installation Package" Keywords="Installer"
9 InstallerVersion="200" Compressed="yes" /> 9 InstallerVersion="100" Compressed="yes" />
10 10
11 <!-- Add UI dialog to select install folder --> 11 <Property ID="DiskPrompt" Value="Lua4Win lua+luarocks installation" />
12 <UI>
13 <DialogRef Id="WixUI_InstallDir"/>
14 </UI>
15 12
16 <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/> 13 <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
17 14
18 <Directory Id="TARGETDIR" Name="SourceDir"> 15 <Directory Id="TARGETDIR" Name="SourceDir">
19 <Directory Id="ProgramFilesFolder"> 16 <Directory Id="ProgramFilesFolder">
20 <!-- Use WIXUI_INSTALLDIR to get the selected install folder --> 17 <Directory Id="Lua4Win" Name="Lua4Win">
21 <Directory Id="WIXUI_INSTALLDIR" Name="LuaJit"> 18 <Directory Id="INSTALLDIR" Name="Lua4Win 1.0">
22 <Component Id="MainExecutable" Guid="GUID-GOES-HERE"> 19 <Component Id="MainExecutable" >
23 <File Id="luajit.exe" Source="path_to_your_file\luajit.exe" /> 20 <File Id="luajit.exe" Source="./luajit.exe" />
24 <Shortcut Id="LuaJitShortcut" Directory="ProgramMenuDir" Name="LuaJit" Target="[WIXUI_INSTALLDIR]luajit.exe" WorkingDirectory="WIXUI_INSTALLDIR"/> 21 <File Id="lua51.dll" Source="./lua51.dll" />
25 </Component> 22 <File Id="luarocks.exe" Source="./luarocks.exe" />
26 </Directory> 23 </Component>
27 </Directory> 24 </Directory>
28 </Directory> 25 </Directory>
26 </Directory>
27 </Directory>
29 28
30 <Feature Id="MainApplication" Title="LuaJit" Description="The main LuaJit application." Level="1"> 29 <Feature Id="MainApplication" Level="1" Display="expand" ConfigurableDirectory="INSTALLDIR" AllowAdvertise="yes" InstallDefault="local">
31 <ComponentRef Id="MainExecutable" /> 30 <ComponentRef Id="MainExecutable" />
31 </Feature>
32 32
33 <!-- Create the symbolic link using WIXUI_INSTALLDIR --> 33 <Property Id="WIXUI_INSTALLDIR" VALUE="INSTALLDIR" />
34 <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\lua.exe"> 34 <UIRef Id="WixUI_Minimal" />
35 <RegistryValue Name="" Type="string" Value="[NETFRAMEWORK20]\v2.0.50727\InstallUtil.exe /LogToConsole=false [WIXUI_INSTALLDIR]luajit.exe"/> 35 </Product>
36 </RegistryKey>
37 </Feature>
38 </Product>
39</Wix> 36</Wix>