Under CE 4.2, we copied %_publicroot%\IABASE\OAK\MISC\cesysgen.bat
to %_projectroot%\OAK\MISC and modified this one rule:

if "%SYSGEN_BATTERY%"=="1" set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS%
power
to
REM if "%SYSGEN_BATTERY%"=="1" set
CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS% power

This removed the standard power applet from the cplmain.cpl.

Under CE 5.0, this code is no more found in cesysgen.bat, but in
wceshellfe.bat. Copying this file to my project directory and modifying
the same line did not work.

Does PB 'know' it has to read this batch file in my project directory?

Re: Modify control panel ( CPLMAIN_COMPONENTS cesysgen wceshellfe ) by Pretissimo2002

Pretissimo2002
Tue Oct 04 01:55:51 CDT 2005

Okay, I will pose this question in a different way:

under CE 5.0, how can I remove one of the applets in the main control
panel, without cloning its code?

Thanks,
Wesley


Re: Modify control panel ( CPLMAIN_COMPONENTS cesysgen wceshellfe ) by Bruce

Bruce
Tue Oct 04 06:31:15 CDT 2005

In CE 5.0, you have a cesysgen.bat file, but it calls on other shared bat
files to do the work. You can modify CPLMAIN_COMPONENTS *after* those bat
files have run in your cesysgen.bat.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"Pretissimo2002" <pretissimo2002@yahoo.fr> wrote in message
news:1128408951.589092.31280@g14g2000cwa.googlegroups.com...
> Okay, I will pose this question in a different way:
>
> under CE 5.0, how can I remove one of the applets in the main control
> panel, without cloning its code?
>
> Thanks,
> Wesley
>



Re: Modify control panel ( CPLMAIN_COMPONENTS cesysgen wceshellfe ) by Pretissimo2002

Pretissimo2002
Mon Oct 24 01:54:38 CDT 2005

> In CE 5.0, you have a cesysgen.bat file, but it calls on other shared bat
> files to do the work. You can modify CPLMAIN_COMPONENTS *after* those bat
> files have run in your cesysgen.bat.

Thanks alot; following did the trick in cesysgen.bat:

@echo off
call %_PUBLICROOT%\cebase\oak\misc\cesysgen.bat %*

@REM
@REM
@REM BEGIN Modifications
@REM
@REM


@REM
@REM Modify control panel (remove power applet)
@REM

set CPLMAIN_COMPONENTS=
if not "%SYSGEN_CTLPNL%"=="1" goto noCtlPnl
set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS% network datetime keyboard
password owner system display pointercmn mouse
if "%SYSGEN_AS_BASE%"=="1" set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS%
comm
@REM if "%SYSGEN_BATTERY%"=="1" set
CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS% power
if "%SYSGEN_WCELOAD%"=="1" set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS%
remove
set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS% backlight
if not "%SYSGEN_PPC%"=="1" if not "%__SYSGEN_TPC%"=="1" set
CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS% colorscheme
if "%SYSGEN_ACCESSIB%"=="1" set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS%
accessib
if "%SYSGEN_AUDIO%"=="1" set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS%
sounds
if "%SYSGEN_MODEM%"=="1" set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS%
dialing
if "%SYSGEN_SOFTKB%"=="1" set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS%
sip
if "%__SYSGEN_TOUCH_CURSOR%"=="1" set
CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS% stylus
if "%SYSGEN_CERTS%"=="1" set CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS%
certs
if "%__SYSGEN_BTH%"=="1" set WCESHELLFE_MODULES=%WCESHELLFE_MODULES%
bthpnl

@REM echo CPLMAIN_COMPONENTS=%CPLMAIN_COMPONENTS%
:noCtlPnl

@REM
@REM
@REM END Modifications
@REM
@REM
goto :EOF