Author: [EMAIL PROTECTED]
Date: Tue Oct 14 13:29:39 2008
New Revision: 2776

Added:
   trunk/installer/RegistrySpec.xml
Modified:
   trunk/build.xml

Log:
Fixes the Windows file association problem for Power*Architect. IzPack changed the way their variable substitution works, so that it doesn't quite work on Windows .reg files anymore. Instead, IzPack has a different way of modifying the registry in an installer using an XML file called 'RegistrySpec.xml'. I've made the necessary modifications, and the end result should be very similar to the previous method of using a .reg file.

Modified: trunk/build.xml
==============================================================================
--- trunk/build.xml     (original)
+++ trunk/build.xml     Tue Oct 14 13:29:39 2008
@@ -875,7 +875,15 @@
                                                <res id="Installer.image" 
src="../src/icons/architect.png"/>
                                                <res src="ArchitectShortcut.xml" 
id="shortcutSpec.xml"/>
                                                <res id="LicencePanel.licence" 
src="../LICENSE" />
+                                               <res src="RegistrySpec.xml" 
id="RegistrySpec.xml"/>
                                        </resources>
+                                       <listeners>
+                                               <listener 
installer="SummaryLoggerInstallerListener"/>
+                                       <listener 
installer="RegistryInstallerListener"
+                                                                 
uninstaller="RegistryUninstallerListener">
+                                         <os family="windows"/>
+                                      </listener>
+                                       </listeners>
                                        <panels>
                                                <panel classname="HelloPanel"/>
                                                <panel 
classname="LicencePanel"/>
@@ -908,13 +916,6 @@
                                                        <fileset dir="../src/icons" 
targetdir="$INSTALL_PATH">
                                                                <include 
name="*.ico"/>
                                                        </fileset>
- <parsable targetfile="${INSTALL_PATH}/architect_file_association.reg"/> - <executable targetfile="regedit.exe" stage="postinstall" keep="true">
-                                                          <args>
-                                                            <arg value="\/s"/>
-                                                            <arg 
value="$INSTALL_PATH/architect_file_association.reg"/>
-                                                     </args>
-                                                  </executable>
                                                        <executable targetfile="regedit.exe" 
stage="uninstall" keep="true">
                                                           <args>
                                                             <arg value="\/s"/>
@@ -924,6 +925,9 @@
                                                </pack>
                                        </packs>
                                        <native type="izpack" 
name="ShellLink.dll"/>
+                                       <native type="3rdparty" name="COIOSHelper.dll" 
stage="both">
+                                       <os family="windows"/>
+                                   </native>
                                </installation>
                                ]]>
                        </config>

Added: trunk/installer/RegistrySpec.xml
==============================================================================
--- (empty file)
+++ trunk/installer/RegistrySpec.xml    Tue Oct 14 13:29:39 2008
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<registry>
+    <pack name="Core">
+       <key root="HKCR"
+                       keypath=".architect"/>
+               <value       root="HKCR"
+                       name=""
+                               keypath=".architect"
+                       string="architect_auto_file"/>
+                       
+               <key         keypath="architect_auto_file"
+                       root="HKCR"/>
+        <value      name=""
+                               keypath="architect_auto_file"
+                               root="HKCR"
+                       string=""/>
+               <value       name="EditFlags"
+                               keypath="architect_auto_file"
+                               root="HKCR"
+                       string="dword:00000000"/>
+               <value       name="BrowserFlags"
+                               keypath="architect_auto_file"
+                               root="HKCR"
+                       string="dword:00000008"/>
+               
+               <key keypath="architect_auto_file\DefaultIcon"
+                               root="HKCR"/>
+               <value       name=""
+                               keypath="architect_auto_file\DefaultIcon"
+                               root="HKCR"
+                       string="$INSTALL_PATH\architect_icon_bundle.ico,0"/>
+
+       <key         keypath="architect_auto_file\shell\open\command"
+                       root="HKCR"/>
+        <value      name=""
+                               keypath="architect_auto_file\shell\open\command"
+                               root="HKCR"
+ string="javaw -Xmx600M -jar &quot;$INSTALL_PATH\architect.jar&quot; &quot;%1&quot; %*"/>
+    </pack>
+</registry>
+

Reply via email to