Difference between revisions of "AutoHotkey"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(added hint)
(new for unicode version)
 
Line 1: Line 1:
 
This is a silent installer for [http://www.autohotkey.com AutoHotkey], an automation, hotkey and scripting tool.
 
This is a silent installer for [http://www.autohotkey.com AutoHotkey], an automation, hotkey and scripting tool.
  
 +
Installer Options refer to this site: [http://l.autohotkey.net/docs/Scripts.htm#install Installer Options]
 +
 +
==For New Unicode Version==
 +
<source lang="xml">
 +
<package
 +
id="autohotkey"
 +
name="AutoHotkey"
 +
revision="%PKG_VERSION%"
 +
reboot="false"
 +
priority="1">
 +
 +
<variable name="PKG_VERSION"        value="1.1.11.02" />
 +
 +
<variable name="PKG_EXE"            value="AutoHotkey_L_Install_%PKG_VERSION%.exe" />
 +
<variable name="PKG_SOURCE"        value="%SOFTWARE%\AutoHotkey" />
 +
<variable name="PKG_DESTINATION"    value="%ProgramFiles%\AutoHotkey\" architecture="x86" />
 +
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\AutoHotkey\" architecture="x64" />
 +
       
 +
<variable name="PKG_INSTALL_SWITCH" value="/S" />
 +
<variable name="PKG_REMOVE_SWITCH"  value="/Uninstall" />
 +
 +
<check type="uninstall" condition="versionequalto" path="AutoHotkey %PKG_VERSION%" value="%PKG_VERSION%" />
 +
 +
<commands>
 +
<command type="install" cmd='"%PKG_SOURCE%\%PKG_EXE%" %PKG_INSTALL_SWITCH%' />
 +
 +
<command type="upgrade" include="install" />
 +
 +
<command type="remove" cmd='"%PKG_DESTINATION%\AutoHotkey.exe" "%PKG_DESTINATION%\Installer.ahk" %PKG_REMOVE_SWITCH%' />
 +
</commands>
 +
</package>
 +
</source>
 +
==For old Ansi Version==
 
<source lang="xml">
 
<source lang="xml">
 
<package
 
<package

Latest revision as of 19:36, 12 August 2013

This is a silent installer for AutoHotkey, an automation, hotkey and scripting tool.

Installer Options refer to this site: Installer Options

For New Unicode Version

<package
	id="autohotkey"
	name="AutoHotkey"
	revision="%PKG_VERSION%"
	reboot="false"
	priority="1">

	<variable name="PKG_VERSION"        value="1.1.11.02" />
		
	<variable name="PKG_EXE"            value="AutoHotkey_L_Install_%PKG_VERSION%.exe" />
	<variable name="PKG_SOURCE"         value="%SOFTWARE%\AutoHotkey" />
	<variable name="PKG_DESTINATION"    value="%ProgramFiles%\AutoHotkey\" architecture="x86" />
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\AutoHotkey\" architecture="x64" />
        
	<variable name="PKG_INSTALL_SWITCH" value="/S" />
	<variable name="PKG_REMOVE_SWITCH"  value="/Uninstall" />
		
	<check type="uninstall" condition="versionequalto" path="AutoHotkey %PKG_VERSION%" value="%PKG_VERSION%" />
		
	<commands>		
		<command type="install" cmd='"%PKG_SOURCE%\%PKG_EXE%" %PKG_INSTALL_SWITCH%' />
			
		<command type="upgrade" include="install" />
		
		<command type="remove" cmd='"%PKG_DESTINATION%\AutoHotkey.exe" "%PKG_DESTINATION%\Installer.ahk" %PKG_REMOVE_SWITCH%' />		
	</commands>
</package>

For old Ansi Version

<package
        id="autohotkey"
        name="AutoHotkey"
        revision="1"
        reboot="false"
        priority="1">
        <check type="uninstall" condition="exists" path="AutoHotkey 1.0.47.0" />
        <install cmd="%SOFTWARE%\AutoHotkey104705_Install.exe /S" />
        <remove cmd="%PROGRAMFILES%\AutoHotkey\uninst.exe /S" />
</package>

Hint: If there is a new version, the version number has to be adjusted.