Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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:


  1. When i run script : it has to install the dmg file which is located inside one desktop folder say 'New Folder'
  2. 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.

OS X Mountain Lion (10.8.1)

Posted on Apr 18, 2013 9:12 AM

Reply
14 replies

Apr 19, 2013 2:17 PM in response to BDAqua

Thanks a lot i can able to run through all the commands :


I place the dmg file on Desktop


cd ~/Desktop

hdiutil attach CDX_Player_8.0.dmg

cd /Volumes/CDX_Player_8.0.pkg

sudo installer -allowUntrusted -pkg CDX_Player_8.0.pkg -target "/"

.....here it ask me for admin password ..i gave password and then it throws the installtion failed(the installer encounted an error that caused the installation to fail)message

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

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.