INST : make shourtcut. 37/11737/1
authorShihyun.kim <shihyun.kim@samsung.com>
Sun, 3 Nov 2013 12:33:02 +0000 (21:33 +0900)
committerShihyun.kim <shihyun.kim@samsung.com>
Sun, 3 Nov 2013 12:33:02 +0000 (21:33 +0900)
Change-Id: I9fb63df330de44478ed98349d2ccefdc95fc30f3
Signed-off-by: Shihyun.kim <shihyun.kim@samsung.com>
InstallManager_java/src/org/tizen/installmanager/core/InstallManager.java

index 5495834..c82b7a2 100644 (file)
@@ -572,6 +572,9 @@ public class InstallManager {
                                        getTotalDownloadSize(installablePackages),\r
                                        getTotalInstallSize(installablePackages));\r
                }\r
+               \r
+               initializeTargetDir(targetDir);\r
+               makeShortcutMenu();\r
 \r
                // make start menu\r
                // if you cannot get installmanager from repository, install from local.\r
@@ -579,9 +582,7 @@ public class InstallManager {
                                .existsPackage(InstallManagerConstants.INSTALLMANAGER_PACKAGE_NAME)) {\r
                        Log.log("Cannot find install-manager from repository.");\r
 \r
-                       if (installInstallManagerFromLocal(targetDir)) {\r
-                               makeShortcutMenu();\r
-                       } else {\r
+                       if (!installInstallManagerFromLocal(targetDir)) {\r
                                Log.err("Cannot install install-manager from local directory.");\r
                        }\r
                }\r