This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- VB6, Windows 7, setup and data file locations
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2011
03:11 PM
VB6, Windows 7, setup and data file locations
Hi, I've been searching around for info to help me solve a problem and can't find what I'm looking for... I'm try to make an app run on windows 7 that is developed under vb6 on an XP op system. Yeah.
I've recently learned that I made a big mistake years ago by locating setup files (text and access mdb) in the app.path. So now different users get errors because of missing file errors...
I only want to have one set of these files for all user accounts and I don't mind changing my code to move all of the setup files into another folder (commonfiles ???) But I can't find a (preferrably) easy way to change my code to set the paths to these files in their new location. Only app.data is accepted by vb6 but I'm pretty sure that doesn't solve my problem.
Any help would be appreciated. Thanks, Don
I've recently learned that I made a big mistake years ago by locating setup files (text and access mdb) in the app.path. So now different users get errors because of missing file errors...
I only want to have one set of these files for all user accounts and I don't mind changing my code to move all of the setup files into another folder (commonfiles ???) But I can't find a (preferrably) easy way to change my code to set the paths to these files in their new location. Only app.data is accepted by vb6 but I'm pretty sure that doesn't solve my problem.
Any help would be appreciated. Thanks, Don
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 03, 2011
10:45 AM
How "good" does a question have to be here to get a response ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 07, 2011
01:06 PM
Hi Don,
I think the lack of a response is more due to the question reading like a VB6 question, rather than a question of how to modify your InstallShield project.
I'm not convinced this is the case, having read through it a few times, so I'll do my best here.
App.Path resolves the to location that your application itself resides in. Is this under Program Files, or is it under the user profile? If it's under the user profile, the question becomes: "How do other users end up with a shortcut that points to another user's profile folder?"
There might be some confusion here as well in where the *.mdb and other files live. Can you post in literal detail as to where these paths resolve to on a Vista/7 system? (i.e. c:\Program Files\My Application, c:\users\AppData\My Application, etc.)
Lastly, as a shot in the dark, does your application currently run fine for other users when right clicking and selecting "Run as Administrator"?
Regards,
I think the lack of a response is more due to the question reading like a VB6 question, rather than a question of how to modify your InstallShield project.
I'm not convinced this is the case, having read through it a few times, so I'll do my best here.
App.Path resolves the to location that your application itself resides in. Is this under Program Files, or is it under the user profile? If it's under the user profile, the question becomes: "How do other users end up with a shortcut that points to another user's profile folder?"
There might be some confusion here as well in where the *.mdb and other files live. Can you post in literal detail as to where these paths resolve to on a Vista/7 system? (i.e. c:\Program Files\My Application, c:\users\AppData\My Application, etc.)
Lastly, as a shot in the dark, does your application currently run fine for other users when right clicking and selecting "Run as Administrator"?
Regards,