Delphi 4 IDE and applications in Vista
- From: "Paul E. Schoen" <paul@xxxxxxxxxxxxxx>
- Date: Fri, 12 Mar 2010 15:52:07 -0500
I have always developed and installed my applications on XP machines, and everything seems to work OK. But when my XP machine crashed, I started using my Vista laptop, and there have been some problems.
One of my applications uses the BDE, and when I tried to run it, I got an error involving file permissions on the C:\PDOXUSRS.NET file. I am running using an identity (Paul) with administrator privileges, but many of my files and folders seem to be shared with another (Guest) identity. I tried to stop sharing but it goes into a long process and reports that it cannot stop sharing.
I can run Delphi with administrator privileges, and then (after confirming it), I can build the project in the IDE and run it OK. I have created a setup file using Inno Setup which creates an icon that points to the application in the Program Files folder, but I get the file permissions error. I can set the properties of the icon to run as administrator, and that works OK until the next install.
Is there a way to set the icon properties from a script that I can run during install?
Maybe I just need to delete the "Guest" user account, and keep the "Paul" account as administrator. I really don't want to have to keep verifying my administrator status to run this program. And I really want to make it easy for the end user to run my application.
Perhaps I can specify that the program is designed for XP, and not fully supported on Vista. And probably most customers will either have XP, or get a new computer with Win7, which also has an XP compatibility mode. But I haven't tried it yet.
This software is designed to be used on a computer that is mostly dedicated to the test machine it interfaces with through USB. But it does have database functions and to use them it will probably need to be networked to an office PC for reports and maintenance functions, or be capable of being removed from the hardware and used outside of the shop environment. And I don't know if the customer will want to have multiple accounts set up, and allow test personnel to perform the testing but only IT people with administrator rights to work with the database.
I've always had just one full access account on my computers, but I added the other accounts on my Vista machine to test how things work. And it seems that it uses a virtual store for the Program Data when running under a named account, but apparently the PDOXUSRS.NET file in the root is physically located there, which may be causing most of the problems.
Sorry for the long explanation, but I'm looking for an easy way out of this problem, and if it's not easy, then I'll be satisfied with the "hard way", if it works :)
Thanks,
Paul
.
- Follow-Ups:
- Re: Delphi 4 IDE and applications in Vista
- From: Maarten Wiltink
- Re: Delphi 4 IDE and applications in Vista
- Prev by Date: Re: LoadFromFile
- Next by Date: Delphi 4 IDE and applications in Vista
- Previous by thread: Save the stack trace?
- Next by thread: Re: Delphi 4 IDE and applications in Vista
- Index(es):
Relevant Pages
|