make sure version is in the log. Fix a problem with progress square handling
diff --git a/installer/src/InstallApacheFlex.mxml b/installer/src/InstallApacheFlex.mxml
index 900bc40..f2158af 100644
--- a/installer/src/InstallApacheFlex.mxml
+++ b/installer/src/InstallApacheFlex.mxml
@@ -375,6 +375,7 @@
CursorManager.setBusyCursor();
updateWindow();
loadXML();
+ logVersion();
}
/**
@@ -902,7 +903,22 @@
doUpdate();
}
}
-
+
+ private function logVersion():void
+ {
+ if (!loggedVersion)
+ {
+ //Current version
+ var applicationDescriptor:XML = NativeApplication.nativeApplication.applicationDescriptor;
+ var xmlns:Namespace = new Namespace(applicationDescriptor.namespace());
+ var currentVersion:String = applicationDescriptor.xmlns::versionNumber.toString();
+
+ // Log the Installer version to help with any support issues that arise.
+ log("Version " + currentVersion + " (" + _os.os + ")", 0);
+ loggedVersion = true;
+ }
+ }
+
protected function shouldUpdate():Boolean {
var shouldUpdate:Boolean = false;
//Current version
@@ -910,12 +926,7 @@
var xmlns:Namespace = new Namespace(applicationDescriptor.namespace());
var currentVersion:String = applicationDescriptor.xmlns::versionNumber.toString();
- if (!loggedVersion)
- {
- // Log the Installer version to help with any support issues that arise.
- log("Version " + currentVersion + " (" + _os.os + ")", 0);
- loggedVersion = true;
- }
+ logVersion();
var availBuildNumbers:Array = _latestVersion.split(".");
var currentBuildNumbers:Array = currentVersion.split(".");
@@ -1464,8 +1475,8 @@
{
if (!Ant.currentAnt.project.status)
updateActivityStep(stepLabels[currentStep], StepItem.ERROR);
- else if (currentStep == stepLabels.length)
- updateActivityStep(stepLabels[currentStep], StepItem.COMPLETE);
+ else if (currentStep == stepLabels.length && currentStep > 0)
+ updateActivityStep(stepLabels[currentStep - 1], StepItem.COMPLETE);
if (Ant.currentAnt.project.status)
tracker.trackInstallerSuccess(APACHE_FLEX_BIN_DISTRO_VERSION_DISPLAY, APACHE_FLEX_BIN_DISTRO_VERSION, _os.os);
cleanup(!Ant.currentAnt.project.status);