#ifndef _INSTALLER_DEFS_H_
#define _INSTALLER_DEFS_H_
-#define OSP_INSTALLER_VERSION "osp-installer version = [2013/01/03]_[2]"
+#define OSP_INSTALLER_VERSION "osp-installer version = [2013/01/03]_[3]"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
#define DIR_RES L"/res"
#define DIR_DATA L"/data"
#define DIR_ICONS L"/icons"
-#define DIR_SHARED_RES L"/shared-res"
+#define DIR_SHARED L"/shared"
#define DIR_LIB L"/lib"
#define DIR_SETTING L"/setting"
#define DIR_CONTENTS L"/contents"
+#define DIR_SHARED_RES L"/shared/res"
#define SLP_DIR_BIN L"/bin"
#define SLP_DIR_RES L"/res"
destPath = destRootPath + DIR_LIB;
InstallerUtil::CreateSymlink(srcPath, destPath);
- srcPath = path + DIR_SHARED_RES;
- destPath = destRootPath + DIR_SHARED_RES;
+ srcPath = path + DIR_SHARED;
+ destPath = destRootPath + DIR_SHARED;
+ InstallerUtil::CopyDirectory(srcPath, destPath);
+
+ srcPath += DIR_RES;
+ destPath += DIR_RES;
if (File::IsFileExist(srcPath) == false)
{
srcPath = path + DIR_ICONS;
destPath = appRootPath + DIR_LIB;
InstallerUtil::ChangeDirectoryPermission(destPath, PERM_BASE | PERM_EXECUTE);
- // appRoot/icons
+ // appRoot/shared
+ destPath = appRootPath + DIR_SHARED;
+ if (File::IsFileExist(destPath) == false)
+ {
+ r = Directory::Create(destPath, false);
+ TryReturn(!IsFailed(r), INSTALLER_ERROR_INTERNAL_STATE, "[osp-installer] Directory::Create() failed");
+ }
+ InstallerUtil::ChangeDirectoryPermission(destPath, PERM_BASE);
+
destPath = appRootPath + DIR_SHARED_RES;
if (File::IsFileExist(destPath) == false)
{