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 128109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:34:59+00:00 2026-05-11T05:34:59+00:00

I work on a vb6 application which is having problems with Vista, for the

  • 0

I work on a vb6 application which is having problems with Vista, for the obvious reasons (writing to program files, and other things that are no longer allowed by default).

  • Where should I store application data or user’s saved files?
  • Do I need priviledges to create folders and files, there, too?
  • What other common actions will cause problems?
  • The program has an updater which must download and register files, how do I elevate priviledges when this occurs?

Some of these questions have obvious answers, but I want to get the obvious stuff right.

  • 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. 2026-05-11T05:35:00+00:00Added an answer on May 11, 2026 at 5:35 am

    Depending upon what you are doing, you might be in for a world of pain. There are no hard and fast answers to any of those questions, but from someone who is going through the same issues right now, here’s what I know.

    1) Where should I store application data or user’s saved files?

    This depends on what you are wanting to do. If you want them per user, store them in Users/AppData, if you want them for all users, store them in Common/AppData

      If SHGetFolderPath(0, CSIDL_COMMON_APPDATA, -1, SHGFP_TYPE_CURRENT, sTempPath) = 0 Then       sCommonAppdata = Left$(sTempPath, InStr(1, sTempPath, Chr(0)) - 1) &  'CompanyName\AppName'   End If 

    Change that to CSIDL_APPDATA for the Users AppData directory. Note: These map to totally different places on the filesystem for XP and Vista so when you are debugging prepare to look in different places.

    2) Do I need priviledges to create folders and files, there, too?

    You need Adminsitrator access to write anything in Program Files, if at all possible don’t do it! We are currently running into issues that the API’s for VB and the standard API’s behave differently on files in Program Files.

    3) What other common actions will cause problems?

    There are lots of hidden gotchas. Just to name a few, you cannot communicate through IPC or Named Pipes to other applications (we have a Service that we were talking to through a Tray Notification Icon and that had to be completely re-written). Anything were you see a UAC notification is very difficult. Also you cannot write to anything in the Registry in LOCAL_MACHINE without Administrator, so you either have to stick to LOCAL_USER or raise credentials (see below).

    4) The program has an updater which must download and register files, how do I elevate priviledges (sic) when this occurs?

    Good luck with this, I highly recommend that you don’t write it in VB6, like I said, the VB6 file api’s appear to access files differently from the standard API’s. If you need to elevate privileges see this post that someone kindly helped me with.

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

Sidebar

Ask A Question

Stats

  • Questions 93k
  • Answers 93k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There's a createAndPromote script in maintenance/ which creates user accounts… May 11, 2026 at 6:35 pm
  • Editorial Team
    Editorial Team added an answer I'm not particularly familiar with jqModal, but try canceling the… May 11, 2026 at 6:35 pm
  • Editorial Team
    Editorial Team added an answer You might try simulated annealing, which has been used successfully… May 11, 2026 at 6:35 pm

Related Questions

Part of my everyday work is maintaining and extending legacy VB6 applications. A common
I have a stored procedure that accepts an xml parameter (SqlDbType.Xml) that is being
I don't intend this to be subjective, but if the answers can be seasoned
Visual Basic 6 sometimes tries to install or complete the installation of other applications

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.