From c9966434e3a45fb8048899f26ce12db7a824f499 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Sun, 14 Jul 2013 20:51:17 +0900 Subject: [PATCH] The first cut of psqlodbc setup project. It builds a setup program which can't be done by a single MSI. It would install VC++ redistributable, 32 bit psqlodbc driver and 64 bit psqlodbc driver (on 64 bit windows). --- .gitignore | 1 + installer/psqlodbc-setup/Bundle.wxs | 14 ++++++ installer/psqlodbc-setup/Make.bat | 32 +++++++++++++ .../psqlodbc-setup/psqlodbc-setup.wixproj | 46 +++++++++++++++++++ installer/psqlodbc-setup/vcredist.wxs | 38 +++++++++++++++ 5 files changed, 131 insertions(+) create mode 100755 installer/psqlodbc-setup/Bundle.wxs create mode 100755 installer/psqlodbc-setup/Make.bat create mode 100755 installer/psqlodbc-setup/psqlodbc-setup.wixproj create mode 100755 installer/psqlodbc-setup/vcredist.wxs diff --git a/.gitignore b/.gitignore index 621fab8..05422ec 100644 --- a/.gitignore +++ b/.gitignore @@ -49,5 +49,6 @@ lib*.pc # WIX tools (candle, light) generate *.wix* +!*.wixproj *.msm *.msi diff --git a/installer/psqlodbc-setup/Bundle.wxs b/installer/psqlodbc-setup/Bundle.wxs new file mode 100755 index 0000000..1b63cdd --- /dev/null +++ b/installer/psqlodbc-setup/Bundle.wxs @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/installer/psqlodbc-setup/Make.bat b/installer/psqlodbc-setup/Make.bat new file mode 100755 index 0000000..616698b --- /dev/null +++ b/installer/psqlodbc-setup/Make.bat @@ -0,0 +1,32 @@ +setlocal +set wix_dir=%WIX%bin +set pgmname=psqlodbc +set build_config=Release +set objdir=obj\%build_config% +set bindir=bin\%build_config% + +"%wix_dir%\candle.exe" -v ^ +-dConfiguration=%build_config% ^ +-dOutDir=%bindir%\ -dPlatform=x86 ^ +-d"ProjectDir=\\" -dProjectExt=.wixproj ^ +-dProjectFileName=%pgmname%.wixproj -dProjectName=%pgmname% ^ +-d"ProjectPath=%pgmname%.wixproj" ^ +-d"TargetDir=%bindir%\\" -dTargetExt=.exe ^ +-dTargetFileName=%pgmname%.exe -dTargetName=%pgmname% ^ +-d"TargetPath=%bindir%\%pgmname%.exe" ^ +-out %objdir%\ -arch x86 ^ +-ext "%wix_dir%\WixUtilExtension.dll" ^ +-ext "%wix_dir%\WixBalExtension.dll" ^ +Bundle.wxs vcredist.wxs + +"%wix_dir%\Light.exe" -out %bindir%\%pgmname%.exe ^ +-pdbout %bindir%\%pgmname%.wixpdb ^ +-ext "%wix_dir%\\WixUtilExtension.dll" ^ +-ext "%wix_dir%\\WixBalExtension.dll" ^ +-contentsfile %objdir%\%pgmname%.wixproj.BindContentsFileList.txt ^ +-outputsfile %objdir%\%pgmname%.wixproj.BindOutputsFileList.txt ^ +-builtoutputsfile %objdir%\%pgmname%.wixproj.BindBuiltOutputsFileList.txt ^ +-wixprojectfile %pgmname%.wixproj ^ +%objdir%\Bundle.wixobj %objdir%\vcredist.wixobj + +endlocal diff --git a/installer/psqlodbc-setup/psqlodbc-setup.wixproj b/installer/psqlodbc-setup/psqlodbc-setup.wixproj new file mode 100755 index 0000000..38d2899 --- /dev/null +++ b/installer/psqlodbc-setup/psqlodbc-setup.wixproj @@ -0,0 +1,46 @@ + + + + Debug + x86 + 3.6 + {748caa18-f40d-4308-bc52-2605d09c38b1} + 2.0 + psqlodbc-setup + Bundle + $(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets + $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets + + + bin\$(Configuration)\ + obj\$(Configuration)\ + Debug + + + bin\$(Configuration)\ + obj\$(Configuration)\ + + + + + + + + $(WixExtDir)\WixUtilExtension.dll + WixUtilExtension + + + $(WixExtDir)\WixBalExtension.dll + WixBalExtension + + + + + diff --git a/installer/psqlodbc-setup/vcredist.wxs b/installer/psqlodbc-setup/vcredist.wxs new file mode 100755 index 0000000..7342729 --- /dev/null +++ b/installer/psqlodbc-setup/vcredist.wxs @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + -- 2.39.5