summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-06-11 16:31:10 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-06-11 17:40:30 +0200
commit74ab63fd236713a8d5bc87d3e83c0bbd9012d4b7 (patch)
tree3752142d5863f63ae655d5f21a813b525dc8e56f /packages
parent681e21b633a607b60423054d584abfdf5de8e9ed (diff)
wix: add support for installing VS templates
Diffstat (limited to 'packages')
-rw-r--r--packages/gstreamer-sdk/gstreamer-sdk.package6
-rw-r--r--packages/gstreamer-sdk/installer.wxs47
-rw-r--r--packages/gstreamer-vs-templates.package20
3 files changed, 24 insertions, 49 deletions
diff --git a/packages/gstreamer-sdk/gstreamer-sdk.package b/packages/gstreamer-sdk/gstreamer-sdk.package
index b3ca9f3..7da0171 100644
--- a/packages/gstreamer-sdk/gstreamer-sdk.package
+++ b/packages/gstreamer-sdk/gstreamer-sdk.package
@@ -16,7 +16,6 @@ class SDKPackage(package.SDKPackage):
vendor = "GStreamer Project"
org = "com.gstreamer"
ignore_package_prefix = True
- resources_wix_installer = 'installer.wxs'
packages =[
# (name, required, selected)
('gstreamer-core', True, True),
@@ -42,7 +41,10 @@ class SDKPackage(package.SDKPackage):
('gstreamer-tutorials', False, True),
]
platform_packages = {
- Platform.WINDOWS: [('vsintegration', True, False)],
+ Platform.WINDOWS: [
+ ('vsintegration', True, False),
+ ('gstreamer-vs-templates', True, False),
+ ],
}
install_dir = {
diff --git a/packages/gstreamer-sdk/installer.wxs b/packages/gstreamer-sdk/installer.wxs
deleted file mode 100644
index c4489c6..0000000
--- a/packages/gstreamer-sdk/installer.wxs
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" ?>
-<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
- <?include $(sys.CURRENTDIR)\Config.wxi?>
- <Product Id="$(var.ProductID)" Language="$(var.Language)" Manufacturer="$(var.Manufacturer)"
- Name="$(var.ProductName)" UpgradeCode="$(var.UpgradeCode)"
- Version="$(var.Version)">
-
- <Package Comments="$(var.PackageComments)" Compressed="yes"
- Description="$(var.Description)" InstallPrivileges="elevated"
- Manufacturer="$(var.Manufacturer)"/>
-
- <Media Cabinet="product.cab" EmbedCab="yes" Id="1"/>
-
- <!-- Upgrades -->
- <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit"/>
-
- <!-- Add/Remove Programs -->
- <Property Id="ARPPRODUCTICON" Value="MainIcon" />
- <Property Id="ARPCONTACT" Value="$(var.Manufacturer)" />
- <Property Id="ARPURLINFOABOUT" Value="$(var.WebSiteName)" />
- <Property Id="ALLUSERS">1</Property>
-
- <!-- UI -->
- <CustomAction Execute="firstSequence" Id="SetWixUIInstallDir" Property="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
- <InstallUISequence>
- <Custom Action="SetWixUIInstallDir" Before="CostInitialize"/>
- </InstallUISequence>
- <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
-
- <!-- Delete [INSTALLDIR]/2012.5 -->
- <CustomAction Id="del_cmdline" Property="del_exec" Value='"[SystemFolder]cmd.exe" /c rmdir /Q /S "[INSTALLDIR]\2012.5"' />
- <CustomAction Id="del_exec" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Impersonate="no" Return="ignore" />
- <!-- Create link from [INSTALLDIR]/2012.5 to [INSTALLDIR]/0.10 -->
- <CustomAction Id="link_cmdline" Property="link_exec" Value='"[SDKROOTDIR]bin\Elevate.exe" cmd.exe /c mklink /D "[INSTALLDIR]2012.5" "[INSTALLDIR]0.10"' />
- <CustomAction Id="link_exec" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Impersonate="yes" Return="ignore" />
-
- <InstallExecuteSequence>
- <Custom Action="del_cmdline" After="CostInitialize"/>
- <Custom Action="link_cmdline" After="del_cmdline"/>
- <Custom Action="del_exec" Before="InstallFinalize"/>
- <Custom Action="link_exec" After="del_exec"/>
- </InstallExecuteSequence>
-
-
- <UIRef Id="WixUI_Mondo"/>
- </Product>
-</Wix>
diff --git a/packages/gstreamer-vs-templates.package b/packages/gstreamer-vs-templates.package
new file mode 100644
index 0000000..71e6910
--- /dev/null
+++ b/packages/gstreamer-vs-templates.package
@@ -0,0 +1,20 @@
+# vi:si:et:sw=4:sts=4:ts=4:syntax=python
+# -*- Mode: Python -*-
+from cerbero.packages.wix import VSTemplatePackage
+
+
+class Package(VSTemplatePackage):
+
+ name = 'gstreamer-vs-templates'
+ shortdesc = 'GStreamer VS templates'
+ longdesc = 'GStreamer Visual Studio templates'
+ url = "http://www.gstreamer.com"
+ version = '2013.6'
+ codename = 'Congo'
+ license = License.LGPL
+ vendor = 'GStreamer Project'
+ org = 'com.gstreamer'
+ uuid = '32fe67c2-4565-411f-6531-e8faa892f853'
+ vs_template_dir = 'share/vs/2010/gst-sdk-template'
+ vs_wizard_dir = 'share/vs/2010/wizard'
+ vs_template_name = 'GStreamer'