From 1ce39faa983e02bf9001696276f93ba1035ef5f7 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 1 Jul 2008 12:19:13 -0700 Subject: [PATCH] installer is functional, but too primitive --- Makefile | 21 +++++++++++++++++++++ installer.wxs | 45 +++++++++++++++++++++++++++++++++++++++++++++ main.fs | 17 +++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 Makefile create mode 100644 installer.wxs create mode 100644 main.fs diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4dca1f2 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# See tutorial on nmake - +# http://courses.cs.vt.edu/~cs1704/fall03/Notes/A10.NMAKE.pdf + +# You may want to modify this variable to reflect your Wix path +WIXDIR = "C:\Program Files\Windows Installer XML v3\bin" + +llama.exe : main.fs + fsc main.fs -o llama.exe + +llama-install.exe: installer.wixobj + $(WIXDIR)\light.exe installer.wixobj + +installer.wixobj: installer.wxs llama.exe + $(WIXDIR)\candle.exe installer.wxs + + +# Targets you can use when invoking nmake +llama: llama.exe +installer: llama-install.exe +clean: + del *.exe *obj *.msi diff --git a/installer.wxs b/installer.wxs new file mode 100644 index 0000000..8f40da0 --- /dev/null +++ b/installer.wxs @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/main.fs b/main.fs new file mode 100644 index 0000000..f7c2bd7 --- /dev/null +++ b/main.fs @@ -0,0 +1,17 @@ +#light + +open System +open System.Windows.Forms + +let form = new Form() +do form.Width <- 400 +do form.Height <- 300 +do form.Text <- "Llama" + +(* text box *) +let textB = new RichTextBox() +do textB.Dock <- DockStyle.Fill +do textB.Text <- "This is a sample F# application to demonstrate command line development to deployment" +do form.Controls.Add(textB) + +do Application.Run(form) -- 2.11.4.GIT