![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Oct 2007
Posts: 15
OS: Vista home
|
Vista is picking up wrong .ini file. Desperate
Vista is picking up wrong .ini file. Dificult to explain but I have developed a program in VB 6 and when I run the program from inside VB6 it picks up the correct .ini file in the development directory. eg INIFileName = App.Path & "\Data\Payroll.ini" If I then create instalation package using VB Package and Deployment wizard it installs the program correctly with the Payroll.ini in directory as selected eg C:\Program Files\payroll\Data. If I open this .ini file it displays the correct information. If I however run the installed program it picks up an outdated (previouse copy of the .ini file?) from somewhere and display the outdated information.
Doing a search for Payroll.ini it finds only the file in my VB 6 development directory AND NOT the one in the program directory. No trace of the Payroll.ini with data as displyed in the program although the Payroll.ini is in the directory. If I open it is the same as in the development directory. Strange thing is I can open it and it displays the correct info BUT if I change the data and Save then I get the following: Cannot create the C:\Program Files\payroll\Data\Payroll.ini Make sure the path and file name are correct. If I install this on my Windows XP Desktop then all is working correctly. Vista however is baffeling as I do not know where it picks up the old .ini file with outdated data. Is Vista compatible with VB6? Desperate for enlightenment |
|
|
|
|
|
#2 (permalink) | |
|
Moderator, Microsoft Support
Join Date: Sep 2007
Location: New Jersey, USA
Posts: 5,385
OS: Vista SP1 x64, x86 / XP SP3 Pro, Media, Home / IBM TSO/ISPF
|
Re: Vista is picking up wrong .ini file. Desperate
Quote:
Good Evening, raycomp. Welcome to the Tech Support Forum - Vista. The first place that I would look would be in the Virtual Store folder located several folders down under the logon ID used when any modification occurs to the Program Folders directory - %LOCALAPPDATA%\Virtual Store (c:\users\yourusername\AppData\Local\Virtual Store) In this folder, you should find the virtualized copies of any files that your application modified in the Program Folders folder. The original copies remain back in the PF folder. It all has to do with file permission settings. So, when you go to the Program Files directory and open the *.ini file, you are really opening up the virtual copy in the \users\AppData...\ folder. Make sense? It took a while for me. When you try to save changes in the Program Files folder, you cannot, as you do not have sufficient file permission privileges to do so. You may want to try execution at an elevated level by right-clicking on the icon, then selecting "Run as Administrator". I hope that I answered more questions than I may have left you with. If you would like any help with file permissions or if you cannot locate the Virtual Store folder, please let me know. Regards. . . jcgriff2
__________________
![]() SysInternals Suite • BSOD Bugchecks • Media Fire • Belarc Advisor • MS TechNet • MS NTDE/CPR MSDN Err Cds • Everest Home v2.20 • CCleaner • Memtest86+ • MS Help & Support Live SysInternals AutoRuns • Auslogics Defrag • McAfee RT • Norton RT • Kaspersky RT • MS One Care RT• AVG8 If you were expecting a reply from me and I have not yet done so, please send me a PM with a link to your thread. |
|
|
|
|
![]() |
| Thread Tools | |
|
|