Hi,
Here is the procedure to change application name.
1. In .mmp file
Change TARGET from OldAppName.exe to NewAppName.exe
START RESOURCE AppName.rss
HEADER
//TARGET AppName_0xE9950119 // Change to NewAppName
TARGETPATH resource/apps
END //RESOURCE
START RESOURCE AppName_reg.rss
TARGET AppName_0xE9950119_reg // Change to NewAppName_reg
TARGETPATH /private/10003a3f/apps
END //RESOURCE
2. In OldAppName.rss
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
{
short_caption = “OldAppName”; // change to NewAppName
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = “OldAppName”; // change to NewAppName
number_of_icons = 1;
icon_file = "//resource//apps//OldAppName.mif"; // NewAppName.mif
};
}
3. In Icons_scalable_dc.mk
ICONTARGETFILENAME=$(TARGETDIR)/OldAppName.mif // NewAppName.mif
4. In OldAppName_reg.rss file
#include <OldAppName.rsg> // NewAppName.rsg
UID2 KUidAppRegistrationResourceFile
UID3 _UID3
RESOURCE APP_REGISTRATION_INFO
{
app_file="OldAppName"; // NewAppName
localisable_resource_file = "//resource//apps//OldAppName"; // NewAppName
localisable_resource_id = R_LOCALISABLE_APP_INFO;
embeddability=KAppNotEmbeddable;
newfile=KAppDoesNotSupportNewFile;
}
5. In COldAppNameAppUi
Change this line where ever you find in your project
#include <OldAppName.rsg> // NewAppName.rsg
6. In .sis file
; standard SIS file header
#{"OldAppName"},(0xE9950119),1,0,0
// NewAppName
"$(EPOCROOT)Epoc32/release/$(PLATFORM)/$(TARGET)/OldAppName.exe" -"!:/sys/bin/OldAppName.exe"
// Change to NewAppName.exe
"$(EPOCROOT)Epoc32/data/z/resource/apps/OldAppName.rsc" -"!:/resource/apps/OldAppName.rsc"
//Change to NewAppName.rsc
"$(EPOCROOT)Epoc32/data/z/private/10003a3f/apps/OldAppName_reg.rsc" -"!:/private/10003a3f/import/apps/OldAppName_reg.rsc"
// NewAppName_reg.rsc
"$(EPOCROOT)Epoc32/data/z/resource/apps/OldAppName.mif" -"!:/resource/apps/ OldAppName.mif"
// NewAppName.mif
"../help/AppName_0xE9950119.hlp" -"!:/resource/help/AppName_0xE9950119.hlp"
7. In build_help.mk
MAKMAKE :Old AppName.hlp # change to NewAppName.hlp
AppName_0xE9950119.hlp : AppName.xml AppName.cshlp Custom.xml # change to NewAppName.hlp
cshlpcmp AppName.cshlp
ifeq (WINS,$(findstring WINS, $(PLATFORM)))
copy AppName_0xE9950119.hlp $(EPOCROOT)epoc32/$(PLATFORM)/c/resource/help
# change to NewAppName.hlp
endif
BLD : do_nothing
CLEAN :
del AppName_0xE9950119.hlp # change to NewAppName.hlp
del AppName_0xE9950119.hlp.hrh # Change to NewAppName.hlp.hrh
LIB : do_nothing
CLEANLIB : do_nothing
RESOURCE : do_nothing
FREEZE : do_nothing
SAVESPACE : do_nothing
RELEASABLES :
@echo AppName_0xE9950119.hlp # Change to NewAppName.hlp
FINAL : do_nothing
8. In OldAppName.cshlp
<?xml version="1.0"?>
<!DOCTYPE cshproj SYSTEM "/epoc32/tools/cshlpcmp/dtd/cshproj.dtd">
<?xml:stylesheet href="/epoc32/tools/cshlpcmp/xsl/CSHproj.xsl" title="CS-Help project" type="text/xsl"?>
<cshproj>
<helpfileUID>0xE9950119</helpfileUID>
<directories>
<input></input>
<output></output>
<graphics></graphics>
<working>temp/</working>
</directories>
<files>
<source>
<xmlfile>AppName.xml</xmlfile>
</source>
<destination> AppName.hlp</destination> // Change to NewAppName.hlp
<customization>custom.xml</customization>
</files>
</cshproj>
9. In OldAppName.xml
<?xml version="1.0"?>
<!DOCTYPE asptml SYSTEM "/epoc32/tools/cshlpcmp/dtd/asptml.dtd">
<?xml:stylesheet href="/epoc32/tools/cshlpcmp/xsl/asptml.xsl" title="asptml" type="text/xsl"?>
<asptml>
<uid value="0xE9950119"/>
<topic><category>AppName</category><topictitle>General Information</topictitle>
<synonyms>General Information</synonyms>
<context contextUID="General_Information"/>
<index>General Information</index>
<p>Insert your help here.</p>
<p></p>
</topic>
</asptml>
// Change to NewAppName
Rename Application
最新推荐文章于 2021-03-09 18:08:07 发布