diff --git a/trunk/build.xml b/trunk/build.xml index 8ea399d6a..30564ffbb 100644 --- a/trunk/build.xml +++ b/trunk/build.xml @@ -10,6 +10,7 @@ + @@ -20,6 +21,7 @@ + @@ -47,6 +49,7 @@ + diff --git a/trunk/build_common.xml b/trunk/build_common.xml index c91c42294..afaae1604 100644 --- a/trunk/build_common.xml +++ b/trunk/build_common.xml @@ -164,6 +164,45 @@ + + + + true + gui + ${JARFILENAME}.jar + ${DISTRIBUTIONDIR}/${EXE64FILENAME}.exe + + + + normal + http://java.com/download + + false + false + + ${EXEICON} + + + ${MINJAVAVERSION} + + preferJre + ${MAXHEAPSIZE64} + + + ${VERSIONNUMBER} + ${VERSION}${VERSIONSUFFIX} + ${PRODUCTNAME} + ${VENDOR} + ${VERSIONNUMBER} + ${VERSION}${VERSIONSUFFIX} + ${PRODUCTNAME} + + ${INTERNALNAME} + ${EXE64FILENAME}.exe + + + + @@ -174,7 +213,12 @@ - + + + + + + diff --git a/trunk/build_exe64.xml b/trunk/build_exe64.xml new file mode 100644 index 000000000..a92e12e87 --- /dev/null +++ b/trunk/build_exe64.xml @@ -0,0 +1,36 @@ + + + true + gui + ffdec.jar + C:\Projectek\ffdec\asdec\trunk/dist/ffdec64.exe + + + + normal + http://java.com/download + + false + false + + C:\Projectek\ffdec\asdec\trunk/graphics/icon_ffdec_round.ico + + + 1.7.0 + + preferJre + 8192 + + + 1.7.4.1 + 1.7.4u1_fec2956aac20+ + JPEXS Free Flash Decompiler + JPEXS + 1.7.4.1 + 1.7.4u1_fec2956aac20+ + JPEXS Free Flash Decompiler + + FFDec + ffdec64.exe + + diff --git a/trunk/installer.iss b/trunk/installer.iss index 423289449..0771c31cb 100644 --- a/trunk/installer.iss +++ b/trunk/installer.iss @@ -36,6 +36,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{ [Files] Source: "dist\ffdec.exe"; DestDir: "{app}"; Flags: ignoreversion +Source: "dist\ffdec64.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "dist\lib\*"; DestDir: "{app}\lib"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "dist\ffdec.bat"; DestDir: "{app}"; Flags: ignoreversion Source: "dist\ffdec.jar"; DestDir: "{app}"; Flags: ignoreversion diff --git a/trunk/src/com/jpexs/decompiler/flash/console/ContextMenuTools.java b/trunk/src/com/jpexs/decompiler/flash/console/ContextMenuTools.java index 00990c36d..0fb47387b 100644 --- a/trunk/src/com/jpexs/decompiler/flash/console/ContextMenuTools.java +++ b/trunk/src/com/jpexs/decompiler/flash/console/ContextMenuTools.java @@ -68,13 +68,26 @@ public class ContextMenuTools { return true; } + String exeName32 = "ffdec.exe"; + String exeName64 = "ffdec64.exe"; + + if (add) { + String exeName = Platform.is64Bit() ? exeName64 : exeName32; + return addToContextMenu(add, exeName); + } else { + // remove both 32 and 64 bit references + addToContextMenu(add, exeName32); + return addToContextMenu(add, exeName64); + } + } + + private static boolean addToContextMenu(boolean add, String exeName) { final String extensions[] = new String[]{"swf", "gfx"}; final WinReg.HKEY REG_CLASSES_HKEY = WinReg.HKEY_LOCAL_MACHINE; final String REG_CLASSES_PATH = "Software\\Classes\\"; String appDir = getAppDir(); - String exeName = "ffdec.exe"; String verb = "ffdec"; String verbName = "Open with FFDec"; boolean exists;