diff options
| author | Adib Taraben <theadib@gmail.com> | 2012-11-21 23:25:35 +0000 |
|---|---|---|
| committer | theAdib <theadib@gmail.com> | 2012-11-21 23:25:35 +0000 |
| commit | 838c6fceda92d460b45d6a856a3c8c9a63ac8b0e (patch) | |
| tree | bfd7d5a0589119cf7c8cc9e573e3eaa51b930722 /packaging/wix | |
| parent | updated email for theadib (diff) | |
| download | inkscape-838c6fceda92d460b45d6a856a3c8c9a63ac8b0e.tar.gz inkscape-838c6fceda92d460b45d6a856a3c8c9a63ac8b0e.zip | |
wix installer: assign svg file extension to inkscape
(bzr r11891)
Diffstat (limited to 'packaging/wix')
| -rw-r--r-- | packaging/wix/README | 1 | ||||
| -rw-r--r-- | packaging/wix/files.py | 3 | ||||
| -rw-r--r-- | packaging/wix/inkscape.wxs | 24 |
3 files changed, 27 insertions, 1 deletions
diff --git a/packaging/wix/README b/packaging/wix/README index 1cb602057..2046797ca 100644 --- a/packaging/wix/README +++ b/packaging/wix/README @@ -18,7 +18,6 @@ when completed there should be inkscape.msi in your path things still todo - detailed explanation what to do for new revisions -- link .svg file names to inkscape - include some inkscapeish artwork - better filenames (nightly builds versus releases) - howto remove python .pyc files after deinstallation diff --git a/packaging/wix/files.py b/packaging/wix/files.py index a4cf180c3..93a7c8dd1 100644 --- a/packaging/wix/files.py +++ b/packaging/wix/files.py @@ -28,6 +28,9 @@ def directory(root, breadcrumb, level, exclude=[]): _id = '_%06d' % (len(file_ids.keys()) + 1) file_ids[file_key] = 'component' + _id wxs.write(indent(level)+ "<Component Id='component" + _id + "' Guid='" + str(uuid.uuid4()) + "' DiskId='1'>\n") + if file == 'inkscape.exe': + # we refenrence inkscape.exe in inkscape.wxs + _id = '_inkscape_exe' wxs.write(indent(level + 1)+ "<File Id='file" + _id + "' Name='" + file + "' DiskId='1' Source='" + file_key + "' KeyPath='yes' />\n") wxs.write(indent(level)+ "</Component>\n") # then all directories diff --git a/packaging/wix/inkscape.wxs b/packaging/wix/inkscape.wxs index 215f34001..e2bc26462 100644 --- a/packaging/wix/inkscape.wxs +++ b/packaging/wix/inkscape.wxs @@ -32,6 +32,21 @@ </Component>
</DirectoryRef>
+ <DirectoryRef Id="INSTALLDIR">
+ <Component Id="RegisterExtension" Guid="d544e040-573e-4ea8-983e-4bcae6b87f3d">
+ <ProgId Id="inkscape.svg" Description='scalable vector graphics file' Icon='file_inkscape_exe'>
+ <Extension Id='svg' ContentType='application/svg'>
+ <Verb Id='edit' Command='Edit with Inkscape' TargetFile='file_inkscape_exe' Argument='"%1"' />
+ </Extension>
+ <!-- currently this creates an error
+ <Extension Id='svgz' ContentType='application/svgz'>
+ <Verb Id='open' Command='Open with Inkscape' TargetFile='file_inkscape_exe' Argument='"%1"' />
+ </Extension>
+ -->
+ </ProgId>
+ </Component>
+ </DirectoryRef>
+
<Feature Id='Complete' Title='inkscape 0.48' Description='The complete Package' Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' Absent="disallow" AllowAdvertise='no'>
@@ -40,17 +55,26 @@ <ComponentRef Id='MainExecutable' />
</Feature>
-->
+ <!--
<Feature Id='MainProgram' Level='1' Title='inkscape Application' Description='the inkscape Application' Absent="disallow" AllowAdvertise='no'>
+ -->
<ComponentGroupRef Id='AllOther' />
+ <!--
</Feature>
+ -->
<!-- shortcuts -->
<Feature Id='ApplicationShortcut' Level='1' Title='Start Menu entry' Description='an entry in the start Menu' AllowAdvertise='no'>
<ComponentRef Id='ApplicationShortcut' />
</Feature>
+
<Feature Id='DesktopShortcut' Level='1' Title='Desktop link' Description='an link on the desktop' AllowAdvertise='no'>
<ComponentRef Id='DesktopShortcut' />
</Feature>
+
+ <Feature Id='RegisterExtension' Level='1' Title='register file extension' Description='register .svg and .svgz file extension to explorer context menu' AllowAdvertise='no'>
+ <ComponentRef Id='RegisterExtension' />
+ </Feature>
<Feature Id='Examples' Level='1' Title='Examples' Description='examples as svg' AllowAdvertise='no'>
<ComponentGroupRef Id='Examples' />
|
