#include "InstallerUtil.h"
-#define OSP_INSTALLER_VERSION "version=[20130319.1]"
+#define OSP_INSTALLER_VERSION "version=[20130319.2]"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
,__isHybridService(false)
,__isVerificationMode(false)
,__isUpdated(false)
+,__isAppSetting(false)
,__operation(INSTALLER_OPERATION_INSTALL)
,__storage(INSTALLATION_STORAGE_INTERNAL)
,__rootCertType(ROOT_CERTIFICATE_NONE)
bool __isHybridService;
bool __isVerificationMode;
bool __isUpdated;
+ bool __isAppSetting;
InstallerOperation __operation;
InstallationStorage __storage;
String destPath;
String appRootPath;
- FileAttributes attribute;
SmackManager smackManager;
appRootPath = pContext->__rootPath;
// appRoot/setting
destPath = appRootPath + DIR_SETTING;
- r = File::GetAttributes(destPath, attribute);
- if (r == E_SUCCESS)
+ if (pContext->__isAppSetting == true)
{
String appVersion = pContext->__version;
String srcPath;
ManifestGenerator::Write()
{
String location;
+ String appSetting(L"false");
if (__pContext->__isPreloaded == true)
{
location = L"auto";
}
+ String appSettingPath = __pContext->__rootPath + DIR_SETTING;
+ if (File::IsFileExist(appSettingPath) == true)
+ {
+ __pContext->__isAppSetting = true;
+ appSetting = L"true";
+ }
+
__pWriter->Construct(__pContext->__coreXmlPath);
__pWriter->StartElement("manifest");
__pWriter->WriteAttribute("version", __pContext->__version);
__pWriter->WriteAttribute("install-location", location);
__pWriter->WriteAttribute("root_path", __pContext->__rootPath);
+ __pWriter->WriteAttribute("appsetting", appSetting);
__pWriter->StartElement("label");
__pWriter->WriteString(__pContext->__displayName);