×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    371

    Thumbs up install the application only in phone memory

    Hi,
    While installing my application i want to install only in phone memory.Is there any options where i can block the memory card options while installing?Please tel me .

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,560

    Re: install the application only in phone memory

    Change the target location in the .pkg file for your app to refer to the C-drive explicitely, instead of using '!' which prompts the user where to install the app.

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: install the application only in phone memory

    Well, you can hard code destination path to have C: in your .pkg file.

    Code:
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\YourExe.exe"		-"C:\sys\bin\YourExe.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\YourExe.rsc"		-"C:\resource\apps\YourExe.rsc"
    ....
    ....
    ...
    I am afraid you can get rid of that memory selection dialog in the installation process but by hard coding the paths as shown above, it will install in the C: drive regardless of the drive you select.
    Nokia Developer Wiki Moderation team

  4. #4
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    371

    Re: install the application only in phone memory

    Have i to change every where..
    I had changed in following lines.
    "$(EPOCROOT)Epoc32\data\z\resource\apps\appname.r01" -"C:\resource\apps\appname.r01"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\appname_reg.r01" -"C:\private\10003a3f\import\apps\appname_reg.r01"
    "$(EPOCROOT)epoc32\data\z\resource\apps\appname_aif.mif" -"C:\resource\apps\appname_aif.mif"
    "$(EPOCROOT)epoc32\data\z\resource\apps\appname.mbm" -"C:\resource\apps\appname.mbm"
    ; Add any installation notes if applicable
    ;"appname.txt" -"C:\private\0x2003246A\appname.txt"
    "$(EPOCROOT)Epoc32\data\2003246A.R01" -"C:\private\101f875a\import\[2003246A].rsc"
    it is giving error as:
    ERROR: Target type "EXEV" not supported

    can u tel me where i had goone wrong?

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: install the application only in phone memory

    Yes, you need to prefix all the destination path to C:. Show your complete .pkg file and .mmp file as well.
    Nokia Developer Wiki Moderation team

  6. #6
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    371

    Re: install the application only in phone memory

    Hi,
    ya still it is asking me options for installation.please tel me where i had gone wrong?

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: install the application only in phone memory

    Quote Originally Posted by prathi View Post
    Hi,
    ya still it is asking me options for installation.please tel me where i had gone wrong?
    Please carefully read the reply given to you.

    Quote Originally Posted by kiran10182 View Post
    I am afraid you can get rid of that memory selection dialog in the installation process but by hard coding the paths as shown above, it will install in the C: drive regardless of the drive you select.
    Nokia Developer Wiki Moderation team

  8. #8
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    371

    Re: install the application only in phone memory

    my .pkg file is:
    ; appname.pkg
    ; This is an auto-generated PKG file by Carbide.
    ; This file uses variables specific to Carbide builds that will not work
    ; on command-line builds. If you want to use this generated PKG file from the
    ; command-line tools you will need to modify the variables with the appropriate
    ; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
    ; Also, the resource file entries should be changed to match the language
    ; used in the build. For example, if building for LANGUAGE_01, change the file
    ; extensions .rsc to .r01.
    ;
    ;Language - standard language definitions
    &EN

    ; standard SIS file header
    #{"appname"},(0x2003246A),1,1,0

    ;Localised Vendor name
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"Vendor"

    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    ;Files to install
    @"xml_binding\XmlDataBinding.sis",(0x101F978E)
    ;You should change the source paths to match that of your environment
    ;<source> <destination>

    "$(EPOCROOT)Epoc32\data\z\resource\apps\appname.r01" -"!:\resource\apps\appname.r01"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\appname_reg.r01" -"!:\private\10003a3f\import\apps\appname_reg.r01"
    "$(EPOCROOT)epoc32\data\z\resource\apps\appname_aif.mif" -"!:\resource\apps\appname_aif.mif"
    "$(EPOCROOT)epoc32\data\z\resource\apps\appname.mbm" -"!:\resource\apps\appname.mbm"
    ; Add any installation notes if applicable
    ;"appname.txt" -"!:\private\0x2003246A\appname.txt"
    "$(EPOCROOT)Epoc32\data\2003246A.R01" -"C:\private\101f875a\import\[2003246A].rsc"
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\appname.exe" -"C:\sys\bin\appname.exe",FR,RI



    my mmp file is:
    TARGET appname.exe
    UID 0x100039CE 0x2003246A
    VENDORID 0
    SECUREID 0x2003246A
    TARGETTYPE exe
    EPOCSTACKSIZE 0x5000

    SYSTEMINCLUDE \epoc32\include
    SYSTEMINCLUDE \epoc32\include\variant
    SYSTEMINCLUDE \epoc32\include\ecom
    SYSTEMINCLUDE \epoc32\include\xmldatabinding
    SYSTEMINCLUDE \epoc32\include\libc

    USERINCLUDE ..\inc ..\data
    USERINCLUDE ..\CallMonitor
    USERINCLUDE ..\MessageMonitor
    USERINCLUDE ..\FileSystemMonitor
    USERINCLUDE ..\Logger
    USERINCLUDE ..\DataBaseFiles
    USERINCLUDE ..\LocationMonitor
    USERINCLUDE ..\DeviceInfo

    START RESOURCE ..\DATA\2003246A.rss
    END
    SOURCEPATH ..\data
    START RESOURCE appname.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE

    START RESOURCE appname_reg.rss
    TARGETPATH \private\10003a3f\apps
    END //RESOURCE

    LIBRARY euser.lib apparc.lib cone.lib eikcore.lib avkon.lib
    LIBRARY commonengine.lib efsrv.lib estor.lib eikcoctl.lib eikdlg.lib
    LIBRARY eikctl.lib bafl.lib fbscli.lib aknnotify.lib aknicon.lib
    LIBRARY etext.lib gdi.lib egul.lib insock.lib
    LIBRARY ecom.lib InetProtUtil.lib http.lib esock.lib
    LIBRARY platformenv.lib Phoneclient.lib etel3rdparty.lib
    LIBRARY gsmu.lib msgs.lib mtur.lib smcm.lib fontutils.lib uiklaf.lib random.lib
    LIBRARY senxml.lib sendas2.lib senservdesc.lib senservmgr.lib senutils.lib
    LIBRARY XmlDataBinding.lib senservconn.lib edbms.lib
    LIBRARY imcm.lib apgrfx.lib lbs.lib featdiscovery.lib apmime.lib centralrepository.lib // For SMS Sending

    LANG 01

    START BITMAP appname.mbm
    HEADER
    TARGETPATH \resource\apps
    SOURCEPATH ..\gfx
    SOURCE c12,1 list_icon.bmp list_icon_mask.bmp
    SOURCE c24 icon1.bmp
    END

    SOURCEPATH ..\src


    SOURCE appnameContainerView.cpp appnameContainer.cpp appnameAppUi.cpp appnameDocument.cpp appnameApplication.cpp appnameClient.cpp appnameServiceData.cpp

    CAPABILITY CommDD LocalServices Location MultimediaDD NetworkControl NetworkServices PowerMgmt ReadDeviceData ReadUserData SurroundingsDD SwEvent TrustedUI UserEnvironment WriteDeviceData WriteUserData

    SOURCEPATH ..\Logger
    SOURCE FileLogger.cpp

    SOURCEPATH ..\DataBaseFiles
    SOURCE ActivationDetailsDB.cpp LocationDB.cpp

    SOURCEPATH ..\DeviceInfo
    SOURCE DevInfoUtility.cpp

    SOURCEPATH ..\CallMonitor
    SOURCE CallMonitor.cpp

    SOURCEPATH ..\MessageMonitor
    SOURCE SMSExampleMtmsEngine.cpp SmsEngine.cpp

    SOURCEPATH ..\LocationMonitor
    SOURCE GPSLocationDetails.cpp GpsPositionRequest.cpp


    SOURCEPATH ..\src
    SOURCE WebClientEngine.cpp appname_SplashView.cpp appname_Splash.cpp
    SOURCEPATH ..\FileSystemMonitor
    SOURCE DirectoryMonitor.cpp

    EPOCHEAPSIZE 0x300000 0x500000

    SOURCEPATH ..\src
    SOURCE Service.cpp ServiceTypes.cpp

    can u tel me now?

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: install the application only in phone memory

    Quote Originally Posted by prathi View Post
    it is giving error as:
    ERROR: Target type "EXEV" not supported

    can u tel me where i had goone wrong?
    TARGETTYPE is a keyword in the .mmp file. You should not have edited it, since this thread is about the .pkg file. Anyway, remove the V and it will work.
    Quote Originally Posted by prathi View Post
    ya still it is asking me options for installation.please tel me where i had gone wrong?
    Because the error caused to abort the build process, and you are installing the same .sisx file which you have created with the !:\ paths.

    EDIT: your .pkg is still full of !:\, that is why you are getting the question.

  10. #10
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    371

    Re: install the application only in phone memory

    I want to install only in phone memory not in memory card so.because any body can remove the memory card.I want to run my application always so.

  11. #11
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: install the application only in phone memory

    Quote Originally Posted by prathi View Post
    ...
    ;<source> <destination>

    "$(EPOCROOT)Epoc32\data\z\resource\apps\appname.r01" -"!:\resource\apps\appname.r01"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\appname_reg.r01" -"!:\private\10003a3f\import\apps\appname_reg.r01"
    "$(EPOCROOT)epoc32\data\z\resource\apps\appname_aif.mif" -"!:\resource\apps\appname_aif.mif"
    "$(EPOCROOT)epoc32\data\z\resource\apps\appname.mbm" -"!:\resource\apps\appname.mbm"
    ; Add any installation notes if applicable
    ;"appname.txt" -"!:\private\0x2003246A\appname.txt"
    "$(EPOCROOT)Epoc32\data\2003246A.R01" -"C:\private\101f875a\import\[2003246A].rsc"
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\appname.exe" -"C:\sys\bin\appname.exe",FR,RI
    Change all the destination paths to have C: as prefix. I guess I already told this twice before.

    Quote Originally Posted by prathi View Post
    CAPABILITY CommDD LocalServices Location MultimediaDD NetworkControl NetworkServices PowerMgmt ReadDeviceData ReadUserData SurroundingsDD SwEvent TrustedUI UserEnvironment WriteDeviceData WriteUserData
    Apart from the original question, are you sure that you require all of these capabilities?
    Nokia Developer Wiki Moderation team

  12. #12
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,539

    Re: install the application only in phone memory

    Quote Originally Posted by prathi View Post
    my .pkg file is:
    ;<source> <destination>

    "$(EPOCROOT)Epoc32\data\z\resource\apps\appname.r01" -"!:\resource\apps\appname.r01"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\appname_reg.r01" -"!:\private\10003a3f\import\apps\appname_reg.r01"
    "$(EPOCROOT)epoc32\data\z\resource\apps\appname_aif.mif" -"!:\resource\apps\appname_aif.mif"
    "$(EPOCROOT)epoc32\data\z\resource\apps\appname.mbm" -"!:\resource\apps\appname.mbm"
    ; Add any installation notes if applicable
    ;"appname.txt" -"!:\private\0x2003246A\appname.txt"
    "$(EPOCROOT)Epoc32\data\2003246A.R01" -"C:\private\101f875a\import\[2003246A].rsc"
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\appname.exe" -"C:\sys\bin\appname.exe",FR,RI
    Did you notice that you still have the path not hard-coded to install in C as told repeatidly by Kiran?
    Change that and you should do well

    Edit : Kiran already posted again with his suggestion(My browser remained open for too long I guess!!)

  13. #13
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: install the application only in phone memory

    In your .pkg file you still have !: replace that with c:

  14. #14
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: install the application only in phone memory

    Quote Originally Posted by wizard_hu_ View Post
    EDIT: your .pkg is still full of !:\, that is why you are getting the question.
    Quote Originally Posted by kiran10182 View Post
    Change all the destination paths to have C: as prefix. I guess I already told this twice before.
    Quote Originally Posted by Symbian_Neil View Post
    Did you notice that you still have the path not hard-coded to install in C as told repeatidly by Kiran?
    Quote Originally Posted by kamalakshan View Post
    In your .pkg file you still have !: replace that with c:
    I wonder, how Prathi could not notice that!
    Nokia Developer Wiki Moderation team

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: install the application only in phone memory

    Quote Originally Posted by kiran10182 View Post
    I wonder, how Prathi could not notice that!
    That is easy: he read your answer in #3, and modified the .exe-line, and some .rsc line below it, then considered it done.

Similar Threads

  1. Replies: 7
    Last Post: 2010-01-20, 19:04
  2. How to detect an Application install in external memory
    By waqas.anwer in forum Mobile Java General
    Replies: 5
    Last Post: 2009-06-29, 13:35
  3. Replies: 2
    Last Post: 2008-02-13, 11:55
  4. Replies: 2
    Last Post: 2007-06-12, 13:00
  5. How to install an application on the phone?
    By rkuppala in forum Symbian
    Replies: 8
    Last Post: 2003-06-23, 17:50

Posting Permissions

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