[MLton-commit] r7342

Wesley Terpstra wesley at mlton.org
Mon Nov 2 06:37:34 PST 2009


Make the msi a self-extracting installer. Half the size!


----------------------------------------------------------------------

A   mlton/trunk/package/mingw/7zS.sfx
A   mlton/trunk/package/mingw/MLton.conf
U   mlton/trunk/package/mingw/Makefile
U   mlton/trunk/package/mingw/mlton.wxs

----------------------------------------------------------------------

Added: mlton/trunk/package/mingw/7zS.sfx
===================================================================
(Binary files differ)


Property changes on: mlton/trunk/package/mingw/7zS.sfx
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: mlton/trunk/package/mingw/MLton.conf
===================================================================
--- mlton/trunk/package/mingw/MLton.conf	2009-11-02 00:55:09 UTC (rev 7341)
+++ mlton/trunk/package/mingw/MLton.conf	2009-11-02 14:37:31 UTC (rev 7342)
@@ -0,0 +1,6 @@
+;!@Install@!UTF-8!
+Title="MLton Installation"
+BeginPrompt="Do you want to install MLton?"
+ExecuteFile="msiexec.exe"
+ExecuteParameters="/i setup.msi /qb"
+;!@InstallEnd@!

Modified: mlton/trunk/package/mingw/Makefile
===================================================================
--- mlton/trunk/package/mingw/Makefile	2009-11-02 00:55:09 UTC (rev 7341)
+++ mlton/trunk/package/mingw/Makefile	2009-11-02 14:37:31 UTC (rev 7342)
@@ -5,6 +5,10 @@
 PKG_WXS=$(patsubst %,%.wxs,$(PKG))
 PKG_WIXOBJ=$(patsubst %,%.wixobj,$(PKG))
 
+MLton.exe:	MLton.msi
+	7z a data.7z -mx=9 $<
+	cat 7zS.sfx MLton.conf data.7z > $@
+
 MLton.msi:	mlton.wixobj dirs.wixobj files.wixobj $(PKG_WIXOBJ)
 	light -cultures:en-us -ext WixUIExtension -out $@ $^
 

Modified: mlton/trunk/package/mingw/mlton.wxs
===================================================================
--- mlton/trunk/package/mingw/mlton.wxs	2009-11-02 00:55:09 UTC (rev 7341)
+++ mlton/trunk/package/mingw/mlton.wxs	2009-11-02 14:37:31 UTC (rev 7342)
@@ -9,7 +9,7 @@
       Comments='MLton is an open-source, whole-program, optimizing Standard ML compiler.' Manufacturer='MLton.org'
       InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
 
-    <Media Id='1' Cabinet='MLton.cab' EmbedCab='yes' CompressionLevel="high" DiskPrompt="CD-ROM #1" />
+    <Media Id='1' Cabinet='MLton.cab' EmbedCab='yes' CompressionLevel="none" DiskPrompt="CD-ROM #1" />
     <Property Id='DiskPrompt' Value="MLton Installation CD [1]" />
     <Property Id="ARPPRODUCTICON" Value="mlton.ico" />
     <Icon Id="mlton.ico" SourceFile="mlton.ico" />




More information about the MLton-commit mailing list