Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor symbiannil's Avatar
    Join Date
    Jan 2008
    Posts
    67
    Hi,

    I am building an application using the commandline and then creating a sis file and also getting it signed using the commandline tools. Instead of typing all the commands i wanted everything to work automatically . So i created a batch file but i am facing a problem. The batch file executes the commands smoothly till the the applicaiton gets build but it does not executes the commands after the command for building the application(abld build gcce urel). The below is my batch file content.

    cd\
    cd Myapp
    cd group
    bldmake bldfiles
    abld build gcce urel // The batch file runs till this command but deos not executes the commands after this.
    echo "Build Successful"
    cd..
    cd sis
    makesis Myapp.pkg Myapp.sis
    signsis Myapp.sis Myappsigned.sis *.cer *.key passphrase
    echo "Signing Successful"

    what can be the reason behind this.
    Awaiting for a reply..............


    Regards
    symbiannil

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,746
    DOS "heritage": by default the control is passed between .bat files in a unidirectional 'goto'-like way. If you want them as sub-routines, which return, use call
    Code:
    cd\
    cd Myapp
    cd group
    call bldmake bldfiles
    call abld build gcce urel // The batch file runs till this command but deos not executes the commands after this.
    echo "Build Successful"
    cd..
    cd sis
    makesis Myapp.pkg Myapp.sis
    signsis Myapp.sis Myappsigned.sis *.cer *.key passphrase
    echo "Signing Successful"
    In fact you can use call for anything, so putting it before makesis/signsis would also work.

  3. #3
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,240
    Also if you want to be sure things went fine, you may use pause which will ask you to enter any key to proceed.

    Code:
    ...
    ...
    ...
    echo "Build Successful"
    pause
    cd..
    cd sis
    makesis Myapp.pkg Myapp.sis
    signsis Myapp.sis Myappsigned.sis *.cer *.key passphrase
    echo "Signing Successful"
    pause
    Nokia Developer Wiki Moderation team

  4. #4
    Regular Contributor symbiannil's Avatar
    Join Date
    Jan 2008
    Posts
    67
    Thanks Wizard_hu for your help.

    Regards
    symbiannil

Similar Threads

  1. Replies: 2
    Last Post: 2007-11-07, 07:55
  2. No library file found matching 'libedll.lib{.lib|.a}' or 'edll.lib'
    By manish_mishra2005 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 5
    Last Post: 2007-08-28, 21:23
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved