title: Install a .mobileconfig file programatically on iOS 7
body: <p>I have a config file within my app. Can I execute(run) the the config file on a button click?</p>
  
  <p>Currently, I am emailing the file as an attachment to the respective users on a button click and the execution starts when they open the email and tap on the attachment. Since the config file is native, is it possible to run it on a button click?</p>
  
  <p>I am looking into this currently</p>
  
  <p>(<a href="https://stackoverflow.com/questions/2338035/installing-a-configuration-profile-on-iphone-programmatically">Installing a configuration profile on iPhone - programmatically</a>)</p>
  
  <p>Also, here</p>
  
  <p>(<a href="https://stackoverflow.com/questions/11424267/ios-prevent-iphone-configuration-profile-from-being-deleted-or-check-to-see-if">iOS - Prevent iPhone Configuration Profile from being deleted OR check to see if it&#39;s installed</a>)</p>
  
  <p>The answer says that, the only way to install a mobileconfig file is either through safari/mail. But this answer has not yet been approved so not sure if these are still the only options to install the mobile config file.</p>