Difference between revisions of "ODF Add-in for Microsoft Office"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(typos)
(typos)
Line 40: Line 40:
 
     <variable name="PKG_VERSION" value="4.0.5309.0" />
 
     <variable name="PKG_VERSION" value="4.0.5309.0" />
  
     <check type="uninstall" condition="versionequalto" path="Add-in ODF pour Microsoft Office" value="%PKG_VERSION%" />
+
     <check type="logical" condition="or">
 
+
      <check type="uninstall" condition="versiongreaterorequal" path="Add-in ODF pour Microsoft Office" value="%PKG_VERSION%" />
    <!-- prerequists checks -->
+
      <!-- prerequists checks -->
    <check type="logical" condition="not">
+
      <check type="logical" condition="not">
      <!-- 2007 Compatability Pack is required in ou case-->
+
        <!-- 2007 Compatability Pack is required in ou case-->
      <check type="uninstall" condition="exists" path="Module de compatibilité pour Microsoft Office System 2007" />
+
        <check type="uninstall" condition="exists" path="Module de compatibilité pour Microsoft Office System 2007" />
    </check>
+
      </check>
    <check type="logical" condition="not">
+
      <check type="logical" condition="not">
      <!-- .NET Framework 2.0 SP1 or above is required -->
+
        <!-- .NET Framework 2.0 SP1 or above is required -->
      <!-- This check work on Windows XP i have not tested it on Vista and 7 machines -->
+
        <!-- This check work on Windows XP i have not tested it on Vista and 7 machines -->
      <check type="uninstall" condition="exists" path="Microsoft .NET Framework 2.0 Service Pack .+" />
+
        <check type="uninstall" condition="exists" path="Microsoft .NET Framework 2.0 Service Pack .+" />
    </check>
+
      </check>
    <check type="logical" condition="not">
+
      <check type="logical" condition="not">
      <!-- install only if Microsoft Office 2003 is installed -->
+
        <!-- install only if Microsoft Office 2003 is installed -->
      <check type="uninstall" condition="exists" path="Microsoft Office Professional Edition 2003" />
+
        <check type="uninstall" condition="exists" path="Microsoft Office Professional Edition 2003" />
 +
      </check>
 
     </check>
 
     </check>
  

Revision as of 15:54, 10 March 2011

The ODF Add-in for Microsoft Office is an alternative to Sun ODF Plugin for Microsoft Office financed by Microsoft.

It add and import/export in ODF format fonctionality for Office 2000, XP, 2003 and 2007 .

For more infos see : http://odf-converter.sourceforge.net/

The sourceforge page explain how to create a silent instaler here

You will need first to extract the MSI package from the EXE file for your language. Last distribution files are available at SourceForge

To extrac the MSI use a zip tool like 7-Zip or from command line with :

OdfConverter.exe /I Filename [/O PathOrFilename] [/V]


This script is for a french install with office 2003, you have to adapt it for your system language. You particulary need to change :

This script install the Add-In only if :

  • The 2007 Compatibility Pack is already installed
  • The .NET Framework 2.0 Service Pack SP1 or SP2 is present (tested on Windows XP only)
  • Microsoft Office 2003 is installed on the target computer

You may change this checks by packages dependencies. If you use, MS Office 2007 you do not need for the Compatibility Pack of course.


<?xml version="1.0" encoding="UTF-8"?>

<!-- ODF Add-In for Office (fr) - Doc converter - http://odf-converter.sourceforge.net/ -->


<packages>
  <package id="odfaddin" name="ODF Add-In for Office (fr)" revision="%PKG_VERSION%" reboot="false" priority="10">
    <variable name="PKG_VERSION" value="4.0.5309.0" />

    <check type="logical" condition="or">
      <check type="uninstall" condition="versiongreaterorequal" path="Add-in ODF pour Microsoft Office" value="%PKG_VERSION%" />
      <!-- prerequists checks -->
      <check type="logical" condition="not">
        <!-- 2007 Compatability Pack is required in ou case-->
        <check type="uninstall" condition="exists" path="Module de compatibilité pour Microsoft Office System 2007" />
      </check>
      <check type="logical" condition="not">
        <!-- .NET Framework 2.0 SP1 or above is required -->
        <!-- This check work on Windows XP i have not tested it on Vista and 7 machines -->
        <check type="uninstall" condition="exists" path="Microsoft .NET Framework 2.0 Service Pack .+" />
      </check>
      <check type="logical" condition="not">
        <!-- install only if Microsoft Office 2003 is installed -->
        <check type="uninstall" condition="exists" path="Microsoft Office Professional Edition 2003" />
      </check>
    </check>

    <install cmd='MsiExec.exe /I "%SOFTWARE%\odfconverter\OdfAddInForOffice_fr_%PKG_VERSION%.msi" /q ALLUSERS=1' />

    <upgrade cmd=' MsiExec.exe /I "%SOFTWARE%\odfconverter\OdfAddInForOffice_fr_%PKG_VERSION%.msi" /q ALLUSERS=1' />

    <remove cmd='MsiExec.exe /X{54178A9B-7B4B-4B24-B863-7B44EBF28318} /qn' />

  </package>
</packages>