summaryrefslogtreecommitdiff
path: root/dist/win/installer
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-03-24 03:39:30 -0400
committerJohn Wiegley <johnw@newartisans.com>2011-03-25 03:20:21 -0400
commit7c33b61bd89b8e527e51aebb209eb616e120fdc5 (patch)
tree2484437e98c4e6353ae40cb8641aa9e45a31a361 /dist/win/installer
parent88799daee1369df4b8e91b9cf8b18617003d8c18 (diff)
downloadfork-ledger-7c33b61bd89b8e527e51aebb209eb616e120fdc5.tar.gz
fork-ledger-7c33b61bd89b8e527e51aebb209eb616e120fdc5.tar.bz2
fork-ledger-7c33b61bd89b8e527e51aebb209eb616e120fdc5.zip
Roel Vanhout's build files for Visual Studio 2008
Diffstat (limited to 'dist/win/installer')
-rw-r--r--dist/win/installer/Calculator.pngbin0 -> 1194 bytes
-rw-r--r--dist/win/installer/Calculator_16x16.icobin0 -> 1150 bytes
-rw-r--r--dist/win/installer/build.bat28
-rw-r--r--dist/win/installer/ledger.wxs63
4 files changed, 91 insertions, 0 deletions
diff --git a/dist/win/installer/Calculator.png b/dist/win/installer/Calculator.png
new file mode 100644
index 00000000..cf9c87c7
--- /dev/null
+++ b/dist/win/installer/Calculator.png
Binary files differ
diff --git a/dist/win/installer/Calculator_16x16.ico b/dist/win/installer/Calculator_16x16.ico
new file mode 100644
index 00000000..59a6ba8a
--- /dev/null
+++ b/dist/win/installer/Calculator_16x16.ico
Binary files differ
diff --git a/dist/win/installer/build.bat b/dist/win/installer/build.bat
new file mode 100644
index 00000000..1f3b69ff
--- /dev/null
+++ b/dist/win/installer/build.bat
@@ -0,0 +1,28 @@
+@echo off
+
+rem Call the script that will read and parse version.m4, and store the version
+rem number in the ledger_version_nr environment variable.
+call ..\vc9\extract_version_numbers.bat
+del config.h
+rem Ledgers uses x.y.z-date format, but MSI needs x.y.z.b numbering. Can be
+rem solved with simple string replace.
+set ledger_version_nr=%ledger_version_nr:-=.%
+
+rmdir /S /Q content
+mkdir content
+rem Now, gather all the files we need in a directory
+copy ..\vc9\Release\ledger.exe content
+copy ..\..\..\doc\ledger.pdf content
+copy ..\..\..\doc\LICENSE.rtf content
+copy Calculator_16x16.ico content
+copy ledger.wxs content
+
+cd content
+rem Finally, call the WiX compiler & linker
+"%WIX%\bin\candle.exe" ledger.wxs
+"%WIX%\bin\light.exe" -ext WixUIExtension ledger.wixobj
+
+rem Hopefully everything went well, copy the result back
+copy ledger.msi ..\ledger-%ledger_version_nr%.msi
+
+cd ..
diff --git a/dist/win/installer/ledger.wxs b/dist/win/installer/ledger.wxs
new file mode 100644
index 00000000..711c9477
--- /dev/null
+++ b/dist/win/installer/ledger.wxs
@@ -0,0 +1,63 @@
+<?xml version='1.0' encoding='windows-1252'?>
+<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
+ <Product Name='Ledger' Id='7976E26F-7353-4838-A524-2465619E8AE0' UpgradeCode='F9E282EC-EC89-482c-9214-8F03661414A2'
+ Language='1033' Codepage='1252' Version='$(env.ledger_version_nr)' Manufacturer='John Wiegley'>
+ <Package Id='*' Keywords='Installer' Description="Ledger $(env.ledger_version_nr) Installer"
+ Comments='Double-entry accounting system with a command-line reporting interface.' Manufacturer='John Wiegley'
+ InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
+
+ <Media Id='1' Cabinet='ledger.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' />
+ <Property Id='DiskPrompt' Value="Ledger $(env.ledger_version_nr) Installation [1]" />
+ <Directory Id='TARGETDIR' Name='SourceDir'>
+ <Directory Id='ProgramFilesFolder' Name='PFiles'>
+ <Directory Id='INSTALLDIR' Name='Ledger 3'>
+ <Component Id='MainExecutable' Guid='53D87CDD-FD2F-414f-BB84-807F5E31BC4B'>
+ <File Id='LedgerEXE' Name='ledger.exe' DiskId='1' Source='ledger.exe' KeyPath='yes'>
+ <!--Shortcut Id="startmenuFoobar10" Directory="ProgramMenuDir" Name="Foobar 1.0"
+ WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe" IconIndex="0" Advertise="yes" /-->
+ <!--Shortcut Id="desktopFoobar10" Directory="DesktopFolder" Name="Foobar 1.0"
+ WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe" IconIndex="0" Advertise="yes" /-->
+ </File>
+ </Component>
+ <!--Component Id='HelperLibrary' Guid='YOURGUID-6BE3-460D-A14F-75658D16550B'>
+ <File Id='HelperDLL' Name='Helper.dll' DiskId='1' Source='Helper.dll' KeyPath='yes' />
+ </Component-->
+ <Component Id='Manual' Guid='86878FFD-860A-44d1-9FEB-B1CB2B551E38'>
+ <File Id='Manual' Name='ledger.pdf' DiskId='1' Source='ledger.pdf' KeyPath='yes'>
+ <Shortcut Id='startmenuManual' Directory='ProgramMenuDir' Name='Ledger manual' Advertise='yes' />
+ </File>
+ </Component>
+ </Directory>
+ </Directory>
+
+ <Directory Id="ProgramMenuFolder" Name="Programs">
+ <Directory Id="ProgramMenuDir" Name="Ledger 3">
+ <Component Id="ProgramMenuDir" Guid="E9BBD4AA-A0CB-41db-9870-795728956198">
+ <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
+ <RegistryValue Root='HKCU' Key='Software\Ledger' Type='string' Value='' KeyPath='yes' />
+ </Component>
+ </Directory>
+ </Directory>
+ </Directory>
+ <Feature Id='Complete' Level='1' Title='Ledger $(env.ledger_version_nr)' Description='The complete package.' Display='expand' ConfigurableDirectory='INSTALLDIR'>
+ <ComponentRef Id='MainExecutable' />
+ <ComponentRef Id='Manual' />
+ <ComponentRef Id='ProgramMenuDir' />
+ </Feature>
+ <!-- http://techupcoming.com/userinterfaceiconscom-download-high-quality-icons-for-free/ -->
+ <Icon Id="Ledger.exe" SourceFile="Calculator_16x16.ico" />
+ <Property Id="ARPPRODUCTICON" Value="Ledger.exe" />
+ <Property Id="ALLUSERS" Value="1"/>
+
+ <UIRef Id='WixUI_Minimal' />
+ <UIRef Id='WixUI_ErrorProgressText' />
+
+ <WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
+ <!--WixVariable Id="WixUIBannerBmp" Value="path\banner.bmp" />
+ <WixVariable Id="WixUIDialogBmp" Value="path\dialog.bmp" />
+ <WixVariable Id="WixUIExclamationIco" Value="path\exclamation.ico" />
+ <WixVariable Id="WixUIInfoIco" Value="path\information.ico" />
+ <WixVariable Id="WixUINewIco" Value="path\new.ico" />
+ <WixVariable Id="WixUIUpIco" Value="path\up.ico" /-->
+ </Product>
+</Wix>