[tasque/windows] [wix] Adjust DataDir in .Defines.config on installation
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/windows] [wix] Adjust DataDir in .Defines.config on installation
- Date: Sat, 27 Oct 2012 08:42:47 +0000 (UTC)
commit 105d2bb3c09407a2721b83fd18fb9e61a4999978
Author: Antonius Riha <antoniusriha gmail com>
Date: Sat Oct 27 10:42:25 2012 +0200
[wix] Adjust DataDir in .Defines.config on installation
WindowsSetup/Product.wxs | 5 ++++-
WindowsSetup/WindowsSetup.wixproj | 6 ++++++
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/WindowsSetup/Product.wxs b/WindowsSetup/Product.wxs
index 183a00a..acad5cd 100644
--- a/WindowsSetup/Product.wxs
+++ b/WindowsSetup/Product.wxs
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Id="*" Name="Tasque" Language="1033" Version="0.1.12" Manufacturer="Tasque Project" UpgradeCode="d4720f75-fd29-4014-9fbe-bd5a6473c48f">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
@@ -29,6 +29,9 @@
<ComponentGroup Id="TasqueComponents" Directory="INSTALLFOLDER">
<Component Id="TasqueCore" Guid="9243C6FE-AE86-4F7B-B446-CB4D01993D6A">
<File Source="..\build\bin\lib\tasque\Tasque.exe" />
+ <File Id="Tasque.exe.Defines.config" Source="..\build\bin\lib\tasque\Tasque.exe.Defines.config" />
+ <util:XmlFile Id="DataDirSetting" Action="setValue" Permanent="yes" File="[#Tasque.exe.Defines.config]"
+ ElementPath="/configuration/appSettings/add[\[] key='DataDir'[\]]" Name="value" Value="[DATADIR]" />
<File Source="..\build\bin\lib\tasque\libtasque.dll" />
<File Source="..\build\bin\lib\tasque\Gtk.Tasque.dll" />
</Component>
diff --git a/WindowsSetup/WindowsSetup.wixproj b/WindowsSetup/WindowsSetup.wixproj
index c9e19a4..550ec08 100644
--- a/WindowsSetup/WindowsSetup.wixproj
+++ b/WindowsSetup/WindowsSetup.wixproj
@@ -26,6 +26,12 @@
<Compile Include="Product.wxs" />
<Compile Include="Resources.wxs" />
</ItemGroup>
+ <ItemGroup>
+ <WixExtension Include="WixUtilExtension">
+ <HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
+ <Name>WixUtilExtension</Name>
+ </WixExtension>
+ </ItemGroup>
<Import Project="$(WixTargetsPath)" />
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]