Secifically, I need to remove
..\cesysgen\oak\files\directx.bib(159): ceplayer.lnk
$(_FLATRELEASEDIR)\ceplayer.lnk NK SH
..\cesysgen\oak\files\ie.bib(110): iesample.lnk
$(_FLATRELEASEDIR)\iesample.lnk NK SH
from there respective files, and also remove the associated .DAT file
entries
..\cesysgen\oak\files\directx.dat(16):Directory("\Windows\LOC_DESKTOP_DIR"):-File("Media
Player.lnk", "\Windows\ceplayer.lnk")
..\cesysgen\oak\files\directx.dat(17):Directory("\Windows\LOC_PROGRAMS_DIR"):-File("Media
Player.lnk", "\Windows\ceplayer.lnk")
in my Windows CE 5.0 x86 platform.
Previous explanation (comment out the lines):
http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/524b4968c7baaa97/620ca4cd2ae4125d%23620ca4cd2ae4125d
Newsgroups: microsoft.public.windowsce.platbuilder
From: "Krishna.R" <rkrishn...@yahoo.com>
Date: Wed, 5 Mar 2003 00:54:07 -0800
Subject: Re: removing shortcuts from CE screen
-Dan.
On Jan 24, 12:05 pm, "John S." <john.spr...@apisoftwareinc.com> wrote:
> A previous thread explained how to modify common .BIB files to remove
> desktop shortcuts. I'm more interested a modification that doesn't
> affect every single platform. Is there a way to remove an entry from a
> platform-level .BIB file in a using a project-level .BIB file or
> through some other means?
>
> Secifically, I need to remove
>
> ..\cesysgen\oak\files\directx.bib(159): ceplayer.lnk
> $(_FLATRELEASEDIR)\ceplayer.lnk NK SH
> ..\cesysgen\oak\files\ie.bib(110): iesample.lnk
> $(_FLATRELEASEDIR)\iesample.lnk NK SH
>
> from there respective files, and also remove the associated .DAT file
> entries
>
> ..\cesysgen\oak\files\directx.dat(16):Directory("\Windows\LOC_DESKTOP_DIR"):-File("Media
> Player.lnk", "\Windows\ceplayer.lnk")
> ..\cesysgen\oak\files\directx.dat(17):Directory("\Windows\LOC_PROGRAMS_DIR"):-File("Media
> Player.lnk", "\Windows\ceplayer.lnk")
>
> in my Windows CE 5.0 x86 platform.
>
> Previous explanation (comment out the lines):http://groups.google.com/group/microsoft.public.windowsce.platbuilder...
After reading an incredibly detailed walkthrough on how to replace a
function in coredll.dll
(http://blogs.msdn.com/ce_base/archive/2007/01/15/replacing-a-coredll-component-in-yamazaki.aspx)
I guess my expectations were a little higher than 'modify/copy public
files or do something in premakeimg.bat'. It's amazing to me that this
is still such a hassle!
@ECHO OFF
REM Does not support spaces in any path or file names
SET REMOVEFILES="iesample.lnk" "ceplayer.lnk"
IF EXIST "%1" GOTO CHECK
CD %_FLATRELEASEDIR%
FOR %%I IN (*.BIB *.DAT) DO CALL %0 %%I
GOTO END
:CHECK
FOR %%I IN (%REMOVEFILES%) DO FIND /C "%%~I" %1 && IF NOT ERRORLEVEL 1
GOTO REMOVE
GOTO END
:REMOVE
COPY /Y %1 %1.premakeimg
MOVE /Y %1 %1.premakeimgtmp
FOR %%I IN (%REMOVEFILES%) DO FIND /V "%%~I" < %1.premakeimgtmp > %1 &&
COPY /Y %1 %1.premakeimgtmp
DEL %1.premakeimgtmp
:END
On Jan 24, 12:40 pm, "Dan McCarty" <dmcca...@gmail.com> wrote:
> > Subject: Re: removing shortcuts from CE screen- Hide quoted text -- Show quoted text -
Just before romimage is called in CE5.0, the build system has combined
all of the .bib information into a single file ce.bib in the flat
release directory. You can pre-process this file prior to running
romimage if you add a PreRomImage.bat file into your FILES directory.
We use this method to move some DLLs into the files section at the end
of the bib file:
@echo off
echo PreRomImage.bat entry.
pushd %_FLATRELEASEDIR%
echo Moving net components to the file regions
findstr /I "mbridge.dll ipnat.dll fw6.dll tcpstk.dll cxport.dll
ndis.dll ar5210.dll aumac.dll vmini.dll" ce.bib > ce_net.bib
findstr /I /v "mbridge.dll ipnat.dll fw6.dll tcpstk.dll cxport.dll
ndis.dll ar5210.dll aumac.dll vmini.dll" ce.bib > ce_nonet.bib
copy /A ce_nonet.bib+ce_net.bib ce.bib
popd
echo PreRomImage.bat exit.
@echo on
Regards,
Andrew.
On Jan 24, 10:51 pm, "John S." <john.spr...@apisoftwareinc.com> wrote:
> In the spirit of Dan having had his coffee this morning, here is the
> PREMAKEIMG.BAT that solved my problem:
> (Seehttp://msdn2.microsoft.com/en-us/library/ms900321.aspxfor more
> > > Subject: Re: removing shortcuts from CE screen- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -
Hmmm...smells like an old (uncaffeinated) post. ;-)
BTW, you *can* use some project.bib registry keys to remove the "my
computer" and "recycle bin" desktop icons; unfortunately, the same
trick doesn't work for the icons you wanted to get rid of.
-Dan.