×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Location
    India
    Posts
    172

    Question Renaming Application Executable

    Hi All,

    I have seen an advisory from one of the Test Houses, that recommends renaming the application executable file from
    Application.exe
    to
    Application_[UID3].exe
    , to avoid namespace conflicts. I tried this out by making changes in the MMP file, an exe was created as required, after compilation and building the project. A SIS file was created and signed and was installed on the device, an application icon was seen in the Installations/Applications folder, but, when clicked the application failed to launch. Please help.

    Thanks,
    Shanker

  2. #2
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    Re: Renaming Application Executable

    Hello,
    you are right
    Application_[UID3].exe , is the best solution

    You said that you changed name in mmp.

    You can leave mmp as it is and change in pkg names of files loaded to mobile as follows:
    Code:
    $(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\Application.exe"		-"!:\sys\bin\Application_UID3.exe"
    Don t forget to change all loaded files (not only exe one).
    You will have to change also all path to thoes resources in your project.

    Good luck

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Renaming Application Executable

    It is also recommended to use _[UID] for reg.rss, rss, .hlp.hrh etc i think it should
    Code:
    (PLATFORM)\$(TARGET)\Application_UID3.exe"		-"!:\sys\bin\Application_UID3.exe"
    Regards,
    Sriky

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

    Re: Renaming Application Executable

    It is not that easy starting from Symbian 9: the _reg.rss explicitly refers the executable (app_file), thus it has to be modified. However that modification will prevent your application from running in the emulator.

  5. #5
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Renaming Application Executable

    Quote Originally Posted by wizard_hu_ View Post
    However that modification will prevent your application from running in the emulator.
    wizard_hu_, what is this all about?
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

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

    Re: Renaming Application Executable

    Quote Originally Posted by ltomuta View Post
    wizard_hu_, what is this all about?
    Ok, that was a bit compressed.
    So, in case of Symbian 6-7-8 it was OK to do renaming in the .pkg file,
    Code:
    "Test.app"-"!:\system\apps\Test\Test.app"
    "Test.rsc"-"!:\system\apps\Test\Test.rsc"
    could be simply modified to
    Code:
    "Test.app"-"!:\system\apps\Test_1234\Test_1234.app"
    "Test.rsc"-"!:\system\apps\Test_1234\Test_1234.rsc"
    and it would work without any problems.

    However in Symbian 9 modifying
    Code:
    "Test.exe"-"!:\sys\bin\Test.exe"
    "Test.rsc"-"!:\resource\apps\Test.rsc"
    "Test_reg.rsc-"!:\private\10003a3f\import\apps\Test_reg.rsc"
    to
    Code:
    "Test.exe"-"!:\sys\bin\Test_1234.exe"
    "Test.rsc"-"!:\resource\apps\Test_1234.rsc"
    "Test_reg.rsc-"!:\private\10003a3f\import\apps\Test_1234_reg.rsc"
    is not enough, app_file in _reg.rss has to be modified to Test_1234 too. However after this modification if you rebuild the project to the emulator it will not run, since TARGET in the .mmp is still Test.exe.

    Of course this difficulty can be eliminated via a number of ways (some project already take care of putting the _reg.rsc into different locations for different builds, that can be extended to use different sources), just it is there.

  7. #7
    Registered User
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102

    Re: Renaming Application Executable

    what kind of error message popped when you failed to launch
    ?
    --------------------------------------------------------
    Ling

Similar Threads

  1. AutoStart My application at bootup
    By prakashs in forum Symbian
    Replies: 7
    Last Post: 2009-03-24, 10:06
  2. Updating an application
    By Alfury in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2008-04-08, 16:56
  3. Problems with a signed application
    By Alfury in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2008-03-27, 05:15
  4. 3250: Too many SMSs received crash the application
    By kewldeep in forum Mobile Java General
    Replies: 4
    Last Post: 2007-01-27, 00:00
  5. Replies: 0
    Last Post: 2005-05-28, 10:20

Posting Permissions

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