Hi,

We have been developing apps for use under Windows since the Windows 3.1 days. Microsoft published some application design "rules" (esp where executables and data should be stored) way back then but didn't really enforce them. However, they did say that they would enforce at some future date ! Many developers (including us) thought they new better and implemented their own standards. Starting with MS-Vista and definitely in Windows-7 & Windows 2008 Server, Microsoft are now actively enforcing those rules.

As a result of the "enforcement" by Microsoft, we had to change our application (especially the folders & data structures) to match the "new" rules. The changes didn't really affect the operation of our apps - we just had to "follow the rules"

PS When you look at the "rules" set out by Microsoft, you realise that they do make sense and to change your app is usually not that onerous.

These are a very brief summary of the more pertinent items - check MSDN for more details ...

--> Folder usage
Microsoft want all applications to install their executables under
   {ProgramFiles}            C:\Program Files\Company\....

and all application data under one of two folder structures
   {CommonAppData}    C:\ProgramData\Company\...
or
   {UserAppData}            C:\Users\Owner\AppData\Local\Company\...

As the local NetAdmin can change the location of these via Group Policies, it is better to retrieve the path to these folders using WinAPI calls as your app initiates.

--> Shared Memory
This was being used by many "nasties" (virus/worm/etc) and is now generally blocked (it can still be used but you need to check MSDN)

--> Installers & Admin Accounts
It is better to 'require' the installation to occur under a local admin account and for the installer to perform the necessary steps
   -    create 'base' application folder structures
   -    establish appropriate security on these folder structures
   -    create User/Password for any service account to be used
   -    assign User Rights as required
   -    install any services (incl. Nexus Engine)

This is relatively easy to do using INNO setup - we assume it also can be done using other installers.

We found that a few simple changes removed almost all of the installation and operational issues we had without the need to require users be setup as Administrators.

Regards,
Brian

--------------------------------------------------
From: "Frank Reynolds" <[email protected]>
Sent: Saturday, November 13, 2010 1:47 PM
To: "Delphi-Talk Discussion List" <[email protected]>
Subject: Re: NexusDB - Windows 7

Hi Andre,

Yes, thanks for that, I 'think' I have managed to set the user as the Administrator, but as I am not fully up to speed with Win 7 yet, there is some uncertainty - it is quite confusing in the way I seem to be doing it - more than one way in, and some of the settings don't make sense (typical M$ stuff).

I think the main thing I am really after, how does one set up the different apps, NexusDB server, turn it on, and install the Delphi App automatically (or remotely), say using Inno (preferred) or InstallAware installers?

I may be dumb (don't answer that!!!!!), but some of my clients leave me for dead ......... (how they even use that roll of paper, I don't know....)

Cheers,

Frank

Hi Frank

I'm not sure if this is appropriate but some apps I've written in Delphi
need to be run as Administrator under Windows 7 otherwise there are all
sorts of problems with creating folders etc...

On Thu, Nov 11, 2010 at 11:32 AM, Frank Reynolds<[email protected]>wrote:

Hi All,

I have several projects that use NexusDB (and go very well) (still running
on XP).

I need to put one of them onto a Windows-7 laptop, the NexusDB Server, the
program, and the NexusDB Enterprise Manager.

I've done this once before, onto another Win-7 laptop, and it worked then,
but I can't remember what I did.

When I try it now, I just keep getting messages that the NexusDB is locked,
or that a file is locked.

Any ideas?

Maybe I need to install it using Inno, but what settings do I use then?

MTIA

Frank Reynolds
__________________________________________________
Delphi-Talk mailing list ->  [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk




__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1153 / Virus Database: 424/3253 - Release Date: 11/12/10

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Reply via email to