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

  • SEARCH
  • Home
  • 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 6364541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:10:36+00:00 2026-05-25T00:10:36+00:00

I have a Native WinApi C++ Application that finds media(.wmv, .mp3 etc.) files in

  • 0

I have a Native WinApi C++ Application that finds media(.wmv, .mp3 etc.) files in a specified directory & creates random playlists. The first time the application is run(& only the first time) I want to prompt the user to specify a ‘home’ directory that the Application will always check for media files & create a playlist from.

My Problem: I dont know of a way how I could determine when the Application is run for the 1st time?

Is there a standard way, maybe a Win32 function that I can use to detect when the Application is run for the 1st time?

Some ideas I have come up with are: (but they seem like hacks or overkill(installer idea))

  • The application .exe is 322kb(which is tiny & doesn’t require an
    installer right?) in size so I could create an installer (I was
    thinking if someone is installing the application then I know its the
    first run & I can prompt them then).
  • I could have a text file(or xml) called appData.txt & have the 1st
    line where I store the home path directory. So “home_path=undefined”,
    on application run, I look in the text file, if the home_path ==
    undefined then I prompt them to specify a home path if its not undefined then I read that directory for media files.

Any ideas of how I can determine when my Application is run for the very first time?

  • 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-05-25T00:10:37+00:00Added an answer on May 25, 2026 at 12:10 am

    In the installer you could create a registry value for your program.

    Then when you start your program, check the registry value.
    When you run the program for the first time update that value to so you know it’s been run already.

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

Sidebar

Related Questions

I have a lot of configuration files that modify how my application behaves. I
I know that PHP doesn't yet have native Enumerations. But I have become accustomed
I have a native VC++ project that uses a dll (which is not in
Hi i have native ios app And i have old version that not compitible
I have a native Delphi TFrame that emulates Roy Tanck's Cumulus Tag Cloud viewer,
I have a native (FBML) Facebook Application. I do not want to push the
I have a native api function which looks like: DWORD WINAPI WlanRegisterNotification( __in HANDLE
I'm working with sqlite and qt. I understand that sqlite doesn't have native user
I have an native C++ dll, some header files and the import library. Is
I have a native application written in C++. I would like to write an

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.