Extracting files from AIR package

Hi all
I have been tasked with developing an "selective update"
system for one of our FLEX AIR applications.
We have a lot of data (swfs, excel spreadsheets, pdfs etc)
that we update reguarly, and to save the user time and trouble of
downloading and installing the complete package every time there is
a new release, they want to be able to only download and install
the updated files.
Does anyone know if this is possible? Also, as we are now
unable to write to the applicationresourcedirectory, how can I
(assuming the first request is possible) extract the files to a new
location (applicationstoragedirectory) and run them from there?
Many thanks for any help you can provide.
Matt

Hi TheDude7563
Thank you for your reply.
We have a working update function in place. The application
has been running for months now, (on v39 currently).
As for the manual transfer, I assume that the actual air file
would still have to be downloaded from the server and unpacked? If
this is the case, what (if any) benefits are there to creating a
selective download as opposed to installing/updating the
application if the .air file has already been downloaded onto the
user's pc?
Many, many thanks,
Matt

Similar Messages

  • "An error occurred while extracting files from the package "BaseSystem.pkg".

    Hello!
    I have a
    MacBookPro5,5
    Prozessortyp:Intel Core 2 Duo
    Prozessorgeschwindigkeit:2.26 GHz
    Anzahl der Prozessoren:1
    Gesamtzahl der Kerne:2
    L2-Cache:3 MB
    Speicher:2 GB
    Busgeschwindigkeit:1.07 GHz
    Boot-ROM-Version:MBP55.00AC.B03
    SMC-Version (System):1.47f2
    Hardware-UUID:A2DD27C4-9829-5A4D-854B-485EF8A6B20F
    Problem:
    I upgraded Leopard to Snow Leopard. Everything worked fine for a month. To free up disk space I deleted some of the iPhoto flders (modfied and original images). Everything worked still fine. Shut down the computer. Next day it was incredibly slow. At the same time the indexing was running. I stopped indexing, but stll slow. Every operation took minutes. I tried all the tricks that I found in the internet (repaired file permissions, repaired disk, cleared PRAM , moved big filed from desktop, etc.). After 24 full hours of trying all this I decided to erase the hard drive and reinstall, directly from the Snow Leopard Install disk, but it fails after downloading the packages. Below is the part of the log. Then I tried to use the old Leopard install DVD to reinstall Leopard, it then sais estimated time 12 hours or so and eventually crashed, spitting out a lot of "reportcrash" in the log. What is going on? I'm running out of options. Any advice? Would zeroing the hard drive help? If nothing else I plan to buy a new hard drive, since the only explanation I have is that there is a problem with the hard driven although the disk utility says it is OK. I need a bigger one anyway. Any ideas? Thank you!
    Aug 16 05:17:31 localhost OSInstaller[139]: IFPKInstallElement (191 packages)
    Aug 16 05:17:35 localhost OSInstaller[139]: PackageKit: ----- Begin install -----
    Aug 16 05:17:35 localhost OSInstaller[139]: PackageKit: request=PKInstallRequest <191 packages, destination=/Volumes/Macintosh HD>
    Aug 16 05:17:36 localhost OSInstaller[139]: PackageKit: Extracting /Volumes/Macintosh HD/Mac OS X Install Data/BaseSystem.pkg (destination=/Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root, uid=0)
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/DataPool.c:116 : Error: finished pool without filling it
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/commonUtils.c: 315: Error: fh_pread -1
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:236: Error: write failed for /Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root//System/Library/Frameworks/OpenCL.framework/Versi ons/A/Resources/runtime.amdil.bc: Invalid argument
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:260: Error: futimes failed for /Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root//System/Library/Frameworks/OpenCL.framework/Versi ons/A/Resources/runtime.amdil.bc: Invalid argument
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:829: Error: returning errno 22 from FinishStreamCompressorQueue
    Aug 16 05:32:10 localhost OSInstaller[139]: PackageKit: Install Failed: PKG: extracting "com.apple.pkg.BaseSystem"\nError Domain=PKInstallErrorDomain Code=110 UserInfo=0x12c8366a0 "An error occurred while extracting files from the package “BaseSystem.pkg”." Underlying Error=(Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 "The operation couldn’t be completed. FinishStreamCompressorQueue error") {\n    NSFilePath = "/Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root";\n    NSLocalizedDescription = "An error occurred while extracting files from the package \U201cBaseSystem.pkg\U201d.";\n    NSURL = "BaseSystem.pkg -- file://localhost/Volumes/Macintosh%20HD/Mac%20OS%20X%20Install%20Data/index.pro duct";\n    NSUnderlyingError = "Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 \"The operation couldn\U2019t be completed. FinishStreamCompressorQueue error\"";\n    PKInstallPackageIdentifier = "com.apple.pkg.BaseSystem";\n}
    Aug 16 05:32:10 localhost OSInstaller[139]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 UserInfo=0x12c8366a0 "An error occurred while extracting files from the package “BaseSystem.pkg”." Underlying Error=(Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 "The operation couldn’t be completed. FinishStreamCompressorQueue error")
    Aug 16 05:32:11 localhost OSInstaller[139]: Install failed: Die Installation ist aufgrund eines Fehlers fehlgeschlagen. Wenden Sie sich an den Hersteller der Software.
    Aug 16 05:32:13 localhost OSInstaller[139]: Allowing machine sleep.
    Aug 16 05:32:15 localhost OSInstaller[139]: Memory statistics for 'Installation ist fehlgeschlagen' pane:
    Aug 16 05:32:15 localhost OSInstaller[139]: Physical Memory Allocation:   139 MB wired,   259 MB trapped,   397 MB active,     7 MB inactive,  1246 MB free,  1650 MB usable,  2048 MB total

    It sounds to me like your Internal Hard Drive is failing.
    I recommend you buy a new one, that is a good candidate for replacing the old one, but install it in an External enclosure and Install a fresh Mac OS X on it from the DVD. You can boot your Mac from any attached drive.
    The new System can be used to get some work done, check your emails, and takes the pressure off resolving this immediately. You can also attempt to salvage files off the old drive if needed.
    Once things seem to be working, then move the new drive inside the computer. Failures at this point may be due to bad cable, which has been a problem in some of these MacBooks.
    Use security erase, write Zeroes, one pass, to re-write every block on the old drive. Any block discovered to be bad will be replaced with spares the drive holds in reserve for this purpose. If more than 10 blocks are pared on one pass, "Initialization Failed!" will be the result. Although you can try the erase again, there is some question whether you want to trust this drive with your precious data.

  • Hi this message appears after 2 hours downloading Mavericks : an error occurred while extracting files from the package "mzps4135638417199433253.pkg"

    Hi this message appears after 2 hours downloading Mavericks in App Store :
    an error occurred while extracting files from the package "mzps4135638417199433253.pkg"
    Same with "CMD + R"
    Help...

    It sounds to me like your Internal Hard Drive is failing.
    I recommend you buy a new one, that is a good candidate for replacing the old one, but install it in an External enclosure and Install a fresh Mac OS X on it from the DVD. You can boot your Mac from any attached drive.
    The new System can be used to get some work done, check your emails, and takes the pressure off resolving this immediately. You can also attempt to salvage files off the old drive if needed.
    Once things seem to be working, then move the new drive inside the computer. Failures at this point may be due to bad cable, which has been a problem in some of these MacBooks.
    Use security erase, write Zeroes, one pass, to re-write every block on the old drive. Any block discovered to be bad will be replaced with spares the drive holds in reserve for this purpose. If more than 10 blocks are pared on one pass, "Initialization Failed!" will be the result. Although you can try the erase again, there is some question whether you want to trust this drive with your precious data.

  • Tried to install OS X Yosemite on my MacBook. Got message that it could not be installed on my computer due to error while extracting files from package "Essentials.pkg". When i quit the installer as recommended it goes in a loop and gets stuck.

    Tried to install OS X Yosemite on my MacBook. Got message that it could not be installed on my computer due to error while extracting files from package "Essentials.pkg". When i quit the installer as recommended it goes in a loop and gets stuck.

    Hey corrafromlondon,
    Thanks for the question. After reviewing your post, it sounds like the installer file isn't working. Have you tried deleting the installer and redownloading the installer? I would recommend that you read this article, it may be able to help you isolate or resolve the issue.
    How to install OS X Yosemite on your Mac - Apple Support
    you can find the Yosemite installer app in your Applications folder or Launchpad. 
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Reading an XML file from a package .....

    I m trying to read an xml file from a package. The XML file is located on desktop (not on unix system). if i mention the path of the file in a package, is it sufficient ???. OR do i need to CREATE DIRECTORY in oracle and mention the file path in this directory ???
    I have granted CREATE directory permissions...
    If not any suggestion or advice is great ???
    Thank you!!

    BANNER
    1     Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    2     PL/SQL Release 11.1.0.6.0 - Production
    3     CORE     11.1.0.6.0     Production
    4     TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    5     NLSRTL Version 11.1.0.6.0 - Production
    Thank you !!!

  • How to import SQLite .db file from AIR project

    hi friends..
    how to import SQLite.db file from AIR project. and i want use this in my application.
    after importing can i update and delete the recordS?

    There's no import needed. You just open it using the AIR SQL APIs. If this database file was created outside AIR, it's not necessarily compatible, though. There are SQLite features and extensions that aren't supported in AIR.

  • Extracting files from Portfolio - problem with outlook email created portfolios

    Currently I have developed a plugin that can extract files from portfolios using:-
    PDNameTree tree = PDDocGetNameTree(pdDoc, ASAtomFromString("EmbeddedFiles"));
    and
    PDFileAttachmentFromCosObj
    But i've noticed with Outlook email created portfolios the above is PDNameTree invalid.  any suggestions?   is it under another atom string or something?
    Thanks,
    Lee.

    ok, found something out here... if I close the doc using AVDocClose then re-open in the code using PDDocOpen then the PDNameTree tree = PDDocGetNameTree(pdDoc, ASAtomFromString("EmbeddedFiles"));  works!!!
    but now I have a problem getting the original pdf open filename.
    usually can get it with below code but it's returning the Folder path + garbage instead. (this only happens with portfolios created by outlook that I have tested)
    There must be a better way of doing this, any ideas? thanks, lee.
    ASFile asFile = PDDocGetFile(pdDoc);
    ASPathName asPathName = ASFileAcquirePathName(asFile);
    char* temp = ASFileSysDIPathFromPath(ASGetDefaultFileSys(), asPathName, NULL);

  • [SOLVED] Resetting config files from a package

    Suppose I modify a file called /etc/examplefile.conf from a package example-package.
    What is the easiest / most elegant way to reset this file? Reset = restore the file to its original, removing my modifications.
    This[1] topic discusses this, but it is two years old. I would say the "best" solution there was the one suggested in #7:
    you could move the config file first then reinstall.
    But I'm not sure if this is safe. For a dummy example, removing /etc/pacman.conf then reinstalling pacman wouldn't probably be a good idea (I suspect this wouldn't work).
    OBS.: Getting the original file from the package from the cache is an obvious solution, but I'm searching for a simpler (more direct) way to do this (a bash/zsh one-liner would be sufficient, for example).
    [1]: https://bbs.archlinux.org/viewtopic.php?id=137526
    Last edited by thiagowfx (2014-04-26 21:49:20)

    FYI, pkg_scripts are available both in the AUR https://aur.archlinux.org/packages/pkg_scripts/ and in Xyne's repo: https://wiki.archlinux.org/index.php/Un … #xyne-i686 or https://wiki.archlinux.org/index.php/Un … #xyne-i686

  • Extracting file from a TAR file with java.util.zip.* classes

    Is there a way to extract files from a .TAR file using the java.util.zip.* classes?
    I tried in some ways but I get the following error:
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.<init>(ZipFile.java127)
    at java.util.zip.ZipFile.<init>(ZipFile.java92)
    Thank you
    Giuseppe

    download the tar.jar from the above link and use the sample program below
    import com.ice.tar.*;
    import java.util.zip.GZIPInputStream;
    import java.io.*;
    public class untarFiles
         public static void main(String args[]){
              try{
              untar("c:/split/20040826172459.tar.gz",new File("c:/split/"));
              }catch(Exception e){
                   e.printStackTrace();
                   System.out.println(e.getMessage());
         private static void untar(String tarFileName, File dest)throws IOException{
              //assuming the file you pass in is not a dir
              dest.mkdir();     
              //create tar input stream from a .tar.gz file
              TarInputStream tin = new TarInputStream( new GZIPInputStream( new FileInputStream(new File(tarFileName))));
              //get the first entry in the archive
              TarEntry tarEntry = tin.getNextEntry();
              while (tarEntry != null){//create a file with the same name as the tarEntry  
                   File destPath = new File(
                   dest.toString() + File.separatorChar + tarEntry.getName());
                   if(tarEntry.isDirectory()){   
                        destPath.mkdir();
                   }else {          
                        FileOutputStream fout = new FileOutputStream(destPath);
                        tin.copyEntryContents(fout);
                        fout.close();
                   tarEntry = tin.getNextEntry();
              tin.close();
    }

  • Extracting file from oracle repository from  a shell

    Hi all,
    I have to extract file from a SCM configuration in a Unix AIX environment using a shell.
    I can't use command line tool because I'm in a unix environment (Right?).
    Is possible I think using scm api but I don't find any usefull example

    Close your question here and open here
    Oracle Discussion Forums » Oracle Database » Application Express

  • Have new MacBook Air and old MacBook. Can send file from Air to MacBook by Bluetooth but cannot transfer file from MacBook to Air.

    Have new MacBook Air and old MacBook (2 1/2 years old). Can transfer files from Air to MacBook by Bluetooth but cannot transfer file from MacBook to Air. When I try, MacBook does not recognize Air. File transfer only goes in one direction. Any solution to this problem? Regards

    The Setup Assistant can restore your data from a Time Machine backup. You'll be asked if you want to do this the first time you turn the computer on.
    (60797)

  • Extract File from CD

    I've looked around but can't seem to find a way to extract an audio file from a CD. I'm certain this was possible with Audition. I assume that Soundbooth (as part of my Master Bundle)is regarded by Adobe as superior to Audition but I feel there are missing requirements. I've resorted to using 'Wavelab 6' to extract CD audio but it does seem cumbersome.

    Perhaps with so many free rippers out there they didn't feel the need to include the facility.
    EAC (Exact Audio Copy), CDex, VUPlayer are some that spring to mind.

  • How do I extract files from a dvd I have already burned to re-edit back in Premiere?

    I'm trying to extract the files from a dvd back to Premiere, the project was assembled with Premiere Pro 1.5, I need to re-edit that same project. The dvd is not a data disk.
    Please help!!

    Along with the material in Eddie's link, you might want to read over this ARTICLE by Jeff Bellune, posted in the Adobe Encore FAQ's. While it addresses getting the material into Encore for authoring, much will apply to your situation.
    Personally, I use an A-D bridge (though the file structure is already in digital form) to Capture directly from my DVD player to my computer. This is for non-commercial DVD's from my clients, where the original material is no longer available.. It's quick, easy and my Capture software Exports as DV-AVI Type II, so there is no additional conversion needed. If I need to work on the Menu structure, etc., then I use a workflow similar to Jeff's, outlined in his article.
    Good luck, and please follow Eddie's link,
    Hunt

  • Extracting file from blob and storing in file system

    In order to keep the database size down, I would like to run a program to execute on submit of a page containing a file upload control, which will extract the file from the blob in the db and store it in the operating system.
    Any suggestions on how I can accomplish this?

    I use something like this
      procedure blob2file
        ( p_blob blob
        , p_directory varchar2 := 'MY_DIR'
        , p_filename varchar2 := 'my.xlsx'
      is
        t_fh utl_file.file_type;
        t_len pls_integer := 32767;
      begin
        t_fh := utl_file.fopen( p_directory
                              , p_filename
                              , 'wb'
        for i in 0 .. trunc(  ( dbms_lob.getlength( p_blob ) - 1 ) / t_len )
        loop
          utl_file.put_raw( t_fh
                          , dbms_lob.substr( p_blob
                                           , t_len
                                           , i * t_len + 1
        end loop;
        utl_file.fclose( t_fh );
      end;Anton

  • Can't Extract Files from System Image DVD

    I recently created a Windows 7 system image onto DVD-RWs as my HDD was suspect.  The HDD was replaced under warranty. When I came to restore the system image I got up to the fourth DVD and the process would not go any further (could not read the DVD).
    I then tried to extract some of the more important files from the first three disks that the restore process had read successfully.  I used the AttachVHD option under Computer management however for every .vhd file which I tried to attach I received a "The file or directory is corrupted anf unreadable" error message from the Virtual Disk Manager.
    I also tried 7-Zip to extract files but received the message "Can not open file as archive" each time.
    Can any one throw any light on why I can't read these .vfd files?

    marckelli
    Only last night a user went through the same situation as you are going through. Details are important. For now I am assuming that your computer is Windows 7, 8, or 8.1 64 bit. If other post immediately to let me know.
    1. You need two files from Adobe, one .exe and the other .7z. If you have a 64 bit computer operating system
    make sure the you see 64 in the name of the file.
    2. Assure that you have antivirus and firewall disabled.
    3. Right click the .exe file and select Run As Administrator. The double click the .exe to Run it. This will lead
    you into the 7z which is the program.
    If the desktop is not working as the destination for the Adobe Premiere Elements 12 Folder which will be present after the 7z has completed, then set it to Documents.
    In the Adobe Premiere Elements 12 Folder, double click the PRE12 Folder to find the Setup.exe from which you will
    install the program.
    I will be back in a moment to add the link to last night's thread where we went through what you are going through now.
    Make sure at the onset that you have the right files to be used with your specific operating system.
    ATR
    Add On...This is last night's thread on this type of issue
    Premeire elements 12 will only download as files...

Maybe you are looking for

  • How do i get another installation cd, ive lost mine, it is for the hp c4580

    i just want to buy another installation cd please can someone help... it's for the   hp photo all in one c4580

  • Voice recordings on old ipods

    Our preschool teacher wants to record her own readings of favorite books on ipods that the kids can check out.  I'd like to ask parents to donate old ipods.  Can I still buy attachments that will record voice for 5th gen and earlier?  If so, how earl

  • IPhoto just crashes... even when trying to rebuild database

    I have iPhoto '06, with the latest software update (as of today), and it doesn't work at all: Whenever I try to start it, it shows a "loading" screen for about 10 seconds and then just disappears (i.e. crashes). My crashreporter logfile includes: Exc

  • Textarea w/character counter problem

    Hi! We use a textarea with character counter and limited its max width to 500 chars. If max 500 chars have been inserted, then input stops after 500 chars. That works fine in MS Internet Explorer. Even if you insert CR/LF inputs (ENTER button), the m

  • A205-S4587 Harddrive Issue

    Hello MVPs there, I am having a problem with my laptop. I have an A205-S4587 model and I was running a Vista Home Premium.  About two weeks ago, I upgraded my hard drive to 500GB, Seagate 7200 rpm from the original 110GB. I made sure it was detected