GP install for install command

Dear all,
I have implemented GP install for install command. we have 3 tags for specific install parameters. C7,C8 and C9. C9 is mandatory. when i use only tag C9, i can install applet on each types of java cards, but when i use C7 and C8 tags, i can install applet on some types of java cards.
I don't know what's the problem,Do all types of java cards support C7 and C8 tags ?
thanks a lot!

Daer Shane,
My APDU data of install [install] command is:
0A010203040506070809000B01020304050607080900000B010203040506070809000001000CEF08C7020100C8020100C90000
0A: length of package AID 01020304050607080900=package AID
0B: length of applet AID 0102030405060708090000=applet AID
0B: length of instance AID 0102030405060708090000=instance AID
01:length if application privilege 00=application privilege
0C=length of install parameters EF08C7020100C8020100C900=installation parameters
i get 6a80!
it works for some types of java cards, but it doesn't work for another :(

Similar Messages

  • How to calc load parameters field for INSTALL for LOAD command

    Hi everyone ,
    I'll appreciate it if anyone could help me to find out how to calculate load parameters field for Install for Load Command .
    (which tags and parameters I should use to make this field )
    Best Regards,
    SHKas

    SHKas wrote:
    I'll appreciate it if anyone could help me to find out how to calculate load parameters field for Install for Load Command .
    (which tags and parameters I should use to make this field )Hi SHKas,
    The field is deffined in the GP card spec 2.1.1 under 9.5.2.3.6 INSTALL [for load] and INSTALL [for install] Parameters. The section of text explains what each field is and the tag to use to encode. Each value is a two byte short.
    Cheers,
    Shane

  • INSTALL[for load] command without Security Domain AID

    Hello all,
    I have a question for the INSTALL[for load] command.
    The Security Domain AID is optional field, so I'm wondering if I didn't specify the AID, then which Security Domain performs the INSTALL[for load] command?
    Thanks,
    Julie.

    Which ever one you are sending your APDU commands to. Which SD did you select ? Usually, the default applet is the ISD, so the commands are going to that applet.

  • [SOLVED] Error running install command for soundcore

    Hi,
    I use OSSv4 instead of ALSA. Everything is working correctly but I noticed an error message in the bootlog:
    systemd-udevd[204]: Error running install command for soundcore
    What does this mean? Why is there an error?
    Of course I blacklisted the ALSA module as it is described in the wiki: https://wiki.archlinux.org/index.php/OSS#Install
    best regards
    nuc
    Last edited by nuc (2013-02-07 18:09:57)

    Ok, thanks for the info.
    But why does the wiki suggest to run "install soundcore /bin/false" instead of just "blacklist soundcore"? In earlier revisions the wiki suggested to do "blacklist soundcore" (https://wiki.archlinux.org/index.php?ti … did=231068).
    Doesn't this actually have the same effect?
    EDIT:
    I found this https://wiki.archlinux.org/index.php/Ke … acklisting
    Last edited by nuc (2013-01-27 18:20:01)

  • Lenovo Solution Center - silent install command?

    I'm probably not the first to ask, but is there a silent install command for lsc.exe?
    I'd like to integrate it into an MDT deployment: for system update the /verysilent option works, but I cannot find anything on lsc.
    All help appreciated,
    Bavo
    PS: also, does it need Adobe Air and should i install that separately or is this inculed in the installer of lsc

    add:
    http://forums.lenovo.com/t5/ThinkVantage-Technologies/ThinkVantage-System-Update-5-06-will-not-silen...
    http://forums.lenovo.com/t5/ThinkVantage-Technologies/Lenovo-Solution-Center-2-4-002-Revision-19058/...
    http://forums.lenovo.com/t5/ThinkVantage-Technologies/lsc-cli-exe-crashing-daily-since-2-4-002-rev-1...

  • Need help to understand INSTALL command based on GPspec 2.1.1

    Hi Friends..
    Sorry before, i couldn't understand some commands based on GPSpec 2.1.1, i'm pretty new in this field..
    So, i need your help to help me understand about the commands..
    Firstly, i want to know what exactly the DATA that referred by INSTALL Command..
    here's outlined in the GPSpec 2.1.1 for INSTALL Command (Chapter 9)..
    CLA = '80' or '84'
    INS  = 'E6'              //INSTALL
    P1   = 'xx'               //Reference control parameter P1
    P2   = '00'               //Reference control parameter P2
    Lc   = 'xx'                //Length of data field
    Data 'xxxx…'           //Install data (and MAC if present)
    Le   = '00'What exactly the data referred?.
    I thought the data which referred can be Applets, Packages, CAP files..
    So, how to know the LC and Sequence bytes of the Applets/ Packages/ CAP files..
    i found this LINK..
    In the website i read an example of INSTALL Command..
    Here's an example mentioned in the link above..
    INSTALL FOR LOAD
      84 E6 02 00 2B 10 A0 00 00 00 18 50 00 00 00 00 00 00 52 41 44 50 00 00 0E EF 0C C6 02 00 00 C8 02 00 00 C7 02 00 00 00 2A 8B 3A 01 3C 8E FD A4 (00)
      00, 90 00  [Normal ending of the command.] Sorry, i'm still not understand about it..
    Please help me regarding this..
    Sorry, perhaps this question sounds silly..
    Thanks in advance..

    Hi,
    As a hint, you want to use INSTALL for install and make selectable. You can have a look at the APDU that GPShell sends through for the final install command (hint: it will be a part of the load command). You can also execute install_for_load, load and install_for_install in GPShell to see these commands. The GP card spec is a little confusing for the INSTALL command so tracing GPShell may help you understand it.
    Cheers,
    Shane

  • [SOLVED]/usr/lib/arch-tempfiles line 106: install:command not found

    Hi everyone!
    This is my boot.log
    http://pastebin.com/1gfynhSN
    It says"/usr/lib/initscripts/arch-tmpfiles:line 106: install:command not found".This is leading to problems such as dbus and network manager not being started(even manually),no shutdown option,not able to 'open' log files without sudo  etc.
    I think a possible reason for this is that I had messed up with symlinks.I had issued the command
    sudo ln -s /bin/install /usr/bin/install
    .Then I had used
    cd /bin/
    unlink install
    Now,I find that /bin/install and /usr/bin/install does not exist.(I have deleted them!) .How can I fix this up?Any help would be appreciated.
    Last edited by adwaita45 (2012-04-05 20:41:40)

    Reinstall coreutils (or manually extract install from the package and put it in /usr/bin).
    Last edited by Raynman (2012-04-05 18:14:10)

  • [SOLVED] Can't understand how `install` command works

    Hi there:
    I'm trying to make a PKGBUILD for pgModeler, which comes pre-compiled, so I think what I should do is to move the application directory completely to /opt/pgmodeler and make a symbolic link from /usr/bin to the /opt/pgmodeler/start-pgmodeler.sh script. So, i just wrote this:
    pkgname=pgmodeler
    pkgver=0.4.1
    pkgrel=1
    pkgdesc="An open source tool for modeling PostgreSQL databases"
    arch=('x86_64')
    url="http://pgmodeler.com.br"
    license=('GPL3')
    source=("http://www.pgmodeler.com.br/releases/$pkgname-$pkgver-linux64.tar.gz" "pgmodeler.desktop")
    md5sums=('574887c35bc9e0a1bc65f8d4494200bb' '1f3ebda62e941ea7ea17cfb609cc392e')
    depends=(libpqxx)
    package() {
    install -Dm644 "$srcdir/$pkgname-$pkgver-linux64" "$pkgdir/opt/$pkgname"
    install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
    install -Dm644 "$srcdir/$pkgname-$pkgver-linux64/pgmodeler_logo.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
    chmod 755 "$pkgdir/opt/$pkgname/start-pgmodeler.sh"
    ln -s "$pkgdir/opt/$pkgname/start-pgmodeler.sh" "$pkgdir/usr/bin/$pkgname"
    But it fails in the first line of the package() function:
    [tae@localhost pgmodeler]$ makepkg -s
    ==> Making package: pgmodeler 0.4.1-1 (Sun Mar 17 23:03:08 CLST 2013)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Found pgmodeler-0.4.1-linux64.tar.gz
    -> Found pgmodeler.desktop
    ==> Validating source files with md5sums...
    pgmodeler-0.4.1-linux64.tar.gz ... Passed
    pgmodeler.desktop ... Passed
    ==> Extracting Sources...
    -> Extracting pgmodeler-0.4.1-linux64.tar.gz with bsdtar
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting package()...
    install: omitting directory ‘/home/tae/GitHub/pgmodeler/src/pgmodeler-0.4.1-linux64’
    ==> ERROR: A failure occurred in package().
    Aborting...
    This is my first PKGBUILD and I'm trying to decipher how to make it by looking at this files: https://aur.archlinux.org/packages/dr/dropbox/PKGBUILD and https://aur.archlinux.org/packages/op/opcion/PKGBUILD and I never used the install command before so I'm pretty lost.
    Thanks beforehand.
    Last edited by Tae (2013-03-19 12:44:45)

    Thanks to all. I learned a couple of stuff, but I still have no luck. This is what I've tried:
    I wrote install -d "$pkgdir/opt" in the first line of the package() function before ask, but it didn't make any difference. In fact, I'm not sure what it does (from its man page: treat all arguments as directory names; create all components of the specified directories).
    I modified the function with all your suggestions, and now it looks:
    package() {
    cp -R "$srcdir/$pkgname-$pkgver-linux64" "$pkgdir/opt/$pkgname"
    chmod 644 "$pkgdir/opt/$pkname/"
    chmod 755 "$pkgdir/opt/$pkgname/start-pgmodeler.sh"
    install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
    install -Dm644 "$pkgdir/opt/$pkgname/pgmodeler_logo.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
    ln -s "/opt/$pkgname/start-pgmodeler.sh" "$pkgdir/usr/bin/$pkgname/"
    but I get:
    $ makepkg -s
    ==> Making package: pgmodeler 0.4.1-1 (lun mar 18 20:33:53 CLST 2013)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Found pgmodeler-0.4.1-linux64.tar.gz
    -> Found pgmodeler.desktop
    ==> Validating source files with md5sums...
    pgmodeler-0.4.1-linux64.tar.gz ... Passed
    pgmodeler.desktop ... Passed
    ==> Extracting Sources...
    -> Extracting pgmodeler-0.4.1-linux64.tar.gz with bsdtar
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting package()...
    cp: cannot create directory ‘/home/tae/GitHub/pgModeler/pkg/opt/pgmodeler’: No such file or directory
    ==> ERROR: A failure occurred in package().
    Aborting...
    Here I can't understand why it tries to create /opt/pgmodeler inside the pkg/ directory. For what I found in other PKGBUILDs and from the $pkgdir definition of the PKGBUILD man page (This contains the directory where makepkg bundles the installed package (this directory will become the root directory of your built package)) I though it will be the root directory.
    So I removed all the $pkgdir from the function and now I get this error:
    mkdir: cannot create directory ‘/opt/pgmodeler/’: Permission denied

  • Make: /usr/bin/install: Command not found

    I'm working on a PKGBUILD, but I'm running into this:
    make: /usr/bin/install: Command not found
    make: *** [install] Error 127
    ==> ERROR: Build Failed.
    Aborting...
    What would cause this?  Old code?  Missing package?

    It was actually really old code, after a bit of successful this-should-probably-work script editing!  I created a package in the AUR called dasm, which is an assembler for the Atari 2600 among many other systems.
    http://aur.archlinux.org/packages.php?ID=37200

  • INSTALL Command Problem

    I have loaded the wallet sample to my GalactIC Lite card.
    APDU : 80 E6 02 00 0E 09 A0 00 00 00 62 03 01 0C 06 00 00 00 00 00
    Response : 00 90 00
    APDU : 80 E8 00 00 1A C4 82 03 95 01 00 13 DE CA FF ED 01 02 04 00 01 09 A0 00 00 00 62 03 01 0C 06
    Response : 90 00
    APDU : 80 E8 80 20 17 01 10 04 b4 31 01 30 01 b0 02 41 06 68 00 a1 01 20 03 44 10 04 b4 32
    Response : 00 90 00
    I sent INSTALL command to install wallet sample but I got 6A 80 error.
    APDU : 80 E6 0C 00 26 09 A0 00 00 00 62 03 01 0C 06 0A A0 00 00 00 62 03 01 0C 06 01 0A A0 00 00 00 62 03 01 0C 06 01 01 00 02 c9 00 00
    Response : 6A 80
    What�s wrong with my INSTALL command?
    Thanks!

    Darn,
    I have added the following to the Install data for my applet
    C9050102030405where 0102030405 is my pin value
    My install method is as follows (thank you mk)
    // Constructor
    private Wallet (byte[] bArray, short bOffset, byte bLength)
         pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);
         // Create PIN instance     
         pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);     
         // register with specified AID               
         register(bArray, (short) (bOffset + 1), bArray[bOffset]);     
         bOffset += (short) (bArray[bOffset] + 1);     
         bOffset += (short) (bArray[bOffset] + 1);     
         pin.update(bArray, (short) (bOffset + 1), bArray[bOffset]);
    }// end of constructorwhich by debugging I can see that the bytes sent to the update method are {-55,5,1,2,3,4,5} - Correct, I think.
    When I call the pin.check method
    private void verify(APDU apdu)
         byte[] buffer = apdu.getBuffer();
         //retrieve the PIN data for validation
         byte byteRead = (byte)(apdu.setIncomingAndReceive());
         // check pin
         // the PIN data is read into the APDU buffer at the offset ISO7816.OFFSET_CDATA
         // the PIN data length = byteRead
         if(pin.check(buffer, ISO7816.OFFSET_CDATA, byteRead) == false)
              ISOException.throwIt(SW_VERIFICATION_FAILED);
    }// end of validate mI can see that the data sent to the check method is {1,2,3,4,5}.
    However, the SW_VERIFICATION_FAILED exception is being thrown.
    Can anyone see why??
    Thanks,
    Ann

  • "ant install" command problem-JWSDP EA2

    Hello. I get an error message like the following:
    "Server returned HTTP response code: 401 for URL ..." when I invoked the "ant install" command. According to the tutorial, it says I need create a "build.properties" file in my home directory. It said for Windows 2000 it is c:\Documents. But I have W98SE and by default I do not have a Documents directory. So I created the Documents folder under the root directory of my local c: drive (c:\Documents). I then created a build.properties file that has the username and password as determined in the tomcat-users.xml file. Then I saved the file in c:\Documents folder. I executed the "ant install" command and I still get the error message. Then I was thinking that perhaps for W98SE, my home directory is c:\My Documents since that is my default directory when I'm saving files in Office applications. So I repeated the above, but saved the build.properties in c:\My Documents instead. But I still get the error message. I even enclosed my username and password in double-quotes and without double-quotes, but again I still get the error message. Please help. Thanks.

    I found out that my "home" directory is c:\windows based on this:
    System.out.println(System.getProperty("user.home"));
    But, I still get that "...Server returned HTTP response code: 401 for URL: http://localhost:8080/manger/install..." after I saved my build.properties file in the c:\windows folder. This is getting frustrating. arrrrrgh!!!! If I don't get any help, I guess I'm just going to install just the standalone Tomcat installation instead of the installation that came with JWSDP EA2. This ANT thing is getting on my nerve. :) It seems I could just use DOS batch files, which would similarily accomplish what the ANT tool is doing.

  • Install command syntax issue in jcop tool

    Hello there, I want to implement pin concept in my applet, as i read about this ,i think i need to Bind the USER_PIN over install command , till now i am using install command like-
    install -i a0010203040506070809  -q C9#() a00102030405060708 a0010203040506070809but to pass pin number , i need to update this install command with new one.
    Can anybody suggest me the updated install command , with help of that i can pass pin-0102030405 to the install command and use it by below technique
    byte iLen = bArray[bOffset]; // aid length
             bOffset = (short) (bOffset + iLen + 1);
             byte cLen = bArray[bOffset]; // info length
             bOffset = (short) (bOffset + cLen + 1);
             byte aLen = bArray[bOffset]; // applet data lengthmy package id is -a00102030405060708
    my applet id is- a0010203040506070809
    regards:-
    daniel

    i think install command invoke the applet in the memory or make a instance in memory which will be active in life time. right?
    so i want to pass a password like- 0102030405 with help of install command, it will be the default password , or in future if i will be require then i can change this with new one. As i read, after passing this in install command, i need to use below code to get 0102030405.
    following code:-
    byte iLen = bArray[bOffset]; // aid length
             bOffset = (short) (bOffset + iLen + 1);
             byte cLen = bArray[bOffset]; // info length
             bOffset = (short) (bOffset + cLen + 1);
             byte aLen = bArray[bOffset]; // applet data lengthso tell me please what would be the install command?
    --- wallet code is like--
    public static void install(byte[] bArray, short bOffset, byte bLength){
        // create a Wallet applet instance
        new Wallet(bArray, bOffset, bLength);
      } // end of install method
    // constucor code is:-
    private Wallet (byte[] bArray,short bOffset,byte bLength){
        // It is good programming practice to allocate
        // all the memory that an applet needs during
        // its lifetime inside the constructor
        pin = new OwnerPIN(PIN_TRY_LIMIT,   MAX_PIN_SIZE);
        byte iLen = bArray[bOffset]; // aid length
        bOffset = (short) (bOffset+iLen+1);
        byte cLen = bArray[bOffset]; // info length
        bOffset = (short) (bOffset+cLen+1);
        byte aLen = bArray[bOffset]; // applet data length
        // The installation parameters contain the PIN
        // initialization value
        pin.update(bArray, (short)(bOffset+1), aLen);
        register();
      } // end of the constructor
    // i want to implement this concept......................Edited by: daniel on Feb 28, 2012 7:17 AM

  • [SOLVED] Error uninstalling eclipse: "post-install: command not found"

    When I try uninstalling eclipse , I get "error: command failed to execute correctly"
    w0ng@e8500 ~
    % sudo pacman -Rns eclipse
    checking dependencies...
    Targets (8): glib-networking-2.30.2-1 gsettings-desktop-schemas-3.2.0-1 gstreamer0.10-0.10.36-1
    gstreamer0.10-base-0.10.36-1 libproxy-0.4.7-1 libsoup-2.36.1-1 libwebkit-1.6.3-1
    eclipse-3.7.2-2
    Total Removed Size: 243.84 MiB
    Do you want to remove these packages? [Y/n] y
    (1/8) removing eclipse [######################################] 100%
    /tmp/alpm_eY6rVO/.INSTALL: line 10: post-install: command not found
    error: command failed to execute correctly
    (2/8) removing libwebkit [######################################] 100%
    (3/8) removing libsoup [######################################] 100%
    (4/8) removing glib-networking [######################################] 100%
    (5/8) removing libproxy [######################################] 100%
    (6/8) removing gsettings-desktop-schemas [######################################] 100%
    No schema files found: removed existing output file.
    (7/8) removing gstreamer0.10-base [######################################] 100%
    (8/8) removing gstreamer0.10 [######################################] 100%
    w0ng@e8500 ~
    But all files appear to be removed successfully.
    w0ng@e8500 ~
    % sudo updatedb && locate eclipse
    /usr/share/highlight/themes/edit-eclipse.theme
    /usr/share/icons/Faenza/apps/16/eclipse.png
    /usr/share/icons/Faenza/apps/22/eclipse.png
    /usr/share/icons/Faenza/apps/24/eclipse.png
    /usr/share/icons/Faenza/apps/32/eclipse.png
    /usr/share/icons/Faenza/apps/48/eclipse.png
    /usr/share/icons/Faenza/apps/64/eclipse.png
    /usr/share/icons/Faenza/apps/96/eclipse.png
    /usr/share/icons/Faenza/apps/scalable/eclipse.svg
    /var/abs/community/eclipse-cdt
    /var/abs/community/eclipse-cdt/PKGBUILD
    /var/abs/core/licenses/eclipse-1.0.txt
    /var/abs/extra/eclipse
    /var/abs/extra/eclipse-ecj
    /var/abs/extra/eclipse/PKGBUILD
    /var/abs/extra/eclipse/eclipse.desktop
    /var/abs/extra/eclipse/eclipse.install
    /var/abs/extra/eclipse/eclipse.sh
    /var/abs/extra/eclipse/eclipse.svg
    /var/abs/extra/eclipse-ecj/PKGBUILD
    /var/abs/extra/eclipse-ecj/ecj
    w0ng@e8500 ~
    Should I be concerned or is everything fine? Can anyone reproduce this?
    Last edited by w0ng (2012-03-28 19:00:30)

    Check /var/abs/extra/eclipse/eclipse.install. Typo in post_remove: post-install should be post_install. You can run the post_install manually (and maybe report this in the bug tracker), but it just updates the gtk icon cache, so it's nothing to worry about.

  • Using a Variable in SSIS - Error - "Command text was not set for the command object.".

    Hi All,
    I am using a OLE DB Source in my dataflow component and want to select SQL Query from the master table  I have created variables v_Archivequery
    String packageLevel (to store the query).
    <Variable Name="V_Archivequery" DataType="String">
         SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
         FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
         ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
         Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)
        </Variable>
    I am assigning this query to the v_Archivequery variable, "SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
    FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
     ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
    Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)"
    Now in the OLE Db source, I have selected as Sql Command from Variable, and I am getting the variable, v_Archivequery .
    But when I am generating the package and when running I am getting bewlo errror
     Error at Data Flow Task [OLE DB Source [1]]: An OLE DB error has occurred. Error code: 0x80040E0C.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E0C  Description: "Command text was not set for the command object.".
    Can Someone guide me whr am going wrong?
    Please let me know where am going wrong?
    Thanks in advance.
    Thankx & regards, Vipin jha MCP

    What happens if you hit Preview button in OLE DB Source Editor? Also you can use the same query by selecting SQL Command option and test.
    Could you try set the Delay Validation = True at Package and re-run ?
    If set the query in variable expression (not in value), then Set Evaluate As Expression = True.
    -Vaibhav Chaudhari

  • Script for using layer name in Save for Web command

    I am using the Save for Web  command (Illustrator CS2) to export layers to CSS so that each layer is  saved as a different jpg.  The only issue I have is that I want the  layer name to be part of the file name, but layer name is not an option  when I look at the "Edit Output settings" dialog for saving files.  Is  there anyway I can do this? I do not have experience writing or working with scripts.
    For example. My fiel name is flower.ai.  I will have 20  different layers (each containing a different color of the same image)  and want the exported file to be flower-scarlet.jpg,  flower-cranberry,jpg, etc. Right now I am looking at renaming all the  files manually, but as I am creating 40 images per product on my website, this will be very time consuming.
    Thanks in advance
    Christine

    Btw.. to make it work for JPGs, change the PNG options to the following:
    var options = new ExportOptionsJPEG();
            options.antiAliasing = false;
            options.optimization = false;
            options.artBoardClipping = true;
            options.qualitySetting = 100; // value of 0 to 100, 60 is medium, 100 is perfect
            options.blurAmount = 0;
            options.verticalScale = 100;
            options.horizontalScale = 100;

Maybe you are looking for