How to create a more general install package for an AIR app?

Hi,
I have been using the ADT to compile an exe of my AIR app along with some other files I want to distribute. Problem is, I would like to do more general install actions (e.g. copy a bunch of files to the users Documents directory, copy a file to the local store, install fonts etc). Right now I achieve some of these by copying stuff from the application directory on the first run, but that is rather kludgy. Currently I am looking at using InstallShield or InstallAnywhere to do what I want out of the can, but I thought I'd see if anyone has some more AIR-friendly suggestions...
Thanks!

In my case I managed to work around the issues we were having by doing a configuration pass on the first run of the app. That means I had to basically put all the data I needed in my assets directory using the ADT compiler, then determine if it is a first run as follows:
var locationPrefsObj:SharedObject = SharedObject.getLocal("PrefsObj");
if ( !locationPrefsObj.data.hasOwnProperty("appCreatedDate")
|| ( locationPrefsObj.data.appCreatedDate != File.applicationDirectory.creationDate.toString() ) )
     firstRun();
else {
     initConfig();
// initialize an existing config
The firstRun function will obviously be very bespoke, but you need to set the SharedObject at the end of it to make sure it doesn't get called every time.
// this function is only run straight after an install
private function firstRun():void {
     var success:Boolean = false;
     // do your first run stuff here and mark success=true if you are happy   
     if ( success ) {
          // set the appCreatedDate - then a future install can identify dirt left by the previous install
          var locationPrefsObj:SharedObject = SharedObject.getLocal("PrefsObj");
          locationPrefsObj.data.appCreatedDate = File.applicationDirectory.creationDate.toString();
          locationPrefsObj.flush();
Other gotchas I hit:
(1) You can copy things from the assets folder no problem, but to move or delete anything (so as not to leave lots of extra stuff hanging around), you need to (a) run with administrator privileges on Vista and w7 (the elevation happens automatically if you leave the "Run after install" box checked on an ADT install), and (b) work around the Flash security model that says you can't delete anything from a subdirectory of Program Files under any circumstances. I got around this by something like:
// delete a file
new File(File.applicationDirectory.resolvePath("assets/fileToBeDeleted").nativePath).deleteFi le();
It's a bit nasty as it violates the security model, but until ADT lets you put stuff in two install locations I can't see another way to clean up the install properly.
(2) I tried to install fonts (using VB and other stuff), but it is a real mess - the models in all different flavours of Windows seem to be different. I gave up as our software could get around it another way ...
Hope that helps!

Similar Messages

  • How do i get more memory installed on my macbook air

    How do i get more memory installed on my macbook air

    If you are referring to RAM, the Air's RAM is not an upgradeable component. The RAM memory is soldered to the main board, and there are no expansion slots.
    It is the price Air owners pay for miniaturization. Every Air is manufactured with all the memory it will ever have. Shop wisely.
    It is technically possible to upgrade the SSD storage though, but will probably void any warranty.

  • Using Packager for Existing AIR App

    Hi,
    (I'm a total newbie to Flash and almost a newbie to development.)
    What are the considerations when planning to re-package an existing AIR app into an .ipa?  How do I even know what files to include for publishing?
    Thanks,

    One thing to consider is if using Flash CS5 your app might not publish properly or may publish with errors and bugs.  It depends on how you coded the app/flash site.  But if you are using Loader() method in your FLA make sure to include all of the swfs that your swf container file accesses.  If they are not in a subfolder you will have to add them one-by-one to your list of included files.

  • How to Create one more SOA-INFRA under the same domain in weblogic server

    Hi All,
    Can anybody can guide how to create one more soa-infra under the same domain. In order to maintain my composites to be deployed into
    different domains, I need to create one more soa-infra and deployed all the composites under that one.
    Please let me know if any demo is available for this activity to be gets completed.
    Regards,
    CH

    Hi Vijay,
    There are several composites which needs to be deployed and maintained in the server. So, we I'm trying to maintian
    by deploying composites into 3 different SOA-INFRA's so if one is not accessible, we can look into it and others can access the
    composites from another SOA-INFRA instead of creating domains.
    Let me know what will be feasible way to perform this activity.
    Regards,
    CH

  • How to create one more server node for SAP J2EE server?

    Hi,
    Can any one please suggest how to create one more server node for SAP J2EE server? I am using WAS700.
    Thanks and Regards,
    Smriti.

    Hai,
          Login into the Configtool(C:\usr\sap\SID\DVEBMGS<inst no>\j2ee\configtool) if ABAP+JAVA stack or C:\usr\sap\SID\JC<inst no>\j2ee\configtool) if JAVA stack
    click on the instance and and select the addserver button on the top to create a servernode for J2EE server.
    Thanks and Regards,

  • Can't create a silent install package for Captivate 7 with AAMEE

    I'm trying to create a silent install package for Captivate 7. It doesn't appear that this works with AAMEE. Has anyone been able to do this? If it won't be possible with AAMEE, is there a way to do it with cmd line switches?

    Hi,
    You would need to use Adobe Creative Cloud Packager to create a deployment package and deploy Captivate 7 as AAMEE does not supports Captivate 7.
    Please refer the documentation available at - http://helpx.adobe.com/creative-cloud/packager.html
    Hope this helps.
    Regards,
    Sharad
    P.S - Creative Cloud Packager would be deployed under your Adobe LWS account. In case you do not have it available in LWS, then please P.M me your email address and I will get that processed.
    Regards,
    Sharad

  • Install package for NTFS-3G STABLE Version 2012.1.15

    Hi,
    I've had NTFS-3G installed for quite a while in order to be able to read and write to and from NTFS formatted hard disks. I just realized my version is very old and I wanted to install the latest version (NTFS-3G STABLE Version 2012.1.15). When I go to the download page (http://www.tuxera.com/community/ntfs-3g-download/) however I see that the link for the Mac OS X install package
    NTFS-3G for Mac OS X
    takes you to an old blog page with an old version of the software. The main link (http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2012.1.15.tgz) takes you to a .tgz file which, when uncompressed, shows the source code with instructions to be compiled within the Linux platform. I have been googling for quite a while and I can't find a .dmg, .pkg or .mpkg install packages for the latest version. Has anybody been able to install this version on a Mac? If so, can you give me a hand to install it myself? Any pointers to a .dmg, .pkg or .mpkg install package would be really appreciated. Thanks in advance.
    JM

    But they did in the past. You can find the .dmg files for previous versions. In the official user guide you find the following instructions for installation:
    "Installing NTFS-3G is not more complicated than installing any other program, as it uses the standard Mac OS X package format to install itself.
    Just double click the package NTFS-3G.pkg and follow instructions. "
    As I said before, they also provide a link for the current Mac OS X version of the latest stable build of NTFS-3G, not the Tuxera NTFS (which is their commercial product). The link just happens to take you to an outdated page. This makes me think that there must be some compiled package somewhere.
    In case that is not possible, can anybody provide a pointer to instructions on how to compile it from source?
    JM

  • Webinar (Aug 11): How to create Cross-Platform Automated GUI Tests for Java Apps

    Join Squish expert, Amanda Burma, and learn how to create cross-platform automated GUI tests for your Java applications!
    Register here (multiple time slots)
    August 11th 2014
    Duration: 30 minutes plus Q & A
    This webinar will cover:
    General Squish for Java overview
    Automating BDD Scenarios
    Executing Cross-Platform Automated GUI Tests
    Interacting with Java application objects, properties & API
    See you there!
    Unable to attend? Register and we'll send links to future events and access to our webinar archive following the event.
    Webinar schedule
    Learn more about Squish
    Evaluate froglogic squish

    <property name="messaging.client.jar.path" value="Location in your local drive" />
    <property name="messaging.client.jar.name" value="nameOfYourFile.jar" />

  • How to create Characteristic group in CO-PA for assessment purpose

    Hi,
    Can anybody guide me as how to create Characteristic group in CO-PA for assessment of cost center balance to CO-PA?
    Thanks,
    Bijay

    You need to be more specific in your request - are you looking for a sender, or a receiver grouping? Which characteristic? Is it to be all the values in a characteristic, or is it to be groups of those characteristics.
    Have a look at the setting up of hierarchies for characteristics in COPA master data.

  • How do i get more memory on my mac book air? is says that i can add 2 more gig how?

    how do i get more memory on my mac book air? is says that i can add 2 more gig ??? or wat files can i delete

    Macbook Air memory is soldered to the logicboard.
    You can only get 4GB or 8GB (2012 Models) in the Air when you order it that way.  Otherwise, you're stuck with 2GB.
    Unless you're talking about hard drive space - then it is upgradeable - click HERE to see which one corresponds to your model.

  • How to create a custom task in SRM for the standard task

    Hi Gurus,
    How to create a custom task in SRM for the standard task  eg: TS10407929
    regards,
    George.

    from PFTC itself. Same.

  • How To Create A Technical And Business Systems For Web AS ABAP ???

    Hi Experts,
    How To Create A Technical And Business Systems For Web AS ABAP ???
    Please Let me Know All the Step-By-Step Process to Create ????
    Points Will be Given
    Regards
    Khanna

    Hi Sumit,
    When U Told the thing that first time to execute the RZ70 and All i Did this in XI System
    So I got An Entry for the Technical System for XI System.
    Now i Deleted that and Executed RZ70 in R/3.
    When I Executed RZ70, I got this Error.
    <b> "RFC Call failed: Error Opening an RFC Connection "</b>.
    Now I am Unable to see Any Technical System  Under Web As ABAP. It's Showing Empty Now.
    Please Let me know
    Regards
    Khanna

  • How to create distribution list in workflow? for  sending mail or work-item

    Hi,
    How to create distribution list in workflow? for  sending mail or work-item to multiple users.
    Regards,
    Surjith

    Hi Surjith,
    A.Working with Distribution Lists Creating a Distribution List.
    1 Businees Workplace->shared folder - create new subfolder name = WF_distributor
    2.Then click on the distribution list in Businees Workplace.
    say create Name = WF_Vliste
    folder Name = WF_distributor
    3.distribution list content tab
    Enter Recipient (SAP User ID)
    B.Wrkflow Builder
    Find out the dialig step in which u want to use distribution list
    Use workflow Rule 30000012 (SWX_READ_DLI).
    Maintain the binding from workflow container to rule container.
    Just pass the name of the distribution list from WF to Rule container.
    Regards
    Sagar S

  • How to create new requisitioner in sap mm for raising purchase requisition?

    How to create new requisitioner in sap mm for raising purchase requisition?

    Hi Dear,
    There is some link will help you to create Purchase Requisition and other MM Documents.
    http://www.docstoc.com/docs/11307932/SAP-MM-Manual-Create-Purchase-Requistion
    http://www.r3.duke.edu/training/stepbystep/#purch
    http://sapdocs.info/sap/materials-management-2/download-sap-purchasing-user-training-ppt-material/
    Regards
    Aamir

  • How to create a single 'not null ' validation for all the items in a page ?

    Hi everyone ,
    how to create a single 'not null ' validation for all the items in a page ? I have many textfields . Instead of creating 'not null' validation for each item , I would like to create a a single validation control that will serve the purpose
    Thanks & Regards
    Umer

    Nice1 wrote:
    bob , as u said I have done the following :
    1) under create button , there are 9 items and for each item I have set Required to 'Yes'
    2) under delete button , there is 1 item and have set Required to 'Yes' for the item
    3) defined page validation for 9 items under 'create ' button and have set it to fire when 'create ' button clicked
    4) defined page validation for 1 item under 'delete ' button and have set it to fire when 'delete ' button clicked
    now , when I click 'create' button it even shows for the item under 'Delete ' button that it is a required itemSorry, I didn't see this note. The required template won't work, there is no way to attach it to the button.
    The best solution is as the reply a couple replies up
    Create 2 page type validations as a PL/SQL with code
    1st validation
    :P1_ITEM1 IS NOT NULL and :P1_ITEM2 IS NOT NULL ...... and :P1_ITEM9 IS NOT NULL  include all 9 items
    Set the When Button Pressed to the CREATE button
    2nd validation
    :P1_ITEM10 IS NOT NULL
    Set the When Button Pressed to the DELETE buttonI think that's going to be the easiest way to do it.
    Edited by: Bob37 on Apr 27, 2012 12:02 PM

Maybe you are looking for

  • App coded in Crystal XI need to be compatiable with Crystal 2008. Options?

    Dear All, The product I am working on, works fine with Crystal XI. But now task is to make it work for clients that have just Crystal 2008 (not Crystal XI). (Even assuming there is no new feature that Crystal 2008 offer is planned in this existing ap

  • Credit memo request(SO) w.r.t Invoice

    Hi want to create a Credit memo request (sales order) with respect to a invoice. Can any body suggest me a bapi or Fm which will directly create a sales order with input as invoice number? Also all mandatory import export parameters to be filled? Tha

  • Problem with XCode

    I am trying to make an app that makes music once pressed. There are several problems. This is the code: #import "ViewController.h" @implementation ViewController     <--- Incomplete implementation -(IBAction)idcays; {     CFBundleRef mainBundle = CFB

  • Compatible Superdrives?

    The original superdrive, a Pioneer DVR-103, seems to be ready to die. What other superdrive models will be compatible with my system? I would prefer to use Apple OEM, as I'm concerned about being able to boot from this, the only drive in the machine.

  • Extending capacity of a third party RAID - OS X not using extra space

    I have an infortrend RAID which we have added extra drives to for more capacity, the RAID logical volume size has increased and I can see it has gone up from around 6Tb to 7Tb in Disk utility, but we cannot resize the partition to use this increased