×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    135

    rename application

    hi,
    how can i rename the application

    suppose i have made a application by name 'helloworld'
    but it was decided later, that the name of the application should be say 'sayhello'.

    now what can be done, have i to change names of all .cpp, .h, procedures etc.

    or there is some shotcut way round.

    thanks

  2. #2
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: rename application

    hi,
    if you need to just change the app name for emulator,

    just change the name in mmp file like helloworld.app as sayhello.app

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    45

    Re: rename application

    Quote Originally Posted by sunny_singh View Post
    hi,
    how can i rename the application

    suppose i have made a application by name 'helloworld'
    but it was decided later, that the name of the application should be say 'sayhello'.

    now what can be done, have i to change names of all .cpp, .h, procedures etc.

    or there is some shotcut way round.

    thanks
    I wanted this too.. Is this possible?? Any Shortcuts?

    Sunny

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: rename application

    It depends:
    - if you use LOCALISABLE_APP_INFO resource, it is enough to modify short_caption and caption
    - if you do not use LOCALISABLE_APP_INFO, you have to modify TARGET in the .mmp, name of .rss files (and their reference in the .mmp), app_name in _reg.rss, and the same things in the .pkg.

  5. #5
    Registered User
    Join Date
    Aug 2007
    Posts
    74

    Re: rename application

    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

  6. #6
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    Re: rename application

    any one know how to do this for a dll?
    i changed the name in mmp but it just not work, the .lib file generated is of the old name. please tell me where to change it

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: rename application

    Quote Originally Posted by SHADDY View Post
    any one know how to do this for a dll?
    i changed the name in mmp but it just not work, the .lib file generated is of the old name. please tell me where to change it
    you have to freeze and un-freeze the project to get the DLL and lib aggain. if you still have problem post your mmp file

Similar Threads

  1. Auto Start of the application
    By S.S.Sudhakar in forum Symbian
    Replies: 19
    Last Post: 2008-09-25, 02:16
  2. Replies: 3
    Last Post: 2005-09-16, 03:37
  3. Where is the installed application located??
    By vardhman in forum Symbian
    Replies: 9
    Last Post: 2004-10-03, 13:35
  4. Memory Full Error on Nokia6600 running MIDlet Application
    By tbechnati in forum Mobile Java General
    Replies: 0
    Last Post: 2004-05-02, 14:19
  5. Questions about Dialing from an application
    By rkuppala in forum Symbian
    Replies: 2
    Last Post: 2003-11-10, 17:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×