Install and uninstall of dmg file using Apple script in Mac 10.6 and higher version.

Hi ,
Could anyone please help me to write a Apple script to Install dmg file and do clean uninstall in Mac 10.6.8 and higher version.
My requirement is:
When i run script : it has to install the dmg file which is located inside one desktop folder say 'New Folder'
I need to do clean unistall when i run the script: i need to delete the folder in ~/Library- locate folder say  'CPSPCSHOWSERVER'' move to trash and from Terminal type in command "rm -r ~/.CPS' to completely delte this folder.
Really appreciated all ur help!!
Thanks,
KT.

http://macfidelity.de/2008/08/30/how-to-mount-a-dmg-from-terminal-in-mac-os-x/in dex.html
http://osxdaily.com/2011/12/17/mount-a-dmg-from-the-command-line-in-mac-os-x/
http://hints.macworld.com/article.php?story=20030614230204397
http://www.commandlinefu.com/commands/view/2031/install-an-mpkg-from-the-command -line-on-osx

Similar Messages

  • Install DMG file using a UNIX command

    How do you install a DMG file using ARD? I've managed to get it to copy across and mount on the target machine but that's where I get stuck.
    I watched the tutorial videos and according to them it is possible.
    Anyone have any hints?

    If you're copying the DMG to the client workstation and opening it, you probably then will need to take control of the workstation and run the installer from there. Most such installers require some manual intervention and so can't be run from a command line.
    If the DMG contains the software as a Mac OS X package, use the Install Packages command under the ARD Manage menu and push the package to the workstations that way. If the DMG doesn't have a standard package but you have a number of workstations that you need to install on, you may find it easier to build your own package. You can find some information on this in the ARD Administrator's Guide, and there are third-party tools such as JAMF's Composer that can help you build a package more easily.
    Regards.

  • Can I use "apple script" to auto input xml file to final cut pro and auto export mp4 file?

    Now, I'v a lot of  final cut pro x 's xml, I want to use ""apple script" or other method to auto input xml and output mp4 in final cut pro x . How can I finish it?

    Where did the XML come from? What did it consist of?

  • I want to instal windows 7 using bootcamp on my mac book pro and how large do i have to make the partition if i want to use it for gaming?

    i want to instal windows 7 using bootcamp on my mac book pro and how large do i have to make the partition if i want to use it for gaming?

    "At least 16 GB of free space on the disk onto which you’re installing for 32-bit, or 20 GB for 64-bit (for Microsoft Windows and Windows-based applications)."
    That's what Apple proposes in here Boot Camp: System requirements for Microsoft Windows
    Personally I would double these amounts and add to that the diskspace needed for your Windows games.
    Stefan

  • How to install leopard from a DMG file instead of DVD

    How to install leopard from a DMG file instead of DVD, When i open this file, click restart, NOTHING happened!!!!!!

    Use Disk Utility to restore the DMG to a blank partition, then use the Startup Disk preferences pane to reboot from that partition. Why not just install from the DVD, though?

  • Hi. I have an iPhone and a Mac,and my sister has iPad2 and iPhone also.we both use a pc to sync our devices and use one App ID in our devices.but we want to use personal iCloud to achieve our personal files.how can I use iCloud in this situation?

    Hi. I have an iPhone and a Mac,and my sister has iPad2 and iPhone also.we both use a pc to sync our devices and use one App ID in our devices.but we want to use personal iCloud to achieve our personal files.how can I use iCloud in this situation?

    You will need to setup a new Apple ID for your sister.  You have to have an Apple ID and iDevice connected and using that account to get an iCloud account.

  • How-do-i-use apple calaendar to-allow-my-staff-and-i-to-share-calendars-but-not-have-my-alarms-going-off-on- their-ihones

    how-do-i-use apple calaendar to-allow-my-staff-and-i-to-share-calendars-but-not-have-my-alarms-going-off-on- their-ihones
    Really annoying can it be done.?
    Searched everywhere for an answer surely other people have had this problem
    Cheers

    https://discussions.apple.com/message/19818985#19818985

  • HT204268; I have purchases on an aol login pre 2008 and all recent stuff under an apple id. I currently see and use everything when i login with the apple id. After March 31st will my apple id account still show and contain all?

    HT204268; I have purchases on an aol login pre 2008 and all recent stuff under an apple id. I currently see and use everything when i login with the apple id. After March 31st will my apple id account still show and contain all?
    I understand the instructions to create a new account id (apple id) from the old aol account. However, does this mean my purchases will be split into 2 accounts; or does the fact that I currently see everything under my apple id (regardless of the purchased by username) mean this will all still appear in my current account as it does now?

    You see them where when you login your non-AOL account ?
    If you currently have two accounts (the AOL username account and an email address account) then you will continue to have two accounts, and nothing should change when you update the AOL account to be an email address (apart from how you access that account).
    You will just be renaming the account to have an email address for accessing it, not creating a new account.

  • Hello, my name is Karan Taneja and i have been a loyal Apple customer. I have been using Apple since it introduced iphone 4 and have been upgrading/buying every new phone Apple introduces after that. I was always happy and surprized to see Apple doing so

    Hello, my name is Karan Taneja and i have been a loyal Apple customer.
    I have been using Apple since it introduced iphone 4 and have been upgrading/buying every new phone Apple introduces after that.
    I was always happy and surprized to see Apple doing so good to its customers.
    Unfortunately, i experienced some thing really unprofessional and different this time.
    It begun suddenly one day when i tried to charge my phone, the phone was on silent mode and as usual the phone vibrated when i kept it for charge.
    After a few seconds the phone vibrated twice or thrice again when i re-inserted the cable thinking it might be loose.
    It continued to charge well when i left the room for 2 hours and finally when i returned i could see a damaged i phone 5
    lying on the floor and the phone vibrating continuously and i figured out there was a fault with the cable and the
    current wasnt flowing continuously due to which the phone continued to vibrate and fell off the shelf.
    Next day i took the iphone to Apple service centre at Saket which was closed.
    Thinking its August 15 and so the store might be closed i went back to home and waited for the next day but unfortunately could not turn up since
    i had to go to work on odd timings.
    I again went to the same service centre on 17th August 2013 and saw the service centre closed again when i tried to contact
    the other service centre and was informed about Saket's service centre already been shut down.
    There was no hoarding/ banner any kind of intimation for the customers.
    Since 18th August was Sunday and i was occupied on 19th August i went to service centre at Ansal Plaza Khel Gaon Marg on
    20th August 2013 to complaint about the Faulty Cable and the damaged caused to my iphone 5 due to the same.
    I very well explained the same to one of the person at the receiving desk at the service centre who accepted the cable
    but explained me that he doesnt have the authority to accept my iphone without permission from the technical support people
    who will be able to help me in that case and gave me the toll free number.
    i Tried to reach the toll free number and finally managed to get online with a technical support executives who too all my details and
    summary of the problem i experienced and finally kept me on hold for almost 10 minutes ormore after which he said he said that my
    case cannot be considered and while the discussion was on, the call was disconnected and i was left frustrated as i still was at the service centre
    but finally i left with no hope from Apple .
    I tried to reach again at the toll free number, and finally managed to talk to a well behaved person who assured me of considering my case and suggested
    me to go back to the service centre and advice the the person at the recieving end there to get me connected to the technical support team when i reach so that i could
    submit my phone but, since, it was already around 4:30 and the service centre was about to shut and due to traffic
    conditions all around i thought of visiting the service centre next day.
    On 21st August 2013, i went back to the service centre and spoke to the one of the store person who adviced the case to the manager Mr. Alok ( as i remember )
    who was really rude to tell me that i will have to call the technical support team on my own and then he will connect and that its not his work and all that .
    I finally connected to one of the senior technical support executives Mr.Mohamed Azharuddin K who understood my concern and spoke to the manager of the store to accept
    my iphone.
    My iphone was finally collected and i was assured i would get a call back next day from the service centre about the update.
    It was now 22nd August 2013, no update was given,no call was received, i tried to call the service centre at 12:30, they were unaware about my case and knew only about the cable and said will call me
    back very shortly.
    I called back at 2:30, still no update, at 4:30 i called back again when i was told that my case cannot be considered and i can collect my phone.
    Similar discussion was held with Mr.Mohamed Azharuddin K.
    I knew by the time i will reach the service centre would again close.
    He told me that my case cannot be considered since the cable was recieved in the dead condition and wasnt working at all unlike what i told him about the cable.
    On 23th August 2013, i went back to the service centre and collected my phone. When i asked about my old cable and told them that it was working and i wanted the technician
    to check it properly when i handed it over, they had no answer but to say its already shipped. I spoke to the manager who said that he never told any body that the cable
    was received in dead condition and he only conveyed to other authorities that the cable had fault .
    I finally dont know what to do and came back with the new cable.
    I just visited my time, petrol and parking charges in getting the cable replaced.
    If i calculated i have spent around 16 hours and 2000 worth of money in just getting the cable replaced and have a broken phone in hand.
    More than a weeks torture.
    Is that the way apple compensates for its fault ????????????????
    I will make sure that i never buy any thing from Apple and advice all the people i know to not trust Apple blindly.

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

  • How to create and edit a .ini file using java

    Hi All...
    Pls help me in creating and editing an .ini file using java...
    thanks in advance
    Regards,
    sathya

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • I have two Apple ID's.  How do I move all the songs and videos that I bought using Apple ID "A" over to Apple ID "B".  I plan to use Apple ID "B" from here on out.  Thanks

    I want to move all the songs and videos that I purchased using Apple ID "A" over to Apple ID "B". 
    I plan to use Apple ID "B" from here on out. 
    Thanks to all. 
    I'm using Macbook Air
    OS X ver 10.9.3

    You can't do this yourself; if desired, you can ask the iTunes Store staff if they'll do it, but they probably won't.
    (108496)

  • How to read the data from Excel file and Store in XML file using java

    Hi All,
    I got a problem with Excel file.
    My problem is how to read the data from Excel file and Store in XML file using java excel api.
    For getting the data from Excel file what are all the steps i need to follow to get the correct result.
    Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
    Thanks & Regards,
    Sreenu,
    [email protected],
    india,

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

  • HT1918 Hello!  Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3).

    Hello!
    Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3). How user of Apple can see these attachments? Recommend please any apps for it.

    Hello!
    Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3). How user of Apple can see these attachments? Recommend please any apps for it.

  • Can I use Apple store from a country other than the country I live in.  Example:  I live in USA and want to use Apple store in Thailand to buy and download thai content.

    Can I use Apple store from a country other than the country I live in.  Example:  I live in USA and want to use Apple store in Thailand to buy and download thai content.

    No, you can only buy content from your own country's store - to be able to buy form another store you need a valid billing address in that country and be in that country when buying from it. You can try requesting that the content that you want be added to the US store, but ultimately it's the content providers (record companies, film studios etc) that will have to grant Apple a license to sell it there : http://www.apple.com/feedback/itunes.html

  • I purchased the One to One when I bought my MacBook Pro, and I sent it in to Apple in order for the pictures and iTunes to be transfered. When I got it home no pictures or iTunes files were on it. What do I do?

    I purchased the One to One when I bought my MacBook Pro, and I sent it in to Apple in order for the pictures and iTunes to be transfered. When I got it home no pictures or iTunes files were on it. What do I do?

    Welcome to Apple Support Communities
    If you already set up your Mac when you sent it, you should know that Migration Assistant creates a new user with the migrated data. Go to  > Log Out, and log in the new user

Maybe you are looking for