Difference between revisions of "Far Manager"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Fix some architecture checks (x86/64))
m (Minor edit - style)
Line 11: Line 11:
  
 
<!--                     
 
<!--                     
 
 
###############################################################################
 
###############################################################################
 
 
# SCRIPT      = Far Manager                                                  #
 
# SCRIPT      = Far Manager                                                  #
 
 
# REVISION    = 07/02/2012                                                  #
 
# REVISION    = 07/02/2012                                                  #
 
 
# MAINTAINER  = Vince                                                        #
 
# MAINTAINER  = Vince                                                        #
 
 
# COMPATIBILITY= (X) x86 | (X) x64 | (.) both separately                      #
 
# COMPATIBILITY= (X) x86 | (X) x64 | (.) both separately                      #
 
 
# UNINSTALL    = Via WMIC                                                    #
 
# UNINSTALL    = Via WMIC                                                    #
 
 
# COMMENT      = Just modify variables                                        #
 
# COMMENT      = Just modify variables                                        #
 
 
###############################################################################
 
###############################################################################
 
 
-->
 
-->
 
 
  
 
<packages>
 
<packages>
 
 
 
 
   <package  
 
   <package  
 
 
id="Far"
 
id="Far"
 
 
         name="Far Manager 2"
 
         name="Far Manager 2"
 
 
         revision="%version%"
 
         revision="%version%"
 
 
         reboot="false"
 
         reboot="false"
 
 
         priority="10">
 
         priority="10">
 
 
  
 
<variable name="version" value="Far20b1807" />
 
<variable name="version" value="Far20b1807" />
 
 
<variable name="datever" value="20110203" />
 
<variable name="datever" value="20110203" />
 
 
 
 
  
 
         <check type="uninstall" condition="exists" path="Far Manager 2" architecture="x86" />
 
         <check type="uninstall" condition="exists" path="Far Manager 2" architecture="x86" />
 
 
         <check type="uninstall" condition="exists" path="Far Manager 2 x64" architecture="x64"  />  
 
         <check type="uninstall" condition="exists" path="Far Manager 2 x64" architecture="x64"  />  
 
 
  
 
         <install cmd='msiexec /q /i "%SOFTWARE%\Far2\%version%.x86.%datever%.msi"' architecture="x86" />
 
         <install cmd='msiexec /q /i "%SOFTWARE%\Far2\%version%.x86.%datever%.msi"' architecture="x86" />
 
 
         <install cmd='msiexec /q /i "%SOFTWARE%\Far2\%version%.x64.%datever%.msi"' architecture="x64" />
 
         <install cmd='msiexec /q /i "%SOFTWARE%\Far2\%version%.x64.%datever%.msi"' architecture="x64" />
 
 
  
 
         <!-- Copy registry settings, users can add it to registry with the script menu -->
 
         <!-- Copy registry settings, users can add it to registry with the script menu -->
 
 
 
<install cmd='%comspec% /c copy "%SOFTWARE%\Far2\FarSettings.Machine.reg"  "%ProgramFiles%\Far2"' />
 
<install cmd='%comspec% /c copy "%SOFTWARE%\Far2\FarSettings.Machine.reg"  "%ProgramFiles%\Far2"' />
 
 
<install cmd='%comspec% /c copy "%SOFTWARE%\Far2\FarSettings.User.reg"  "%ProgramFiles%\Far2"' />
 
<install cmd='%comspec% /c copy "%SOFTWARE%\Far2\FarSettings.User.reg"  "%ProgramFiles%\Far2"' />
 
 
  
 
<upgrade include="install" />
 
<upgrade include="install" />
 
 
  
 
         <remove cmd='%comspec% /c del "%ProgramFiles%\Far2\FarSettings.User.reg"' />
 
         <remove cmd='%comspec% /c del "%ProgramFiles%\Far2\FarSettings.User.reg"' />
 
 
         <remove cmd='%comspec% /c del "%ProgramFiles%\Far2\FarSettings.Machine.reg"' />
 
         <remove cmd='%comspec% /c del "%ProgramFiles%\Far2\FarSettings.Machine.reg"' />
 
 
<remove  cmd='wmic product where "name like &apos;Far Manager%%&apos;" call uninstall' />
 
<remove  cmd='wmic product where "name like &apos;Far Manager%%&apos;" call uninstall' />
 
 
 
 
  
 
   </package>
 
   </package>
 
 
 
 
</packages>
 
</packages>
 
 
</source>
 
</source>
  
 
[[Category: Silent Installers]]
 
[[Category: Silent Installers]]

Revision as of 09:39, 12 February 2012

Far Manager is a NortonCommander clone. Now open source!

This script install both 32 & 64Bit msi files. It'll uninstall the package with WMIC (check Technet for more information about it).
WMIC requires Windows XP Professional SP2 or higher.

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

 

<!--                     
###############################################################################
# SCRIPT       = Far Manager                                                  #
# REVISION     = 07/02/2012                                                   #
# MAINTAINER   = Vince                                                        #
# COMPATIBILITY= (X) x86 | (X) x64 | (.) both separately                      #
# UNINSTALL    = Via WMIC                                                     #
# COMMENT      = Just modify variables                                        #
###############################################################################
-->

<packages>
  <package 
	id="Far"
        name="Far Manager 2"
        revision="%version%"
        reboot="false"
        priority="10">

	<variable name="version" value="Far20b1807" />	
	<variable name="datever" value="20110203" />	

        <check type="uninstall" condition="exists" path="Far Manager 2" architecture="x86" />
        <check type="uninstall" condition="exists" path="Far Manager 2 x64" architecture="x64"  /> 

        <install cmd='msiexec /q /i "%SOFTWARE%\Far2\%version%.x86.%datever%.msi"' architecture="x86" />
        <install cmd='msiexec /q /i "%SOFTWARE%\Far2\%version%.x64.%datever%.msi"' architecture="x64" />

        <!-- Copy registry settings, users can add it to registry with the script menu -->
	<install cmd='%comspec% /c copy "%SOFTWARE%\Far2\FarSettings.Machine.reg"  "%ProgramFiles%\Far2"' />
	<install cmd='%comspec% /c copy "%SOFTWARE%\Far2\FarSettings.User.reg"  "%ProgramFiles%\Far2"' />

	<upgrade include="install" />

        <remove cmd='%comspec% /c del "%ProgramFiles%\Far2\FarSettings.User.reg"' />
        <remove cmd='%comspec% /c del "%ProgramFiles%\Far2\FarSettings.Machine.reg"' />
	<remove  cmd='wmic product where "name like &apos;Far Manager%%&apos;" call uninstall' />

  </package>
</packages>