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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Microsoft Support > Windows Vista Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Reply
 
Thread Tools
Old 03-09-2008, 03:11 PM   #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
raycomp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-09-2008, 10:22 PM   #2 (permalink)
Moderator, Microsoft Support
 
jcgriff2's Avatar
 
Join Date: Sep 2007
Location: New Jersey, USA
Posts: 5,385
OS: Vista SP1 x64, x86 / XP SP3 Pro, Media, Home / IBM TSO/ISPF

My System

Re: Vista is picking up wrong .ini file. Desperate

Quote:
Originally Posted by raycomp View Post
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



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

__________________





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.
jcgriff2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-10-2008, 07:21 AM   #3 (permalink)
Registered User
 
Join Date: Oct 2007
Posts: 15
OS: Vista home


Re: Vista is picking up wrong .ini file. Desperate

Thanks. Great help - solved my problem
raycomp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 09:37 AM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82