×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    4

    Could not prevent app deployment on specific Nokia devices

    Hello everybody,

    I am trying to prevent the installation of my application on Nokia 5800 Xpress Music devices. Although Nokia 5800 XM's device UID is not in the pkg_prerules section of my Qt project file, I'm still able to install the app on that device.
    The app is signed with a developer certificate and the installation is performed using the smart installer. I'm currently using Nokia Qt SDK 1.0 with Qt 4.6.

    Any help will be highly appreciated.

    Regards,
    Eugen

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Could not prevent app deployment on specific Nokia devices

    For disabling installation, you would need an explicit check and abort in the .pkg file
    Code:
    IF (MachineUID=0x12345678)
    "No5800.txt"-"",FT,TA
    ENDIF
    where 0x12345678 would be the UID of the 5800 and No5800.txt would be a text file with the message which explains that it is not supported and the installation aborts (FT=FILETEXT, TA=TEXTABORT)

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    4

    Re: Could not prevent app deployment on specific Nokia devices

    Hello wizard_hu_ ,

    Thank you very much for your answer.
    I have another question, tough. What is then the purpose of the pkg_prerules section from the project file ?
    This is how the pkg_prerules from my project file looks:
    Code:
        ...
        myapp_deployment.pkg_prerules += "[0x20023763],0,0,0,{\"Nokia 5230\"}"
        myapp_deployment.pkg_prerules += "[0x20023764],0,0,0,{\"Nokia 5230\"}"
        myapp_deployment.pkg_prerules += "[0x20024105],0,0,0,{\"Nokia 5230\"}"
        myapp_deployment.pkg_prerules += "[0x2002376B],0,0,0,{\"Nokia 5230\"}"
        ....
    Isn't this supposed to specify the devices which are valid for deployment ?
    I'm using Qt Creator for development, and the .pkg file it is generated at build time. Is there a way to automatically insert the check specified by you ?
    I have to mention the fact that I am new to Symbian development, and some of the things from the project file regarding to symbian are not clear to me yet.

    Regards,
    Eugen

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

    Re: Could not prevent app deployment on specific Nokia devices

    Your qmake script from the *.pro file is something that you should discuss in the Qt forums, after reading the relevant Qt documentation. You can use qmake script to insert content anywhere in the PKG file by using the DEPLOYMENT variable, things such as .pkg_prerules or .pkg_postrules simply help your target sections of the script more precisely.

    For example [0x20023763],0,0,0,{\"Nokia 5230\"} is a hardware/UI platform dependency which is usually added between the header and the body of the PKG. Since the body is generated by qmake using the deployment rules, it only follows that using some "pre-rules" you will manage to place such content before the body.

    Once the script processed by qmake, you end-up with a PKG file ( *_template.pkg) which then obeys the PKG format.
    -- 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

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Could not prevent app deployment on specific Nokia devices

    Quote Originally Posted by neugen View Post
    Code:
        ...
        myapp_deployment.pkg_prerules += "[0x20023763],0,0,0,{\"Nokia 5230\"}"
        myapp_deployment.pkg_prerules += "[0x20023764],0,0,0,{\"Nokia 5230\"}"
        myapp_deployment.pkg_prerules += "[0x20024105],0,0,0,{\"Nokia 5230\"}"
        myapp_deployment.pkg_prerules += "[0x2002376B],0,0,0,{\"Nokia 5230\"}"
        ....
    Isn't this supposed to specify the devices which are valid for deployment ?
    These lines are specifying compatibility. However if a device is not compatible, it displays a question about it, and still allows the user to install the application. Also, if platform level compatibility is specified (http://wiki.forum.nokia.com/index.ph...fication_codes), the rest does not really matter.

  6. #6
    Registered User
    Join Date
    Aug 2010
    Posts
    4

    Re: Could not prevent app deployment on specific Nokia devices

    Thank you very much for all of your answers . I will dig more into this.

    Regards,
    Eugen

Similar Threads

  1. Replies: 1
    Last Post: 2010-10-28, 11:07
  2. Deployment tool could not be initialized
    By jxt in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2007-03-13, 03:17
  3. Deployment tool could not be initialized.
    By kamoda_pawel in forum Mobile Java General
    Replies: 1
    Last Post: 2007-01-16, 00:31
  4. Deployment tool could not be initialized.
    By David Mitchell in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-09-27, 19:26
  5. Deployment tool of NDS 2.2 could not find service layer
    By goutamm in forum Mobile Java General
    Replies: 1
    Last Post: 2005-03-30, 15:25

Posting Permissions

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