Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8577367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:08:37+00:00 2026-06-11T20:08:37+00:00

I have a small software for MacOS with a simple dmg installer (Open, drag

  • 0

I have a small software for MacOS with a simple dmg installer (Open, drag and drop to Application folder, you know). My problem is, that the software writes a small ini file inside the .app package and if I update the software, this file is lost, because the old package is removed before writing the new one.

My question is, if any of you know an elegant solution for this. The user should be able to save the file in any place e. g. desktop and the ini file should be moved into the new package. I don’t want to save this file outside the .app package, because this would leave private data on the computer if the user just removes the package.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:08:38+00:00Added an answer on June 11, 2026 at 8:08 pm

    Saving data into the aplication bundle is no good practice,
    for future release, please implement another solution.

    To solve the current problem, I can think of two solutions:

    Add two files to the .dmg file

    • The new application.
    • Backuptool: An simple AppleScript to backup the file would do the job.

    Make sure to notify the user to run the backup before replacing the application.
    The user might however forget to run the backup, and loose data.

    Create an installer

    Another option would be to write an installer using PackageMaker.
    PackageMaker provides options to run scripts before updating the Application.
    Add an pre-installation script that backups the data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a small software application that needs to serve as a simple planning
I have a small- to medium-size project that I am doing for my software
I have small problem with simple code. This code is working properly on x86
I have a small .NET application that requires the .NET Framework 4 Client Profile.
I have a small problem while working on software for a Surface: I have
Background : I have a small Python application that makes life for developers releasing
I have some small piece of software that calculates the number of factors of
I have a small software application where i have some plugins in the form
I have a Problem. I'm involved in a Windows CE Software Project that runs
I have created a small application in Xcode. How can i make that application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.