Right. An application can't write to Program Files (to its own folder). I had this problem long time ago... so goodbye INI files in this case.
I wonder now if Microsoft's idea was so brilliant!? It doesn't allow to an honest application to store its settings but it allow to a virus to do anything else. I am thinking at a new solution: to write a small application (a loader) which will ask for Admin password and will run the real application with Administrator rights (something like Run As). Of course the 'loader' will store the password for later use. Good, I already spent too much for this protection system. --- Jack <[EMAIL PROTECTED]> wrote: > Hello Cosmin, > > >From my experience only the administrator can install software. > And it's not possible for an application running as non-administrator > to write to the install folder. But you can write to c:\Document and > Settings\[username]\ > > -- > Best regards, > Jack > > Thursday, April 20, 2006, 11:28:29 PM, you wrote: > > > Require your application to be installed by an Administrator OR write to the > > application install directory, not the Windows directory. > > >> -----Original Message----- > >> From: [EMAIL PROTECTED] [mailto:delphi-talk- > >> [EMAIL PROTECTED] On Behalf Of Human > >> Sent: Thursday, April 20, 2006 8:46 PM > >> To: Delphi-Talk Discussion List > >> Subject: Writing to registry under a limited account (Windows 2000/XP) > >> > >> Anybody knows how to write data in C:\Windows and registry while the > >> application run under a > >> limited account (non Administrator). > >> > >> The protection I made for my program works perfectly but only if it runs > >> in an Administration > >> account. > >> Under a limited user it can read but it can't write (of course) in Windows > >> folder, Program files > >> and Windows Registry (except H_Key_CurrentUser). > >> > >> This is not a brilliant idea since the user can create a new account when > >> the program expire, > >> deleting the old one. > >> Can a Delphi application write in protected places or run itself as > >> Administrator? > >> > >> > >> If I choose Christianity then the Islamic will say I'm a pagan. > >> If I choose Islamic then the Buddhism will say I'm a pagan. > >> If I chose Buddhism then the Jewish will say I'm pagan. > >> If I choose no God then everybody will say I'm pagan. > >> Please, can I be free? Can you NOT tell me how I should live MY life? > >> > >> __________________________________________________ > >> Do You Yahoo!? > >> Tired of spam? Yahoo! Mail has the best spam protection around > >> http://mail.yahoo.com > >> __________________________________________________ > >> Delphi-Talk mailing list -> Delphi-Talk@elists.org > >> http://www.elists.org/mailman/listinfo/delphi-talk > > > > > __________________________________________________ > > Delphi-Talk mailing list -> Delphi-Talk@elists.org > > http://www.elists.org/mailman/listinfo/delphi-talk > > __________________________________________________ > Delphi-Talk mailing list -> Delphi-Talk@elists.org > http://www.elists.org/mailman/listinfo/delphi-talk > If I choose Christianity then the Islamic will say I'm a pagan. If I choose Islamic then the Buddhism will say I'm a pagan. If I chose Buddhism then the Jewish will say I'm pagan. If I choose no God then everybody will say I'm pagan. Please, can I be free? Can you NOT tell me how I should live MY life? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk