1*9a1eeea9SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*9a1eeea9SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*9a1eeea9SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*9a1eeea9SAndrew Rist * distributed with this work for additional information 6*9a1eeea9SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*9a1eeea9SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*9a1eeea9SAndrew Rist * "License"); you may not use this file except in compliance 9*9a1eeea9SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*9a1eeea9SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*9a1eeea9SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*9a1eeea9SAndrew Rist * software distributed under the License is distributed on an 15*9a1eeea9SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*9a1eeea9SAndrew Rist * KIND, either express or implied. See the License for the 17*9a1eeea9SAndrew Rist * specific language governing permissions and limitations 18*9a1eeea9SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*9a1eeea9SAndrew Rist *************************************************************/ 21*9a1eeea9SAndrew Rist 22*9a1eeea9SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir package org.openoffice.setup; 25cdf0e10cSrcweir 26cdf0e10cSrcweir import org.openoffice.setup.SetupData.PackageDescription; 27cdf0e10cSrcweir import org.openoffice.setup.Util.Controller; 28cdf0e10cSrcweir import org.openoffice.setup.Util.SystemManager; 29cdf0e10cSrcweir import java.io.File; 30cdf0e10cSrcweir import java.util.HashMap; 31cdf0e10cSrcweir import java.util.Locale; 32cdf0e10cSrcweir import java.util.Vector; 33cdf0e10cSrcweir 34cdf0e10cSrcweir public class InstallData 35cdf0e10cSrcweir { 36cdf0e10cSrcweir public static final String ACTION_TYPICAL = "ActionTypical"; 37cdf0e10cSrcweir public static final String ACTION_CUSTOM = "ActionCustom"; 38cdf0e10cSrcweir 39cdf0e10cSrcweir private static InstallData instance = null; 40cdf0e10cSrcweir 41cdf0e10cSrcweir static private boolean isUserInstallation; /* root or user installation? */ 42cdf0e10cSrcweir static private boolean isRootInstallation; /* root or user installation? */ 43cdf0e10cSrcweir static private boolean isInstallationMode; /* installation or uninstallation? */ 44cdf0e10cSrcweir static private boolean isUninstallationMode; /* installation or uninstallation? */ 45cdf0e10cSrcweir static private boolean isCustomInstallation = false; /* custom or typical? */ 46cdf0e10cSrcweir static private boolean isTypicalInstallation = true; /* custom or typical? */ 47cdf0e10cSrcweir static private boolean isSolarisUserInstallation = false; 48cdf0e10cSrcweir static private boolean isChangeInstallation = false; 49cdf0e10cSrcweir static private boolean stillRunning = false; 50cdf0e10cSrcweir static private boolean stillAnalyzing = true; 51cdf0e10cSrcweir static private boolean databaseAnalyzed = false; /* the database was already analyzed? */ 52cdf0e10cSrcweir static private boolean moduleSizeSet = false; /* the database was already analyzed? */ 53cdf0e10cSrcweir static private boolean preInstallDone = false; /* preInstall script already executed? */ 54cdf0e10cSrcweir static private boolean isAbortedInstallation = false; 55cdf0e10cSrcweir static private boolean isErrorInstallation = false; 56cdf0e10cSrcweir static private boolean logModuleStates = false; /* logging the current state of modules */ 57cdf0e10cSrcweir static private boolean visibleModulesChecked = false; /* checking, if the user selected modules */ 58cdf0e10cSrcweir static private boolean languageModulesChecked = false; /* checking, if the user selected language modules */ 59cdf0e10cSrcweir static private boolean applicationModulesChecked = false; /* checking, if the user selected application modules */ 60cdf0e10cSrcweir static private boolean isMaskedCompleteUninstallation = false; /* checking if all visible modules are uninstalled */ 61cdf0e10cSrcweir static private boolean typicalSelectionStateSaved = false; 62cdf0e10cSrcweir static private boolean customSelectionStateSaved = false; 63cdf0e10cSrcweir static private boolean startSelectionStateSaved = false; 64cdf0e10cSrcweir static private boolean olderVersionExists = false; 65cdf0e10cSrcweir static private boolean sameVersionExists = false; 66cdf0e10cSrcweir static private boolean newerVersionExists = false; 67cdf0e10cSrcweir static private boolean majorUpgrade = false; 68cdf0e10cSrcweir static private boolean isMultiLingual = false; 69cdf0e10cSrcweir static private boolean dontUpdate = false; 70cdf0e10cSrcweir static private boolean hideEula = false; 71cdf0e10cSrcweir static private boolean databaseQueried = false; 72cdf0e10cSrcweir static private boolean useRtl = false; 73cdf0e10cSrcweir static private boolean installedProductMinorSet = false; 74cdf0e10cSrcweir static private boolean isDebianSystem = false; 75cdf0e10cSrcweir static private boolean useForceDebian = false; /* --force-debian */ 76cdf0e10cSrcweir static private boolean debianInvestigated = false; 77cdf0e10cSrcweir static private boolean isFirstPackage = false; 78cdf0e10cSrcweir static private String installType; /* custom or typical installation */ 79cdf0e10cSrcweir static private String osType; /* Linux, SunOS, ... */ 80cdf0e10cSrcweir static private String installDir = null; 81cdf0e10cSrcweir static private String defaultDir = "/opt"; 82cdf0e10cSrcweir static private String installDefaultDir = null; 83cdf0e10cSrcweir static private String productDir = null; 84cdf0e10cSrcweir static private String packageFormat = null; 85cdf0e10cSrcweir static private String architecture = null; 86cdf0e10cSrcweir static private String packagePath = null; 87cdf0e10cSrcweir static private String packageSubdir = "packages"; 88cdf0e10cSrcweir static private String adminFileNameReloc = null; 89cdf0e10cSrcweir static private String adminFileNameRelocNoDepends = null; 90cdf0e10cSrcweir static private String adminFileNameNoReloc = null; 91cdf0e10cSrcweir static private String adminFileNameNoRelocNoDepends = null; 92cdf0e10cSrcweir static private String databasePath = null; 93cdf0e10cSrcweir static private String getUidPath = null; 94cdf0e10cSrcweir static private String installationPrivileges = null; 95cdf0e10cSrcweir static private String storedInstallationPrivileges = null; /* privileges saved in file */ 96cdf0e10cSrcweir static private String localTempPath = null; 97cdf0e10cSrcweir static private String installDirName = "installdata"; 98cdf0e10cSrcweir static private String uninstallDirName = "uninstalldata"; 99cdf0e10cSrcweir static private int availableDiscSpace = 0; 100cdf0e10cSrcweir static private int preselectedLanguages = 0; 101cdf0e10cSrcweir static private int productMinor = 0; 102cdf0e10cSrcweir static private int installedProductMinor = 0; 103cdf0e10cSrcweir static private File jarFilePath = null; 104cdf0e10cSrcweir static private File resourceRoot; 105cdf0e10cSrcweir static private File infoRoot; 106cdf0e10cSrcweir static private HashMap shellEnvironment = null; /* Solaris environment for user install */ 107cdf0e10cSrcweir static private HashMap databaseMap = null; 108cdf0e10cSrcweir static private PackageDescription updatePackage = null; 109cdf0e10cSrcweir static private Vector removeFiles = new Vector(); /* Files to remove, if installation is aborted */ 110cdf0e10cSrcweir static private Vector installPackages = new Vector(); 111cdf0e10cSrcweir static private Vector oldPackages = new Vector(); 112cdf0e10cSrcweir static private Vector systemLanguages = new Vector(); 113cdf0e10cSrcweir getInstance()114cdf0e10cSrcweir public static InstallData getInstance() 115cdf0e10cSrcweir { 116cdf0e10cSrcweir if (instance == null) { 117cdf0e10cSrcweir instance = new InstallData(); 118cdf0e10cSrcweir } 119cdf0e10cSrcweir return instance; 120cdf0e10cSrcweir } 121cdf0e10cSrcweir InstallData()122cdf0e10cSrcweir private InstallData() 123cdf0e10cSrcweir { 124cdf0e10cSrcweir installType = ACTION_TYPICAL; // default installation type 125cdf0e10cSrcweir isUserInstallation = SystemManager.isUserInstallation(); 126cdf0e10cSrcweir isRootInstallation = !isUserInstallation; 127cdf0e10cSrcweir setInstallationPrivileges(isUserInstallation); 128cdf0e10cSrcweir osType = SystemManager.getOSType(); 129cdf0e10cSrcweir resourceRoot = SystemManager.getResourceRoot(); 130cdf0e10cSrcweir setInstallationMode(); 131cdf0e10cSrcweir setSolarisUserInstall(); 132cdf0e10cSrcweir setHtmlFileExistence(); 133cdf0e10cSrcweir setBidiSupport(); 134cdf0e10cSrcweir } 135cdf0e10cSrcweir setInstallationType(String installationtype)136cdf0e10cSrcweir public void setInstallationType(String installationtype) { 137cdf0e10cSrcweir installType = installationtype; 138cdf0e10cSrcweir 139cdf0e10cSrcweir if ( installType.equals(this.getCustomActionCommand())) { 140cdf0e10cSrcweir isCustomInstallation = true; 141cdf0e10cSrcweir isTypicalInstallation = false; 142cdf0e10cSrcweir } 143cdf0e10cSrcweir 144cdf0e10cSrcweir if ( installType.equals(this.getTypicalActionCommand())) { 145cdf0e10cSrcweir isCustomInstallation = false; 146cdf0e10cSrcweir isTypicalInstallation = true; 147cdf0e10cSrcweir } 148cdf0e10cSrcweir } 149cdf0e10cSrcweir setInstallationMode()150cdf0e10cSrcweir private void setInstallationMode() { 151cdf0e10cSrcweir // Exists a directory "uninstalldata" below the resource root? 152cdf0e10cSrcweir File uninstallDir = new File(resourceRoot, uninstallDirName); 153cdf0e10cSrcweir File installDir = new File(resourceRoot, installDirName); 154cdf0e10cSrcweir 155cdf0e10cSrcweir if ( SystemManager.exists_directory(uninstallDir.getPath())) { 156cdf0e10cSrcweir isInstallationMode = false; 157cdf0e10cSrcweir isUninstallationMode = true; 158cdf0e10cSrcweir infoRoot = uninstallDir; 159cdf0e10cSrcweir System.err.println("Mode: uninstallation"); 160cdf0e10cSrcweir } else if ( SystemManager.exists_directory(installDir.getPath())) { 161cdf0e10cSrcweir isInstallationMode = true; 162cdf0e10cSrcweir isUninstallationMode = false; 163cdf0e10cSrcweir infoRoot = installDir; 164cdf0e10cSrcweir System.err.println("Mode: installation"); 165cdf0e10cSrcweir } else { 166cdf0e10cSrcweir // isInstallationMode = null; 167cdf0e10cSrcweir // isUninstallationMode = null; 168cdf0e10cSrcweir infoRoot = null; 169cdf0e10cSrcweir System.err.println("Error: Did not find info path"); 170cdf0e10cSrcweir System.err.println("Error: No info about installation or uninstallation"); 171cdf0e10cSrcweir System.exit(1); 172cdf0e10cSrcweir } 173cdf0e10cSrcweir } 174cdf0e10cSrcweir setSolarisUserInstall()175cdf0e10cSrcweir private void setSolarisUserInstall() { 176cdf0e10cSrcweir if (( isUserInstallation ) && (osType.equalsIgnoreCase("SunOS"))) { 177cdf0e10cSrcweir isSolarisUserInstallation = true; 178cdf0e10cSrcweir if ( isInstallationMode ) { 179cdf0e10cSrcweir Controller.checkForUidFile(this); 180cdf0e10cSrcweir } 181cdf0e10cSrcweir } 182cdf0e10cSrcweir } 183cdf0e10cSrcweir setHtmlFileExistence()184cdf0e10cSrcweir private void setHtmlFileExistence() { 185cdf0e10cSrcweir // After inforoot is determined, the existence of files in subdirectory "html" can be checked 186cdf0e10cSrcweir File htmlDirectory = getInfoRoot("html"); 187cdf0e10cSrcweir ResourceManager.checkFileExistence(htmlDirectory); 188cdf0e10cSrcweir } 189cdf0e10cSrcweir setBidiSupport()190cdf0e10cSrcweir private void setBidiSupport() { 191cdf0e10cSrcweir Locale locale = Locale.getDefault(); 192cdf0e10cSrcweir if (( locale.getLanguage().equals(new Locale("he", "", "").getLanguage()) ) 193cdf0e10cSrcweir || ( locale.getLanguage().equals(new Locale("ar", "", "").getLanguage()) )) { 194cdf0e10cSrcweir useRtl = true; 195cdf0e10cSrcweir } 196cdf0e10cSrcweir } 197cdf0e10cSrcweir setInstallationPrivileges(boolean isUserInstallation)198cdf0e10cSrcweir private void setInstallationPrivileges(boolean isUserInstallation) { 199cdf0e10cSrcweir if ( isUserInstallation ) { 200cdf0e10cSrcweir installationPrivileges = "user"; 201cdf0e10cSrcweir } else { 202cdf0e10cSrcweir installationPrivileges = "root"; 203cdf0e10cSrcweir } 204cdf0e10cSrcweir } 205cdf0e10cSrcweir getInstallationType()206cdf0e10cSrcweir public String getInstallationType() { 207cdf0e10cSrcweir return installType; 208cdf0e10cSrcweir } 209cdf0e10cSrcweir getCustomActionCommand()210cdf0e10cSrcweir public String getCustomActionCommand() { 211cdf0e10cSrcweir return ACTION_CUSTOM; 212cdf0e10cSrcweir } 213cdf0e10cSrcweir getTypicalActionCommand()214cdf0e10cSrcweir public String getTypicalActionCommand() { 215cdf0e10cSrcweir return ACTION_TYPICAL; 216cdf0e10cSrcweir } 217cdf0e10cSrcweir getInstallationPrivileges()218cdf0e10cSrcweir public String getInstallationPrivileges() { 219cdf0e10cSrcweir return installationPrivileges; 220cdf0e10cSrcweir } 221cdf0e10cSrcweir getOSType()222cdf0e10cSrcweir public String getOSType() { 223cdf0e10cSrcweir return osType; 224cdf0e10cSrcweir } 225cdf0e10cSrcweir getResourceRoot()226cdf0e10cSrcweir public File getResourceRoot() { 227cdf0e10cSrcweir return resourceRoot; 228cdf0e10cSrcweir } 229cdf0e10cSrcweir getResourceRoot(String subDirectory)230cdf0e10cSrcweir public File getResourceRoot(String subDirectory) { 231cdf0e10cSrcweir 232cdf0e10cSrcweir File dir = getResourceRoot(); 233cdf0e10cSrcweir 234cdf0e10cSrcweir if (dir != null) { 235cdf0e10cSrcweir dir = new File(dir, subDirectory); 236cdf0e10cSrcweir if (!dir.exists()) { 237cdf0e10cSrcweir dir = null; 238cdf0e10cSrcweir } 239cdf0e10cSrcweir } 240cdf0e10cSrcweir 241cdf0e10cSrcweir return dir; 242cdf0e10cSrcweir } 243cdf0e10cSrcweir getInfoRoot()244cdf0e10cSrcweir public File getInfoRoot() { 245cdf0e10cSrcweir return infoRoot; 246cdf0e10cSrcweir } 247cdf0e10cSrcweir getInfoRoot(String subDirectory)248cdf0e10cSrcweir public File getInfoRoot(String subDirectory) { 249cdf0e10cSrcweir File dir = new File(infoRoot, subDirectory); 250cdf0e10cSrcweir if (!dir.exists()) { 251cdf0e10cSrcweir dir = null; 252cdf0e10cSrcweir } 253cdf0e10cSrcweir 254cdf0e10cSrcweir return dir; 255cdf0e10cSrcweir } 256cdf0e10cSrcweir isUserInstallation()257cdf0e10cSrcweir public boolean isUserInstallation() { 258cdf0e10cSrcweir return isUserInstallation; 259cdf0e10cSrcweir } 260cdf0e10cSrcweir isRootInstallation()261cdf0e10cSrcweir public boolean isRootInstallation() { 262cdf0e10cSrcweir return isRootInstallation; 263cdf0e10cSrcweir } 264cdf0e10cSrcweir isInstallationMode()265cdf0e10cSrcweir public boolean isInstallationMode() { 266cdf0e10cSrcweir return isInstallationMode; 267cdf0e10cSrcweir } 268cdf0e10cSrcweir isUninstallationMode()269cdf0e10cSrcweir public boolean isUninstallationMode() { 270cdf0e10cSrcweir return isUninstallationMode; 271cdf0e10cSrcweir } 272cdf0e10cSrcweir isSolarisUserInstallation()273cdf0e10cSrcweir public boolean isSolarisUserInstallation() { 274cdf0e10cSrcweir return isSolarisUserInstallation; 275cdf0e10cSrcweir } 276cdf0e10cSrcweir useRtl()277cdf0e10cSrcweir public boolean useRtl() { 278cdf0e10cSrcweir return useRtl; 279cdf0e10cSrcweir } 280cdf0e10cSrcweir getDefaultDir()281cdf0e10cSrcweir public String getDefaultDir() { 282cdf0e10cSrcweir return defaultDir; 283cdf0e10cSrcweir } 284cdf0e10cSrcweir setDefaultDir(String dir)285cdf0e10cSrcweir public void setDefaultDir(String dir) { 286cdf0e10cSrcweir defaultDir = dir; 287cdf0e10cSrcweir } 288cdf0e10cSrcweir getProductDir()289cdf0e10cSrcweir public String getProductDir() { 290cdf0e10cSrcweir return productDir; 291cdf0e10cSrcweir } 292cdf0e10cSrcweir setProductDir(String dir)293cdf0e10cSrcweir public void setProductDir(String dir) { 294cdf0e10cSrcweir productDir = dir; 295cdf0e10cSrcweir } 296cdf0e10cSrcweir getProductMinor()297cdf0e10cSrcweir public int getProductMinor() { 298cdf0e10cSrcweir return productMinor; 299cdf0e10cSrcweir } 300cdf0e10cSrcweir setProductMinor(int minor)301cdf0e10cSrcweir public void setProductMinor(int minor) { 302cdf0e10cSrcweir productMinor = minor; 303cdf0e10cSrcweir } 304cdf0e10cSrcweir getInstalledProductMinor()305cdf0e10cSrcweir public int getInstalledProductMinor() { 306cdf0e10cSrcweir return installedProductMinor; 307cdf0e10cSrcweir } 308cdf0e10cSrcweir setInstalledProductMinor(int minor)309cdf0e10cSrcweir public void setInstalledProductMinor(int minor) { 310cdf0e10cSrcweir installedProductMinor = minor; 311cdf0e10cSrcweir } 312cdf0e10cSrcweir getInstallDirName()313cdf0e10cSrcweir public String getInstallDirName() { 314cdf0e10cSrcweir return installDirName; 315cdf0e10cSrcweir } 316cdf0e10cSrcweir getUninstallDirName()317cdf0e10cSrcweir public String getUninstallDirName() { 318cdf0e10cSrcweir return uninstallDirName; 319cdf0e10cSrcweir } 320cdf0e10cSrcweir getInstallDir()321cdf0e10cSrcweir public String getInstallDir() { 322cdf0e10cSrcweir return installDir; 323cdf0e10cSrcweir } 324cdf0e10cSrcweir setInstallDir(String dir)325cdf0e10cSrcweir public void setInstallDir(String dir) { 326cdf0e10cSrcweir installDir = dir; 327cdf0e10cSrcweir } 328cdf0e10cSrcweir getInstallDefaultDir()329cdf0e10cSrcweir public String getInstallDefaultDir() { 330cdf0e10cSrcweir return installDefaultDir; 331cdf0e10cSrcweir } 332cdf0e10cSrcweir setInstallDefaultDir(String dir)333cdf0e10cSrcweir public void setInstallDefaultDir(String dir) { 334cdf0e10cSrcweir installDefaultDir = dir; 335cdf0e10cSrcweir } 336cdf0e10cSrcweir getDatabasePath()337cdf0e10cSrcweir public String getDatabasePath() { 338cdf0e10cSrcweir return databasePath; 339cdf0e10cSrcweir } 340cdf0e10cSrcweir setDatabasePath(String path)341cdf0e10cSrcweir public void setDatabasePath(String path) { 342cdf0e10cSrcweir databasePath = path; 343cdf0e10cSrcweir } 344cdf0e10cSrcweir getPackagePath()345cdf0e10cSrcweir public String getPackagePath() { 346cdf0e10cSrcweir if ( packagePath == null ) { 347cdf0e10cSrcweir packagePath = SystemManager.getPackagePath(packageSubdir); 348cdf0e10cSrcweir } 349cdf0e10cSrcweir return packagePath; 350cdf0e10cSrcweir } 351cdf0e10cSrcweir setPackagePath(String path)352cdf0e10cSrcweir public void setPackagePath(String path) { 353cdf0e10cSrcweir packagePath = path; 354cdf0e10cSrcweir } 355cdf0e10cSrcweir getPackageSubdir()356cdf0e10cSrcweir public String getPackageSubdir() { 357cdf0e10cSrcweir return packageSubdir; 358cdf0e10cSrcweir } 359cdf0e10cSrcweir setPackageSubdir(String dir)360cdf0e10cSrcweir public void setPackageSubdir(String dir) { 361cdf0e10cSrcweir packageSubdir = dir; 362cdf0e10cSrcweir } 363cdf0e10cSrcweir getPackageFormat()364cdf0e10cSrcweir public String getPackageFormat() { 365cdf0e10cSrcweir return packageFormat; 366cdf0e10cSrcweir } 367cdf0e10cSrcweir setPackageFormat(String format)368cdf0e10cSrcweir public void setPackageFormat(String format) { 369cdf0e10cSrcweir packageFormat = format; 370cdf0e10cSrcweir } 371cdf0e10cSrcweir getArchitecture()372cdf0e10cSrcweir public String getArchitecture() { 373cdf0e10cSrcweir return architecture; 374cdf0e10cSrcweir } 375cdf0e10cSrcweir setArchitecture(String arch)376cdf0e10cSrcweir public void setArchitecture(String arch) { 377cdf0e10cSrcweir architecture = arch; 378cdf0e10cSrcweir } 379cdf0e10cSrcweir getLocalTempPath()380cdf0e10cSrcweir public String getLocalTempPath() { 381cdf0e10cSrcweir return localTempPath; 382cdf0e10cSrcweir } 383cdf0e10cSrcweir setLocalTempPath(String path)384cdf0e10cSrcweir public void setLocalTempPath(String path) { 385cdf0e10cSrcweir localTempPath = path; 386cdf0e10cSrcweir } 387cdf0e10cSrcweir getAvailableDiscSpace()388cdf0e10cSrcweir public int getAvailableDiscSpace() { 389cdf0e10cSrcweir return availableDiscSpace; 390cdf0e10cSrcweir } 391cdf0e10cSrcweir setAvailableDiscSpace(int space)392cdf0e10cSrcweir public void setAvailableDiscSpace(int space) { 393cdf0e10cSrcweir availableDiscSpace = space; 394cdf0e10cSrcweir } 395cdf0e10cSrcweir getPreselectedLanguages()396cdf0e10cSrcweir public int getPreselectedLanguages() { 397cdf0e10cSrcweir return preselectedLanguages; 398cdf0e10cSrcweir } 399cdf0e10cSrcweir setPreselectedLanguages(int count)400cdf0e10cSrcweir public void setPreselectedLanguages(int count) { 401cdf0e10cSrcweir preselectedLanguages = count; 402cdf0e10cSrcweir } 403cdf0e10cSrcweir getAdminFileNameReloc()404cdf0e10cSrcweir public String getAdminFileNameReloc() { 405cdf0e10cSrcweir return adminFileNameReloc; 406cdf0e10cSrcweir } 407cdf0e10cSrcweir setAdminFileNameReloc(String fileName)408cdf0e10cSrcweir public void setAdminFileNameReloc(String fileName) { 409cdf0e10cSrcweir adminFileNameReloc = fileName; 410cdf0e10cSrcweir } 411cdf0e10cSrcweir getAdminFileNameRelocNoDepends()412cdf0e10cSrcweir public String getAdminFileNameRelocNoDepends() { 413cdf0e10cSrcweir return adminFileNameRelocNoDepends; 414cdf0e10cSrcweir } 415cdf0e10cSrcweir setAdminFileNameRelocNoDepends(String fileName)416cdf0e10cSrcweir public void setAdminFileNameRelocNoDepends(String fileName) { 417cdf0e10cSrcweir adminFileNameRelocNoDepends = fileName; 418cdf0e10cSrcweir } 419cdf0e10cSrcweir getAdminFileNameNoReloc()420cdf0e10cSrcweir public String getAdminFileNameNoReloc() { 421cdf0e10cSrcweir return adminFileNameNoReloc; 422cdf0e10cSrcweir } 423cdf0e10cSrcweir setAdminFileNameNoReloc(String fileName)424cdf0e10cSrcweir public void setAdminFileNameNoReloc(String fileName) { 425cdf0e10cSrcweir adminFileNameNoReloc = fileName; 426cdf0e10cSrcweir } 427cdf0e10cSrcweir getAdminFileNameNoRelocNoDepends()428cdf0e10cSrcweir public String getAdminFileNameNoRelocNoDepends() { 429cdf0e10cSrcweir return adminFileNameNoRelocNoDepends; 430cdf0e10cSrcweir } 431cdf0e10cSrcweir setAdminFileNameNoRelocNoDepends(String fileName)432cdf0e10cSrcweir public void setAdminFileNameNoRelocNoDepends(String fileName) { 433cdf0e10cSrcweir adminFileNameNoRelocNoDepends = fileName; 434cdf0e10cSrcweir } 435cdf0e10cSrcweir getGetUidPath()436cdf0e10cSrcweir public String getGetUidPath() { 437cdf0e10cSrcweir return getUidPath; 438cdf0e10cSrcweir } 439cdf0e10cSrcweir setGetUidPath(String filePath)440cdf0e10cSrcweir public void setGetUidPath(String filePath) { 441cdf0e10cSrcweir getUidPath = filePath; 442cdf0e10cSrcweir } 443cdf0e10cSrcweir getStoredInstallationPrivileges()444cdf0e10cSrcweir public String getStoredInstallationPrivileges() { 445cdf0e10cSrcweir return storedInstallationPrivileges; 446cdf0e10cSrcweir } 447cdf0e10cSrcweir setStoredInstallationPrivileges(String privileges)448cdf0e10cSrcweir public void setStoredInstallationPrivileges(String privileges) { 449cdf0e10cSrcweir storedInstallationPrivileges = privileges; 450cdf0e10cSrcweir } 451cdf0e10cSrcweir setStillRunning(boolean running)452cdf0e10cSrcweir public void setStillRunning(boolean running) { 453cdf0e10cSrcweir stillRunning = running; 454cdf0e10cSrcweir } 455cdf0e10cSrcweir stillRunning()456cdf0e10cSrcweir public boolean stillRunning() { 457cdf0e10cSrcweir return stillRunning; 458cdf0e10cSrcweir } 459cdf0e10cSrcweir setStillAnalyzing(boolean running)460cdf0e10cSrcweir public void setStillAnalyzing(boolean running) { 461cdf0e10cSrcweir stillAnalyzing = running; 462cdf0e10cSrcweir } 463cdf0e10cSrcweir stillAnalyzing()464cdf0e10cSrcweir public boolean stillAnalyzing() { 465cdf0e10cSrcweir return stillAnalyzing; 466cdf0e10cSrcweir } 467cdf0e10cSrcweir setDatabaseAnalyzed(boolean analyzed)468cdf0e10cSrcweir public void setDatabaseAnalyzed(boolean analyzed) { 469cdf0e10cSrcweir databaseAnalyzed = analyzed; 470cdf0e10cSrcweir } 471cdf0e10cSrcweir databaseAnalyzed()472cdf0e10cSrcweir public boolean databaseAnalyzed() { 473cdf0e10cSrcweir return databaseAnalyzed; 474cdf0e10cSrcweir } 475cdf0e10cSrcweir setModuleSizeSet(boolean set)476cdf0e10cSrcweir public void setModuleSizeSet(boolean set) { 477cdf0e10cSrcweir moduleSizeSet = set; 478cdf0e10cSrcweir } 479cdf0e10cSrcweir moduleSizeSet()480cdf0e10cSrcweir public boolean moduleSizeSet() { 481cdf0e10cSrcweir return moduleSizeSet; 482cdf0e10cSrcweir } 483cdf0e10cSrcweir setPreInstallDone(boolean done)484cdf0e10cSrcweir public void setPreInstallDone(boolean done) { 485cdf0e10cSrcweir preInstallDone = done; 486cdf0e10cSrcweir } 487cdf0e10cSrcweir preInstallDone()488cdf0e10cSrcweir public boolean preInstallDone() { 489cdf0e10cSrcweir return preInstallDone; 490cdf0e10cSrcweir } 491cdf0e10cSrcweir isChangeInstallation()492cdf0e10cSrcweir public boolean isChangeInstallation() { 493cdf0e10cSrcweir return isChangeInstallation; 494cdf0e10cSrcweir } 495cdf0e10cSrcweir setIsChangeInstallation(boolean changeInstallation)496cdf0e10cSrcweir public void setIsChangeInstallation(boolean changeInstallation) { 497cdf0e10cSrcweir isChangeInstallation = changeInstallation; 498cdf0e10cSrcweir } 499cdf0e10cSrcweir isTypicalInstallation()500cdf0e10cSrcweir public boolean isTypicalInstallation() { 501cdf0e10cSrcweir return isTypicalInstallation; 502cdf0e10cSrcweir } 503cdf0e10cSrcweir isCustomInstallation()504cdf0e10cSrcweir public boolean isCustomInstallation() { 505cdf0e10cSrcweir return isCustomInstallation; 506cdf0e10cSrcweir } 507cdf0e10cSrcweir isAbortedInstallation()508cdf0e10cSrcweir public boolean isAbortedInstallation() { 509cdf0e10cSrcweir return isAbortedInstallation; 510cdf0e10cSrcweir } 511cdf0e10cSrcweir setIsAbortedInstallation(boolean abortedInstallation)512cdf0e10cSrcweir public void setIsAbortedInstallation(boolean abortedInstallation) { 513cdf0e10cSrcweir isAbortedInstallation = abortedInstallation; 514cdf0e10cSrcweir } 515cdf0e10cSrcweir isErrorInstallation()516cdf0e10cSrcweir public boolean isErrorInstallation() { 517cdf0e10cSrcweir return isErrorInstallation; 518cdf0e10cSrcweir } 519cdf0e10cSrcweir setIsErrorInstallation(boolean errorInstallation)520cdf0e10cSrcweir public void setIsErrorInstallation(boolean errorInstallation) { 521cdf0e10cSrcweir isErrorInstallation = errorInstallation; 522cdf0e10cSrcweir } 523cdf0e10cSrcweir isMultiLingual()524cdf0e10cSrcweir public boolean isMultiLingual() { 525cdf0e10cSrcweir return isMultiLingual; 526cdf0e10cSrcweir } 527cdf0e10cSrcweir setIsMultiLingual(boolean multiLingual)528cdf0e10cSrcweir public void setIsMultiLingual(boolean multiLingual) { 529cdf0e10cSrcweir isMultiLingual = multiLingual; 530cdf0e10cSrcweir } 531cdf0e10cSrcweir logModuleStates()532cdf0e10cSrcweir public boolean logModuleStates() { 533cdf0e10cSrcweir return logModuleStates; 534cdf0e10cSrcweir } 535cdf0e10cSrcweir setLogModuleStates(boolean log)536cdf0e10cSrcweir public void setLogModuleStates(boolean log) { 537cdf0e10cSrcweir logModuleStates = log; 538cdf0e10cSrcweir } 539cdf0e10cSrcweir visibleModulesChecked()540cdf0e10cSrcweir public boolean visibleModulesChecked() { 541cdf0e10cSrcweir return visibleModulesChecked; 542cdf0e10cSrcweir } 543cdf0e10cSrcweir setVisibleModulesChecked(boolean checked)544cdf0e10cSrcweir public void setVisibleModulesChecked(boolean checked) { 545cdf0e10cSrcweir visibleModulesChecked = checked; 546cdf0e10cSrcweir } 547cdf0e10cSrcweir languageModulesChecked()548cdf0e10cSrcweir public boolean languageModulesChecked() { 549cdf0e10cSrcweir return languageModulesChecked; 550cdf0e10cSrcweir } 551cdf0e10cSrcweir setLanguageModulesChecked(boolean checked)552cdf0e10cSrcweir public void setLanguageModulesChecked(boolean checked) { 553cdf0e10cSrcweir languageModulesChecked = checked; 554cdf0e10cSrcweir } 555cdf0e10cSrcweir applicationModulesChecked()556cdf0e10cSrcweir public boolean applicationModulesChecked() { 557cdf0e10cSrcweir return applicationModulesChecked; 558cdf0e10cSrcweir } 559cdf0e10cSrcweir setApplicationModulesChecked(boolean checked)560cdf0e10cSrcweir public void setApplicationModulesChecked(boolean checked) { 561cdf0e10cSrcweir applicationModulesChecked = checked; 562cdf0e10cSrcweir } 563cdf0e10cSrcweir isMaskedCompleteUninstallation()564cdf0e10cSrcweir public boolean isMaskedCompleteUninstallation() { 565cdf0e10cSrcweir return isMaskedCompleteUninstallation; 566cdf0e10cSrcweir } 567cdf0e10cSrcweir setMaskedCompleteUninstallation(boolean masked)568cdf0e10cSrcweir public void setMaskedCompleteUninstallation(boolean masked) { 569cdf0e10cSrcweir isMaskedCompleteUninstallation = masked; 570cdf0e10cSrcweir } 571cdf0e10cSrcweir typicalSelectionStateSaved()572cdf0e10cSrcweir public boolean typicalSelectionStateSaved() { 573cdf0e10cSrcweir return typicalSelectionStateSaved; 574cdf0e10cSrcweir } 575cdf0e10cSrcweir setTypicalSelectionStateSaved(boolean saved)576cdf0e10cSrcweir public void setTypicalSelectionStateSaved(boolean saved) { 577cdf0e10cSrcweir typicalSelectionStateSaved = saved; 578cdf0e10cSrcweir } 579cdf0e10cSrcweir customSelectionStateSaved()580cdf0e10cSrcweir public boolean customSelectionStateSaved() { 581cdf0e10cSrcweir return customSelectionStateSaved; 582cdf0e10cSrcweir } 583cdf0e10cSrcweir setCustomSelectionStateSaved(boolean saved)584cdf0e10cSrcweir public void setCustomSelectionStateSaved(boolean saved) { 585cdf0e10cSrcweir customSelectionStateSaved = saved; 586cdf0e10cSrcweir } 587cdf0e10cSrcweir startSelectionStateSaved()588cdf0e10cSrcweir public boolean startSelectionStateSaved() { 589cdf0e10cSrcweir return startSelectionStateSaved; 590cdf0e10cSrcweir } 591cdf0e10cSrcweir setStartSelectionStateSaved(boolean saved)592cdf0e10cSrcweir public void setStartSelectionStateSaved(boolean saved) { 593cdf0e10cSrcweir startSelectionStateSaved = saved; 594cdf0e10cSrcweir } 595cdf0e10cSrcweir olderVersionExists()596cdf0e10cSrcweir public boolean olderVersionExists() { 597cdf0e10cSrcweir return olderVersionExists; 598cdf0e10cSrcweir } 599cdf0e10cSrcweir setOlderVersionExists(boolean exists)600cdf0e10cSrcweir public void setOlderVersionExists(boolean exists) { 601cdf0e10cSrcweir olderVersionExists = exists; 602cdf0e10cSrcweir } 603cdf0e10cSrcweir isMajorUpgrade()604cdf0e10cSrcweir public boolean isMajorUpgrade() { 605cdf0e10cSrcweir return majorUpgrade; 606cdf0e10cSrcweir } 607cdf0e10cSrcweir setMajorUpgrade(boolean upgrade)608cdf0e10cSrcweir public void setMajorUpgrade(boolean upgrade) { 609cdf0e10cSrcweir majorUpgrade = upgrade; 610cdf0e10cSrcweir } 611cdf0e10cSrcweir sameVersionExists()612cdf0e10cSrcweir public boolean sameVersionExists() { 613cdf0e10cSrcweir return sameVersionExists; 614cdf0e10cSrcweir } 615cdf0e10cSrcweir setSameVersionExists(boolean exists)616cdf0e10cSrcweir public void setSameVersionExists(boolean exists) { 617cdf0e10cSrcweir sameVersionExists = exists; 618cdf0e10cSrcweir } 619cdf0e10cSrcweir newerVersionExists()620cdf0e10cSrcweir public boolean newerVersionExists() { 621cdf0e10cSrcweir return newerVersionExists; 622cdf0e10cSrcweir } 623cdf0e10cSrcweir setNewerVersionExists(boolean exists)624cdf0e10cSrcweir public void setNewerVersionExists(boolean exists) { 625cdf0e10cSrcweir newerVersionExists = exists; 626cdf0e10cSrcweir } 627cdf0e10cSrcweir dontUpdate()628cdf0e10cSrcweir public boolean dontUpdate() { 629cdf0e10cSrcweir return dontUpdate; 630cdf0e10cSrcweir } 631cdf0e10cSrcweir setDontUpdate(boolean value)632cdf0e10cSrcweir public void setDontUpdate(boolean value) { 633cdf0e10cSrcweir dontUpdate = value; 634cdf0e10cSrcweir } 635cdf0e10cSrcweir hideEula()636cdf0e10cSrcweir public boolean hideEula() { 637cdf0e10cSrcweir return hideEula; 638cdf0e10cSrcweir } 639cdf0e10cSrcweir setHideEula(boolean value)640cdf0e10cSrcweir public void setHideEula(boolean value) { 641cdf0e10cSrcweir hideEula = value; 642cdf0e10cSrcweir } 643cdf0e10cSrcweir installedProductMinorSet()644cdf0e10cSrcweir public boolean installedProductMinorSet() { 645cdf0e10cSrcweir return installedProductMinorSet; 646cdf0e10cSrcweir } 647cdf0e10cSrcweir setInstalledProductMinorSet(boolean value)648cdf0e10cSrcweir public void setInstalledProductMinorSet(boolean value) { 649cdf0e10cSrcweir installedProductMinorSet = value; 650cdf0e10cSrcweir } 651cdf0e10cSrcweir debianInvestigated()652cdf0e10cSrcweir public boolean debianInvestigated() { 653cdf0e10cSrcweir return debianInvestigated; 654cdf0e10cSrcweir } 655cdf0e10cSrcweir setDebianInvestigated(boolean value)656cdf0e10cSrcweir public void setDebianInvestigated(boolean value) { 657cdf0e10cSrcweir debianInvestigated = value; 658cdf0e10cSrcweir } 659cdf0e10cSrcweir isDebianSystem()660cdf0e10cSrcweir public boolean isDebianSystem() { 661cdf0e10cSrcweir return isDebianSystem; 662cdf0e10cSrcweir } 663cdf0e10cSrcweir setIsDebianSystem(boolean value)664cdf0e10cSrcweir public void setIsDebianSystem(boolean value) { 665cdf0e10cSrcweir isDebianSystem = value; 666cdf0e10cSrcweir } 667cdf0e10cSrcweir isFirstPackage()668cdf0e10cSrcweir public boolean isFirstPackage() { 669cdf0e10cSrcweir return isFirstPackage; 670cdf0e10cSrcweir } 671cdf0e10cSrcweir setIsFirstPackage(boolean value)672cdf0e10cSrcweir public void setIsFirstPackage(boolean value) { 673cdf0e10cSrcweir isFirstPackage = value; 674cdf0e10cSrcweir } 675cdf0e10cSrcweir useForceDebian()676cdf0e10cSrcweir public boolean useForceDebian() { 677cdf0e10cSrcweir return useForceDebian; 678cdf0e10cSrcweir } 679cdf0e10cSrcweir setUseForceDebian(boolean value)680cdf0e10cSrcweir public void setUseForceDebian(boolean value) { 681cdf0e10cSrcweir useForceDebian = value; 682cdf0e10cSrcweir } 683cdf0e10cSrcweir databaseQueried()684cdf0e10cSrcweir public boolean databaseQueried() { 685cdf0e10cSrcweir return databaseQueried; 686cdf0e10cSrcweir } 687cdf0e10cSrcweir setDatabaseQueried(boolean value)688cdf0e10cSrcweir public void setDatabaseQueried(boolean value) { 689cdf0e10cSrcweir databaseQueried = value; 690cdf0e10cSrcweir } 691cdf0e10cSrcweir getUpdatePackage()692cdf0e10cSrcweir public PackageDescription getUpdatePackage() { 693cdf0e10cSrcweir return updatePackage; 694cdf0e10cSrcweir } 695cdf0e10cSrcweir setUpdatePackage(PackageDescription onePackage)696cdf0e10cSrcweir public void setUpdatePackage(PackageDescription onePackage) { 697cdf0e10cSrcweir updatePackage = onePackage; 698cdf0e10cSrcweir } 699cdf0e10cSrcweir getShellEnvironment()700cdf0e10cSrcweir public HashMap getShellEnvironment() { 701cdf0e10cSrcweir return shellEnvironment; 702cdf0e10cSrcweir } 703cdf0e10cSrcweir getDatabaseMap()704cdf0e10cSrcweir public HashMap getDatabaseMap() { 705cdf0e10cSrcweir return databaseMap; 706cdf0e10cSrcweir } 707cdf0e10cSrcweir setDatabaseMap(HashMap map)708cdf0e10cSrcweir public void setDatabaseMap(HashMap map) { 709cdf0e10cSrcweir databaseMap = map; 710cdf0e10cSrcweir } 711cdf0e10cSrcweir getRemoveFiles()712cdf0e10cSrcweir public Vector getRemoveFiles() { 713cdf0e10cSrcweir return removeFiles; 714cdf0e10cSrcweir } 715cdf0e10cSrcweir getInstallPackages()716cdf0e10cSrcweir public Vector getInstallPackages() { 717cdf0e10cSrcweir return installPackages; 718cdf0e10cSrcweir } 719cdf0e10cSrcweir setInstallPackages(Vector packages)720cdf0e10cSrcweir public void setInstallPackages(Vector packages) { 721cdf0e10cSrcweir installPackages = packages; 722cdf0e10cSrcweir } 723cdf0e10cSrcweir getOldPackages()724cdf0e10cSrcweir public Vector getOldPackages() { 725cdf0e10cSrcweir return oldPackages; 726cdf0e10cSrcweir } 727cdf0e10cSrcweir setOldPackages(Vector packages)728cdf0e10cSrcweir public void setOldPackages(Vector packages) { 729cdf0e10cSrcweir oldPackages = packages; 730cdf0e10cSrcweir } 731cdf0e10cSrcweir getSystemLanguages()732cdf0e10cSrcweir public Vector getSystemLanguages() { 733cdf0e10cSrcweir return systemLanguages; 734cdf0e10cSrcweir } 735cdf0e10cSrcweir setSystemLanguages(Vector languages)736cdf0e10cSrcweir public void setSystemLanguages(Vector languages) { 737cdf0e10cSrcweir systemLanguages = languages; 738cdf0e10cSrcweir } 739cdf0e10cSrcweir setShellEnvironment(HashMap environment)740cdf0e10cSrcweir public void setShellEnvironment(HashMap environment) { 741cdf0e10cSrcweir shellEnvironment = environment; 742cdf0e10cSrcweir } 743cdf0e10cSrcweir getJarFilePath()744cdf0e10cSrcweir public File getJarFilePath() { 745cdf0e10cSrcweir if ( jarFilePath == null ) { 746cdf0e10cSrcweir jarFilePath = SystemManager.getJarFilePath(); 747cdf0e10cSrcweir } 748cdf0e10cSrcweir return jarFilePath; 749cdf0e10cSrcweir } 750cdf0e10cSrcweir 751cdf0e10cSrcweir } 752