Subject RE: [firebird-support] FB Embedded and Windows Vista (again)
Author Luis Madaleno - m@gnisoft®
Hi Mark,

I know that. I just wanted to keep things simple for end users when
installing.
Users are accustomed to have files in the same folder as the application
executable, and I wanted to keep things like always were.

I am already changing the installation script to separate app files from
data files.

It's very simple to get system folders in windows. Just use
Windows.SHGetFolderPath(0, CSIDL_COMMON_APPDATA, 0, 0, P);.


Luis Madaleno


-----Mensagem original-----
De: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] Em nome de Mark Rotteveel
Enviada: sexta-feira, 26 de Junho de 2009 14:41
Para: firebird-support@yahoogroups.com
Assunto: Re: [firebird-support] FB Embedded and Windows Vista (again)

You should not put userdata in Program Files, that is disallowed by Windows
Vista and higher. I am not exactly up to speed to the current Microsoft
standard for file-placement, but I believe you need to use the folder
C:\ProgramData for general data not specific to a user (and I believe that
there is a environment variable pointing to the correct folder).

That it worked under Windows XP and earlier does not mean that it was the
recommended method (it was not).

Mark

> Hi,
>
> I know this is a wide discussed topic here, but even after reading many
> posts and done many Google searches I can't find a solution for this.
>
> When using FB embedded under Vista/Win 7 my application fails to start.
>
> I am using FB 2.1.2 Embedded, installed under c:\program
> files\company\product\.
>

> The error I get is this:
>
> MyDM.MainDatabase:
>
> This user does not have privilege to perform this operation on this
> object.No permission for read-write access to database C:\PROGRAM
> FILES\MY_COMPANY\MY_PRODUCT\MY_DATABASE.FDB.
>
> I already changed the firebird.conf to set IpcName = Global\FIREBIRD ,
> created a manifest file, but nothing seems to work.
>
> I know I can run the app with admin rights, but I want users to be able to
> install and run the program without complications just like they do in XP.
>
> At this time I keep inform users that they should disable the UAC or right
> click in the link and choose to run as admin, but this is not good, since
> I
> don't see other programs with this problem.
>
> Is there any real solution for this problem?
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu. Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links