×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    40

    Exclamation Update UID 3 without breaking app?

    I have 3 .exe that combine into 2 .sis, one embedded. Code works fine and installs with old (2007) UIDs and certs. When I change UIDs to new issued from SymSigning, 2 of the 3 .exe will not install. Get the dreaded "Unable to install" message. The ONLY thing I am changing is UID 3, manually, without search and replace. I would think it is a UID problem, except one of the .exe will sign and install. I do NOT get certificate errors.

    When I switch the UIDs back to my old ones, and sign with my old certs, it installs.

    Any wild ideas? Do I need to change the GCCE UIDs? I am installing GCCE urel directly to device through TRK/Nokia PC Suite.

    Of course I am on a deadline to get this done. I am only translating localization files and adding another language. No code changes.

    Thanks for any help at all!!

    Monica

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Update UID 3 without breaking app?

    just make sure you don't have app installed with old UIDs on that device, also see that your pkg file does nto try using old private folders, and it would also be safer to change all files names, to avoid any possible update error's during installations.

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    40

    Re: Update UID 3 without breaking app?

    Thanks for the prompt response. I have tried wiping the phone before every attempt. Takes a lot of time. the PKG that works uses all the old paths. BUT, are you saying that the private folders should be changed in the device path or the build path?

    M

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

    Re: Update UID 3 without breaking app?

    The device cares about the "right side" of the .pkg file only. File names and locations on your PC do not matter much from this point of view.

  5. #5
    Registered User
    Join Date
    Sep 2007
    Posts
    40

    Re: Update UID 3 without breaking app?

    Okey Dokey. I'll try that!

  6. #6
    Registered User
    Join Date
    Sep 2007
    Posts
    40

    Re: Update UID 3 without breaking app?

    No joy. wiped the phone. Change private paths. Still stops at the same place during installation. Bar is halfway all the time. First .exe still installs properly after signing. Second one refuses. do you think I have to change the names of the install files? If I have XYZ.exe in the package on the left, I need XYZ.exe in the path on the right, or the code might not function...correct? I would have to find all references to XYZ.exe anywhere in the code to change it to ADC.exe...right? Any other thoughts?

    I have not changed anything except the UIDs in the first .exe, and the pkg works perfectly. This is a puzzle.

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: Update UID 3 without breaking app?

    Basic occurrences of filename of a GUI app:
    - \sys\bin\filename.exe in the .pkg file
    - \resource\apps\filename.rsc in the .pkg file
    - \private\10003a3f\import\apps\filename_reg.rsc in the .pkg file
    - app_file="filename" in the registration resource
    If you have customized icon/caption, you may find additional xy_file fields in the resource files (like localisable_resource_file in _reg.rss or icon_file in .rss). Also, the .mif file has to be renamed at least in the .pkg file.

    Basic occurrences of UID
    - .mmp file (UID keyword)
    - AppDllUid method (Application class)
    - _reg.rss file (UID3 keyword)
    - PkgUID in .pkg file (#-line)
    If you deploy anything into your own private folder, the UID in the path has to be updated.

    However if the installation fails the basic rule is that matching target files must not occur in the two .pkg files. So the "right side" has to differ for all files, either the path or the filename, or both.

  8. #8
    Registered User
    Join Date
    Sep 2007
    Posts
    40

    Re: Update UID 3 without breaking app?

    thanks. trying things now.

  9. #9
    Registered User
    Join Date
    Sep 2007
    Posts
    40

    Re: Update UID 3 without breaking app?

    Can't get the _reg.rss to compile. I have this:

    #include <appinfo.rh>
    #include <iCaller.rsg>

    UID2 KUidAppRegistrationResourceFile
    UID3 0x20047D91

    RESOURCE APP_REGISTRATION_INFO
    {
    app_file="iCaller";
    localisable_resource_file = "\\resource\\apps\\iCaller";
    localisable_resource_id = R_ICALLER_LOCALISABLE_APP_INFO;
    hidden = KAppIsHidden;
    embeddability=KAppNotEmbeddable;
    newfile=KAppDoesNotSupportNewFile;
    }

    I have change the .rsg to reflect the new name. What am I missing? error is: "Cannot convert 'R_ICALLER_LOCALISABLE_APP_INFO' to a number"

  10. #10
    Registered User
    Join Date
    Sep 2007
    Posts
    40

    Re: Update UID 3 without breaking app?

    Ok. I had changed too many names in the _reg.rss. Compiled. But, stopped installing at the same place. I wish I could get this to debug, but, I can't load a debug version, since I have to manually sign the dumb things. Signing doesn't work right in the SDK. Any other thoughts? I have changed the paths, changed the file names, changed the UIDs. ?

  11. #11
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: Update UID 3 without breaking app?

    Show the .pkg file.

  12. #12
    Registered User
    Join Date
    Sep 2007
    Posts
    40

    Re: Update UID 3 without breaking app?

    Name change was from PRIVUS to iCaller:




    ; Privus.pkg To generate embedded.sis to sign before generating final SIS
    ;
    ;Language - standard language definitions
    &VI,EN
    ;Standard SIS file header
    #{"iCaller", "iCaller"},(0x20047D91),1,68,12

    ;Localised Vendor name
    %{"Smart Media", "Smart Media"}

    ;Unique Vendor name
    :"Accudata Technologies"

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

    ;Files to install
    "C:\symbian\s60_3rd_fp1\epoc32\release\gcce\urel\iCaller.exe" -"!:\sys\bin\iCaller.exe"
    ;"C:\symbian\s60_3rd_fp1\epoc32\data\z\resource\apps\iCaller_reg.mif" -"!:\resource\apps\iCaller_reg.mif"

    {
    "C:\symbian\s60_3rd_fp1\epoc32\data\z\resource\apps\iCaller.R96"
    "C:\symbian\s60_3rd_fp1\epoc32\data\z\resource\apps\iCaller.R01"
    } -"!:\resource\apps\Privus.rsc"

    "C:\symbian\s60_3rd_fp1\epoc32\data\z\private\10003a3f\apps\iCaller_reg.rsc" -"!:\private\10003a3f\import\apps\iCaller_reg.rsc"

    "C:\symbian\s60_3rd_fp1\epoc32\data\z\resource\apps\PrivusIcons_aif.mif" -"!:\resource\apps\PrivusIcons_aif.mif"

    "..\data\privus.mbm" -"!:\private\20047D91\privus.mbm"
    "..\data\register.mbm" -"!:\private\20047D91\register.mbm"


    "..\help\Privus_0x2000FBB1.hlp" -"!:\resource\help\Privus_2001B243.hlp"

    ; This is used to trigger the Distributor Build behavior
    ;"DistributorBuild.txt" -"!:\private\20047D91\DistributorBuild.txt"

    {
    "..\group\PrivacyStatement.t01"
    "..\group\PrivacyStatement.t96"
    } -"!:\private\2004802C\PrivacyStatement.txt"

    IF (LANGUAGE=1) ; If the language is English, then display mytext.t02
    "rebootmsg.t01"-"", FILETEXT, TEXTCONTINUE
    ELSE ; Otherwise display mytext.t96 - Vietnamese
    "rebootmsg.t96"-"", FILETEXT, TEXTCONTINUE
    ENDIF

    IF (LANGUAGE=1) ; If the language is English
    "AutoPrompt.t01"-"!:\Data\iCaller\AutoPrompt.txt"
    ELSE ; Otherwise display mytext.t96 - Vietnamese
    "AutoPrompt.t96"-"!:\Data\iCaller\AutoPrompt.txt"
    ENDIF



    ;Required for application to be covered by backup/restore facility
    "backup_registration.xml" -"!:\private\20047D91\backup_registration.xml"

    ;Display panic codes for debugging
    ;"errrd" -"!:\resource\errrd"

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

    Re: Update UID 3 without breaking app?

    Quote Originally Posted by ss7guru View Post
    Code:
    ;Display panic codes for debugging
    ;"errrd"						-"!:\resource\errrd"
    I see it commented out, but seriously, never put this thing in an application's PKG file.
    -- 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

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

    Re: Update UID 3 without breaking app?

    There's not enough info in the *.pkg file. Altough you have a suspicious mix of file names, they should impact your applications at run-time, including a failure to start the app.
    Send me the SIS file and I'll have a look at the binaries. You can send it at <username>@ovi.com
    -- 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

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

    Re: Update UID 3 without breaking app?

    Quote Originally Posted by ss7guru View Post
    Name change was from PRIVUS to iCaller:
    It is not too successful so far.
    (Despite of the actual rendering, the remarks apply to the quotations above them)
    } -"!:\resource\apps\Privus.rsc"

    "!:\resource\apps\PrivusIcons_aif.mif"
    These two certainly conflicts, resource\apps is a common location for all applications
    "..\help\Privus_0x2000FBB1.hlp" -"!:\resource\help\Privus_2001B243.hlp"
    This one is not clear, since 2001B243 is neither the old UID, nor the new one.
    } -"!:\private\2004802C\PrivacyStatement.txt"
    This one seems to go into some random private folder, which is not possible.

Similar Threads

  1. self-signed without proper Symbian UID?
    By RomanAge in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2012-06-14, 13:52
  2. Update Error: UID of the application is Changed
    By jupitar in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2008-11-12, 04:34
  3. Replies: 0
    Last Post: 2006-01-04, 11:27

Posting Permissions

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