equal
deleted
inserted
replaced
1 @echo off |
1 @echo off |
2 rem Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 rem Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 rem All rights reserved. |
3 rem All rights reserved. |
4 rem This component and the accompanying materials are made available |
4 rem This component and the accompanying materials are made available |
5 rem under the terms of "Eclipse Public License v1.0" |
5 rem under the terms of "Eclipse Public License v1.0" |
6 rem which accompanies this distribution, and is available |
6 rem which accompanies this distribution, and is available |
7 rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 rem Description: |
14 rem Description: |
15 rem @internalComponent - Internal Symbian |
15 rem @internalComponent - Internal Symbian |
16 rem |
16 rem |
17 rem |
17 rem |
18 set nonnga=false |
18 set nonnga=false |
19 if not defined EPOC_INI set EPOC_INI=%EPOCROOT%epoc32\data\epoc.ini |
19 if not defined EPOC_INI set EPOC_INI=\epoc32\data\epoc.ini |
20 if /i "%2"=="nonnga" set nonnga=true |
20 if /i "%2"=="nonnga" set nonnga=true |
21 if /i "%3"=="nonnga" set nonnga=true |
21 if /i "%3"=="nonnga" set nonnga=true |
22 if "%nonnga%"=="true" echo Configuring for Non-NGA |
22 if "%nonnga%"=="true" echo Configuring for Non-NGA |
23 if /i "%1"=="uninstall" goto :uninstall |
23 if /i "%1"=="uninstall" goto :uninstall |
24 if /i "%2"=="changetracking" goto :install_changetracking |
24 if /i "%2"=="changetracking" goto :install_changetracking |
31 call :doinstall %EPOCROOT%epoc32\release\winscw\urel multiscreen %2 %3 |
31 call :doinstall %EPOCROOT%epoc32\release\winscw\urel multiscreen %2 %3 |
32 ) else ( |
32 ) else ( |
33 call :doinstall %EMULATOR_DATA_DIR% multiscreen %2 %3 |
33 call :doinstall %EMULATOR_DATA_DIR% multiscreen %2 %3 |
34 ) |
34 ) |
35 |
35 |
36 rem If EPOC.INI isn't already backed up then backup EPOC.INI to EPOC.INI.bak |
36 echo If EPOC.INI isn't already backuped then backup EPOC.INI to EPOC.INI.bak |
37 if not exist %EPOC_INI%.bak copy /y %EPOC_INI% %EPOC_INI%.bak |
37 if not exist %EPOC_INI%.bak copy /y %EPOC_INI% %EPOC_INI%.bak |
38 |
38 |
39 echo Editing EPOC.INI to use multiscreen. |
39 echo Editing EPOC.INI to use multiscreen. |
40 echo. >> %EPOC_INI% |
40 echo. >> %EPOC_INI% |
41 echo StartupMode ^7>> %EPOC_INI% |
41 echo StartupMode ^7>> %EPOC_INI% |
44 echo ScreenHeight 240 >> %EPOC_INI% |
44 echo ScreenHeight 240 >> %EPOC_INI% |
45 goto :EOF |
45 goto :EOF |
46 |
46 |
47 |
47 |
48 :doinstall |
48 :doinstall |
49 rem If WSINI.INI(s) aren't already backed up then backup WSINI.INI(s) |
49 rem If WSINI.INI(s) aren't already backuped then backup WSINI.INI(s) |
50 if not exist %1\z\system\data\wsini.bak if exist %1\z\system\data\wsini.ini copy /y %1\z\system\data\wsini.ini %1\z\system\data\wsini.bak >nul |
50 if not exist %1\z\system\data\wsini.bak if exist %1\z\system\data\wsini.ini copy /y %1\z\system\data\wsini.ini %1\z\system\data\wsini.bak >nul |
51 if not exist %1\z\resource\data\wsini.bak if exist %1\z\resource\data\wsini.ini copy /y %1\z\resource\data\wsini.ini %1\z\resource\data\wsini.bak >nul |
51 if not exist %1\z\resource\data\wsini.bak if exist %1\z\resource\data\wsini.ini copy /y %1\z\resource\data\wsini.ini %1\z\resource\data\wsini.bak >nul |
52 |
52 |
53 rem Back up ECONS.DLL |
53 rem Back up ECONS.DLL |
54 if exist %1\econs.dll copy /y %1\econs.dll %1\econs-temp.dll |
54 if exist %1\econs.dll copy /y %1\econs.dll %1\econs-temp.dll |
82 call :doinstall_changetracking %EPOCROOT%epoc32\release\winscw\urel multiscreen %2 %3 |
82 call :doinstall_changetracking %EPOCROOT%epoc32\release\winscw\urel multiscreen %2 %3 |
83 ) else ( |
83 ) else ( |
84 call :doinstall_changetracking %EMULATOR_DATA_DIR% multiscreen %2 %3 |
84 call :doinstall_changetracking %EMULATOR_DATA_DIR% multiscreen %2 %3 |
85 ) |
85 ) |
86 |
86 |
87 rem If EPOC.INI isn't already backed up then backup EPOC.INI to EPOC.INI.bak |
87 echo If EPOC.INI isn't already backuped then backup EPOC.INI to EPOC.INI.bak |
88 if not exist %EPOC_INI%.bak copy /y %EPOC_INI% %EPOC_INI%.bak >nul |
88 if not exist %EPOC_INI%.bak copy /y %EPOC_INI% %EPOC_INI%.bak >nul |
89 |
89 |
90 echo Editing EPOC.INI to use multiscreen. |
90 echo Editing EPOC.INI to use multiscreen. |
91 echo. >> %EPOC_INI% |
91 echo. >> %EPOC_INI% |
92 echo StartupMode ^7>> %EPOC_INI% |
92 echo StartupMode ^7>> %EPOC_INI% |
126 call :douninstall %EPOCROOT%epoc32\release\winscw\urel |
126 call :douninstall %EPOCROOT%epoc32\release\winscw\urel |
127 ) else ( |
127 ) else ( |
128 call :douninstall %EMULATOR_DATA_DIR% |
128 call :douninstall %EMULATOR_DATA_DIR% |
129 ) |
129 ) |
130 |
130 |
131 rem If EPOC.INI was already backed up then restore EPOC.INI from EPOC.INI.bak |
131 echo If EPOC.INI was already backuped then restore EPOC.INI from EPOC.INI.bak |
132 if exist %EPOC_INI%.bak ( |
132 if exist %EPOC_INI%.bak ( |
133 echo Restoring EPOC.INI from backup |
133 echo Restore EPOC.INI from backup |
134 copy /y %EPOC_INI%.bak %EPOC_INI% >nul |
134 copy /y %EPOC_INI%.bak %EPOC_INI% >nul |
135 del /f /q %EPOC_INI%.bak >nul |
135 del /f /q %EPOC_INI%.bak >nul |
136 ) |
136 ) |
137 goto :EOF |
137 goto :EOF |
138 |
138 |
139 |
139 |
140 :douninstall |
140 :douninstall |
141 |
141 |
142 rem If WSINI.INI(s) were already backed up then restore WSINI.INI |
142 rem If WSINI.INI(s) were already backuped then restore WSINI.INI |
143 if exist %1\z\system\data\wsini.bak ( |
143 if exist %1\z\system\data\wsini.bak ( |
144 copy /y %1\z\system\data\wsini.bak %1\z\system\data\wsini.ini >nul |
144 copy /y %1\z\system\data\wsini.bak %1\z\system\data\wsini.ini >nul |
145 del /f /q %1\z\system\data\wsini.bak >nul |
145 del /f /q %1\z\system\data\wsini.bak >nul |
146 ) |
146 ) |
147 if exist %1\z\resource\data\wsini.bak ( |
147 if exist %1\z\resource\data\wsini.bak ( |