64 |
64 |
65 typedef std::vector<std::wstring> Filenames; |
65 typedef std::vector<std::wstring> Filenames; |
66 |
66 |
67 void SanitiseSISFileAttributes(const InstallSISFile& aInstallSISFile); |
67 void SanitiseSISFileAttributes(const InstallSISFile& aInstallSISFile); |
68 |
68 |
69 void UninstallPkg(const SisFile& aSis); // Uninstall the same package (if found) |
69 void UninstallPkg(const SisFile& aSis, const bool aGenerateRomStub); // Uninstall the same package (if found) |
70 // prior to installation |
70 // prior to installation |
71 |
71 |
72 bool DependenciesOk(const SisFile& aFile); // Check to see if the sis file |
72 bool DependenciesOk(const SisFile& aFile); // Check to see if the sis file |
73 // meets it's dependencies |
73 // meets it's dependencies |
74 |
74 |
75 bool IsValidUpgrade(const SisFile& aFile, bool aSUFlag, bool aNonRemovable); // Check to see if this is a valid upgrade |
75 bool IsValidUpgrade(const SisFile& aFile, bool aSUFlag, bool aNonRemovable, bool aGenerateRomStub); // Check to see if this is a valid upgrade |
76 // to the existing packages |
76 // to the existing packages |
77 void ValidateRegistry(const SisFile& aFile, TUint32 aPckgUid, TUint32 aInstallFlags, bool aRUFlag, bool aNonRemovable); |
77 void ValidateRegistry(const SisFile& aFile, TUint32 aPckgUid, TUint32 aInstallFlags, |
|
78 bool aRUFlag, bool aNonRemovable, bool aGenerateRomStub); |
78 void InitializeRegistryDetails ( const TUint32 aPckgUid, bool& aIsBaseRemovable, bool& aInRom, bool& aIsPreInstalled, TUint32& aUid, std::wstring& aPackageName ); |
79 void InitializeRegistryDetails ( const TUint32 aPckgUid, bool& aIsBaseRemovable, bool& aInRom, bool& aIsPreInstalled, TUint32& aUid, std::wstring& aPackageName ); |
79 |
80 |
80 |
81 |
81 bool GetInstallableFiles( |
82 bool GetInstallableFiles( |
82 const SisFile& aFile, InstallableFiles& aList, ExpressionEvaluator& aEvaluator, int aInstallingDrive); |
83 const SisFile& aFile, InstallableFiles& aList, ExpressionEvaluator& aEvaluator, |
|
84 int aInstallingDrive, const int aSystemDrive, const bool aGenerateRomStub); |
83 |
85 |
84 void InstallFiles(const InstallableFiles& aList, const int aInstallDrive); // Retrieves the list of files |
86 void InstallFiles(const InstallableFiles& aList, int aInstallDrive, const bool aGenerateRomStub); // Retrieves the list of files |
85 // to install from the sis file |
87 // to install from the sis file |
86 |
88 |
87 static void Install(const InstallableFile& aFile); |
89 static void Install(const InstallableFile& aFile); |
88 |
90 |
89 void UpdateRegistry(const SisFile& aFile, const InstallableFiles& aInstalled, // Update the registry entries for |
91 void UpdateRegistry(const SisFile& aFile, const InstallableFiles& aInstalled, // Update the registry entries for |
104 const SisRegistry& aSisRegistry, |
106 const SisRegistry& aSisRegistry, |
105 RomManager& aRomManager ); |
107 RomManager& aRomManager ); |
106 |
108 |
107 void CreateStubSisFile(const InstallSISFile& aInstallSISFile, SisFile& aSis); |
109 void CreateStubSisFile(const InstallSISFile& aInstallSISFile, SisFile& aSis); |
108 |
110 |
|
111 void CreateRomStubSisFile(const InstallSISFile& aInstallSISFile, SisFile& aSis); |
|
112 |
109 // Eclipsing check methods |
113 // Eclipsing check methods |
110 void PrepareEclipsableFilesList(const SisFile& aSis); |
114 void PrepareEclipsableFilesList(const SisFile& aSis); |
111 bool IsValidEclipsingUpgrade(const SisFile& aSis, const SisRegistryObject& registryEntry); |
115 bool IsValidEclipsingUpgrade(const SisFile& aSis, const SisRegistryObject& registryEntry); |
112 bool ValidEclipse(const SisFile& aFile, const std::wstring& target, const InstallableFile& aInstallableFile, bool aSUFlag); |
116 bool ValidEclipse(const SisFile& aFile, const std::wstring& target, const InstallableFile& aInstallableFile, bool aSUFlag); |
113 void HandleFileOverwriting(const SisFile& aFile, const std::wstring& target, bool aSUFlag); |
117 void HandleFileOverwriting(const SisFile& aFile, const std::wstring& target, bool aSUFlag); |
|
118 void HandleRomFileOverwriting(const SisFile& aFile, const std::wstring& target); |
114 #ifndef __TOOLS2_LINUX__ |
119 #ifndef __TOOLS2_LINUX__ |
115 bool IsEclipsable(std::wstring& aRomFile, bool aSUFlag); |
120 bool IsEclipsable(std::wstring& aRomFile, bool aSUFlag); |
116 #else |
121 #else |
117 bool IsEclipsable(std::wstring& aRomFile, bool aSUFlag, const std::wstring& aDrivePath); |
122 bool IsEclipsable(std::wstring& aRomFile, bool aSUFlag, const std::wstring& aDrivePath); |
118 #endif |
123 #endif |