Get Installed directory

Is it possible to get install directory path info?
Windows(registry?) & Macintosh

Hi accellea,
OfCourse you can get the install directory path info?
Use this:
var dir:File = File.applicationDirectory;
trace(dir.url);
It will display you the install directory path

Similar Messages

  • ScriptUI get path to indesign install directory

    Does anyone know if there is a way to get a users path to their install directory?
    I have script, that creates a new menu item when Indesign starts up.  the menu item is clicked, it opens another script.
    Right now, I have the path to the second script hardcoded, which works fine:
         C:\Program Files (x86)\Adobe\Adobe InDesign CS5.5\Scripts\Scripts Panel\DM_Core\DM_RemoveMenu.vbs
    but now I have to give this to other users, and I need to know if there is some way to get the installation path that they have to their indesign.
    Ultimately, what I would like to get is this:
         C:\Program Files (x86)\Adobe\Adobe InDesign CS5.5\Scripts
    I have tried scriptsFolder but that doesn't take me to the right place.
    Anyone have any ideas.
    Thanks,

    This should get you what you want:
    function GetScriptsFolder (){
              var scriptsFolder = null;
              do{
              // On Mac this is a folder inside the app package
                        var appFolder = Folder.startup;
                        if (! appFolder.exists){break;}
                        scriptsFolder = Folder(appFolder + "/Scripts");
                        while (appFolder.exists && ! scriptsFolder.exists){
                                  appFolder = appFolder.parent;
                                  scriptsFolder = Folder(appFolder + "/Scripts");
                        if (! scriptsFolder.exists){
                                  scriptsFolder = null;
                                  break;
              while (false);
              return scriptsFolder;
    Harbs

  • How to get Operating systems Install Directory in Java

    Hey Friends
    I have a problem of getting to know Operating System Install directory in java for my application requriment.Can any body tell me how to know this or send me snippet of code
    THANKS

    Thanks for ur reply but i need to know the Operating System Install directory like c:\Windows & not the jre install directory.Your solution gives the jre installation dir.
    Any suggestions ?
    Thanks & Regards

  • Three agent UR versions gets installed from gateway - SCOM 2012 SP1 UR4

    Hi,
    We have a SCOM 2012 SP1 UR4 installation with several gateways that servers connect to and get installation from.
    We noticed that when the agent get installed on a client server it gets first the agent itself, then UR1, UR2 and last UR4.
    From the XML-section in the task that has installed the agent one can read the following:
    SoftwareUpdateInstalled KB2784734-amd64-Agent.msp;KB2826664-amd64-Agent.msp;KB2880799-amd64-Agent.msp; SoftwareUpdateInstalled
    Below is from the application log of a newly installed server that got the agent installed.
    The question I have is if this is correct? Why are all three UR installed?
    Shouldn't it be enough with the latest version of UR? Are they not cumulative?
    Can I simply delete the older versions in the agent directory of the Gateway?
    Regards S-E
    Windows Installer installed the product. Product Name: System Center 2012 - Operations Manager Agent.
    Product Version: 7.0.9538.0. Product Language: 0. Manufacturer: Microsoft Corporation.
    Installation success or error status: 0.
    Windows Installer installed an update. Product Name: System Center 2012 - Operations Manager Agent.
    Product Version: 7.0.9538.0. Product Language: 0. Manufacturer: Microsoft Corporation.
    Update Name: System Center 2012 - Operations Manager SP1 UR1 Update Patch.
    Installation success or error status: 0.
    Windows Installer installed an update. Product Name: System Center 2012 - Operations Manager Agent.
    Product Version: 7.0.9538.0. Product Language: 0. Manufacturer: Microsoft Corporation.
    Update Name: System Center 2012 - Operations Manager SP1 UR2 Update Patch.
    Installation success or error status: 0.
    Windows Installer installed an update. Product Name: System Center 2012 - Operations Manager Agent.
    Product Version: 7.0.9538.0. Product Language: 0. Manufacturer: Microsoft Corporation.
    Update Name: System Center 2012 - Operations Manager SP1 UR4 Update Patch.
    Installation success or error status: 0.
    Windows Installer installed the product. Product Name: Active Directory Management Pack Helper Object.
    Product Version: 1.1.0. Product Language: 1033. Manufacturer: Microsoft Corporation.
    Installation success or error status: 0.

    Hi,
    This should be normal, as we can see in the below two articles. When applying Update Rollup 2, UR1 is listed there, and when applying Update Rollup 3, UR1 and UR2 is listed there also.
    http://blogs.technet.com/b/kevinholman/archive/2013/04/11/applying-update-rollup-2-ur2-to-opsmgr-2012-sp1.aspx
    http://blogs.technet.com/b/kevinholman/archive/2013/09/27/applying-update-rollup-3-ur3-to-opsmgr-2012-sp1.aspx
    For example, UR3 can be applied to System Center Operations Manager 2012 SP1 (as released) or a SCOM 2012 SP1 deployment that has had UR1 or UR2 already applied.
    Regards,
    Yan Li
    Regards, Yan Li

  • OKI 5500n driver does not get installed......

    I tried it on Macbook Pro intel and MacPro xenon.
    in os 10.5.3 the printer just stopped working!!!
    When I install the new driver from oki.com It appears that is is getting installed properly but I can not find the driver. I created a separate folder but still does not get installed!!!!
    Please help!!!

    I just got this working, after calling Okidata at 1-800-oki-data as someone suggested. I had tried installing all the drivers from the oki web site which apparently was not the best thing to do.
    The final procedure that worked was:
    1) Move Library/Printers/Okidata folder to trash and empty trash
    2) Move all other folders in that Library/Printers directory, EXCEPT for PPDs) to a temporary directory on the desktop
    3) Reboot
    4) Install OSX5C5500E driver
    5) Open System Preferences/Print&Fax
    6) Click + to add a a printer
    7) IGNORE THE OKI PRINTER THAT APPEARS THERE
    8) Select "More Printers"
    9) Under Oki USB, a printer driver will show up - choose that one.
    10) Print - it works now!
    11) Move other printer drivers back into Library/Printers
    12) Enjoy using Okidata printer rather than buying lots of HP ink.

  • Problem to  install Directory Server 5.1 SP2 on Solaris

    Hi
    I need to install Directory Server 5.1 SP2 on Solaris 8. When I was asked to provide system user and system group, I provide "root" and "system". As a result, the installation fail message was shown and abort the installation.
    However, I was install the Directory Server 5.1 SP1 on solaris 8 successfully by using "root" and "system". Does anybody know why?
    Thanks and Regards,
    William Siu

    But i've more than 2 Go of free disk space !!!!
    "Tim Muratet" <[email protected]> wrote:
    >
    Sure...Get more disk space.
    "coolys" <[email protected]> wrote in message
    news:3a252a26$[email protected]..
    hi,when i decompress the weblogic510.exe file under NT, in the end of theself extracting i have the message below :"The decompression of %s failed.
    there may not be enough free disk space available in the TEMP"Can anybody
    help to resolve this problems.thanks for yours reponses.

  • Files missing from install directory

    not sure what's happened to my computer but I can no longer install programs or updates for programs as I get the message "files missing from install directory"
    How did they get corrupt in the first place? I get this when trying to download yahoo messenger of all programs...duh!  I'm getting pretty frustrated since this has only started a month ago and I've been hoping something would fix itself but no....the last time my Toshiba service station updated was Jan 24 and now it says unable to connect with server....yet I got here to post a message and can get to the internet so don't understand why the updates can get in?
    any advice?

    that can be a problem with your windows.. your OS..
    rebuilding your OS should be able to fix it.
    oOo
    *Read EULA before installing any software.

  • Urgent: Want to get the directory listing

    Hi,
    My iAS and iWS reside on separate unix machines.
    My pdf files being a static content reside on iWS.
    My application which is deployed on iAS, wants to
    know the names of the pdf files residing on iWS.
    Can anyone tell me, as to whether there is any way
    for an application deployed on iAS to get the directory
    listing of files residing on a separate machine.
    Is there any API which will be of help ?.
    I guess there must be some APIs associated with the
    web connector installed on the machine where iWS is installed.
    Regards,
    Amar.

    <i>Can anyone tell me, as to whether there is any way
    for an application deployed on iAS to get the directory
    listing of files residing on a separate machine.</i>
    No. More specifically, the appserver doesn't have any special awareness of external filesystems. (The webconnector does not have any API's that would expose the webserver's files. That would be a huge security violation.)
    You could always NFS mount the webserver so that the appserver could see it. This has some security concerns, but you are going to have security concerns anytime that you are exposing your webserver's files directly.

  • Cd_links: could not get current directory

    I am installing Oracle8 in Linux and that's the error that I am
    getting: cd_links: could not get current directory
    Does anyone know where is cd_links?
    null

    Claudia (guest) wrote:
    : I am installing Oracle8 in Linux and that's the error that I am
    : getting: cd_links: could not get current directory
    : Does anyone know where is cd_links?
    Which Oracle version are you installing? It's the Enterprise
    Edition or the Standard Edition, did you download it from the
    web? or you got the cd?
    null

  • Jwsdp installer doesn't create install directory

    Hi, I tried installing JWSDP 1.5 and JWSDP 2.0, both with the same result: the installer exists after a short pause after prompting for the install directory.
    Installation Directory: [usr/local/jwsdp-2.0]
    Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1
    root@somehost#
    And here is the version of Java I am using:
    java version "1.5.0_10"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_10-b03, mixed mode)
    This is on Debian Sarge.
    How can I perform a successful install? Any help would be greatly appreciated.
    Mike

    There is no install log. However, I was able to resolve my issue since I posted this problem last night.
    For others that might have the same problem, here's the resolution:
    It's a general problem with the installer. If you run the self-extracting shell script with the "-console" argument, it fails silently when it gets to the "installation directory" setup. Extracting the JAR file from the installer I was able to pass debugging arguments to the JWSDP class. With that I got a warning saying that the installer expected a GUI variable to be set. Setting my DISPLAY environment variable to ":0.0" resolved the issue.

  • Install exits right after choosing install directory

    Trying to install 2004Q2, July 2004, Rev. A of Java Studio Creator on Windows XP service pack 2, 1 gig memory, 8 gig free hard disk space.
    Install quietly exits after I accept the default C:\Sun\Creator install directory. That directory gets created but is empty. Based on the install FAQ, tried copying the creator-2004q2-windows-en.exe to C:\temp, created creator-2004q2-windows-en.sb with is.debug=1 there, attempt install from there, same result - empty install directory. No log file present.
    I really want to use this tool on a project that's coming up but my time window is closing quickly. Any suggestions?

    Check if the file name has any other typo. As I mentioned in the previous reply could you please try -is:log <logfile> command line option without '<' and '>' as follows ?
    c:\temp> creator-2004q2-windows-en.exe -is:log your_log_file_name
    You still need to have the creator-2004q2-windows-en.sp in that directory.
    Thanks.

  • Get installation directory programmatically

    is it possible to get user installation directory of jdk programmatically?
    i.e. j2se was installed to
    f:\mydir\jdk14
    how to get the directory in java program?
    java.home is run-time environment directory looks like c:\program file\..., not user installation directory i needed.
    thx

    The JDK is usually NOT installed in the same place as the JRE.We are obviously talking about different things.
    In my JDK C:\j2sdk1.4.2_05 there is a JRE C:\j2sdk1.4.2_05\jre
    They can be installed in different places but I assume you are talking about different installs in different places. i.e. the JDK and JRE have been installed seperately.
    I need to obtain user installation directory programmatically You can look at the PATH and the registry. However if the user installs more than one JDK, which copy are you going to chose. Most applications which need a seperate JDK search for the JDK when installed and then ask the user which JDK to use.
    - System.getProperties() will not get the directory - i have tested with all jdks and all windows OS.
    One thing you can do with ant is to write the directory used to build an application into the application for it to find. I would concider this bad practice and unreliable however.
    who can answer my Q?The reason the JDK is seperate from the JRE is so that once development has be done you can run the JRE and not need the development portions which come with the JDK. If you need still need components of the JDK, why don't you start the application in the JDK.

  • What happens to the apps' data, if they were restored to a new device, but apps never get installed?

    This is a super easy scanario. 
    Say in my old phone I have totally 50 apps, 30 purchased under Appel ID (A), and another 20 purchased under a different Apple ID, (B).
    The old device is iOS5 and I turned on iCloud backup and back up everything (data of all apps).
    I get a new device, restore from iCloud, wait until everything (photo, messages, settings, most importantly, data of all 50 apps) are restoed to the new phone.
    The first thing happen after the first reboot, and it will prompt me to log on my Apple ID, to install apps.
    What if, at this moment I decied to only sign on with Apple ID (A), and just don't want to use all 20 apps that I purchased under Apple ID (B) anymore?
    Is the data of those 20 apps become leftover /  orphane on my new phone, and just no way to clean them up?  Please notice again, that I did not say "install app and then delete", I know that will clean up the data as well. I mean when data is copied over but app never get installed.

    Game settings and other data is part of the backup:
    iTunes: About iOS backups
    A manual backup before you sync for the first time will save your content to the new PC.
    Follow this user tip by wjosten to save your data and settings to a new PC:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    or this one by turningtest2:
    Recovering your iTunes library from your iPod or iOS device

  • Unable to install Directory Sync tool in windows server 2008 R2 Eneterprise

    Hi,
    I am unable to install Directory Sync  in windows server 2008 R2 Eneterprise.i have joined my machine domain joined computer running Windows Server 2008 r2 enterprise,when i click dirsync.exe then gives below Error.
    The Windows Azure Active Directory Sync tool must be installed on a domain joined computer running Windows Server 2008 Service Pack 2 or later,or Windows Server 2008 r2 Service Pack 1 or later
    Please help on this why this happing when i try to installed DirSync software.
    Regards
    Anil Kumar

    Hi,
    have you already installed .net framwork 3.5 and 4.5.1 on that machine?
    http://technet.microsoft.com/en-us/library/jj151831.aspx
    Also make sure that you run the install command from an elevated command prompt.
    Hope that helps,
    Lutz

  • Is there a way to create a new directory or file in application install directory programatically

    Hi to all,
    Is there a way to create a new directory or file in
    application install directory programatically.
    I want a xml file to be created with in the application
    install directory programatically(not the application storage
    directory)
    I have used the following code snippet:
    var file:File = new File();
    file = File.applicationDirectory;
    file = file.resolvePath("assets");
    if(!file.exists)
    file.createDirectory()
    I am thrown an exception when using this .....Security
    Exception

    Thanks, but my main problem is to delete the locally stored
    data that is stored in the application storage directory when the
    application is uninstalled.
    The data is not being deleted automatically when the
    application is uninstalled, thats why I want to write some file to
    application directory.
    My application is remembering the login username and password
    even I uninstall the application and reinstall the next
    time.

Maybe you are looking for