Orangevolt ANT Tasks » Tasks » Win32 related tasks » win32.registry » Element set
Element setwin32.shortcut

2.12.2.6.1.  example

build.xml
<?xml version="1.0"?>  
      
  <project basedir="." name="myapp" default="main">
    <taskdef classpath="orangevolt-ant-tasks-1.3.2.jar" resource="com/orangevolt/tools/ant/taskdefs.properties"/>
      
    <target name="main">
          
      <win32.registry root="HKEY_LOCAL_MACHINE" key="SOFTWARE">  
          <!--
            entry will be created in HKEY_LOCAL_MACHINE\SOFTWARE\Orangevolt
          -->
        <set subKey="Orangevolt" entry="test1" value="huuhu"/>
    
          <!--
            entry will be created in HKEY_LOCAL_MACHINE\SOFTWARE
          -->
        <set entry="test2">
          i'm here again
        </set>
      </win32.registry>
    </target>
  </project>