diff --git a/xpinstall/packager/unix/talkback.jst b/xpinstall/packager/unix/talkback.jst index 941a8c8a91ce..4ca1fd1d45f1 100644 --- a/xpinstall/packager/unix/talkback.jst +++ b/xpinstall/packager/unix/talkback.jst @@ -1,13 +1,33 @@ -var err = initInstall("Quality Feedback Agent", "Quality Feedback Agent", "$Version$"); +var srDest = $SpaceRequired$; + +var err = initInstall("Quality Feedback Utility", "Quality Feedback Utility", "$Version$"); logComment("initInstall: " + err); -if (err==SUCCESS) +var communicatorFolder = getFolder("Program"); +logComment("communicatorFolder: " + communicatorFolder); + +if (verifyDiskSpace(communicatorFolder, srDest)) { - err = performInstall(); - logComment("performInstall() returned: " + err); + err = addDirectory("Program", + "$Version$", + "bin", // jar source folder + communicatorFolder, // target folder + "", // target subdir + true ); // force flag + + logComment("addDirectory() returned: " + err); + + if (err==SUCCESS) + { + err = performInstall(); + logComment("performInstall() returned: " + err); + } + else + { + cancelInstall(err); + logComment("cancelInstall() returned: " + err); + } } else -{ - cancelInstall(err); - logComment("cancelInstall() returned: " + err); -} + cancelInstall(INSUFFICIENT_DISK_SPACE); +