Subject Re: [firebird-support] FB Embedded and Windows Vista (again)
Author Fulvio Senore
I had the same problem some time with a program that stores data in an
Access database. Having everything in the same folder is a big plus for
that kind of programs.

I ended up installing everything in a custom folder outside predefined
folders, something like "C:\MyCompany\MyProgram".
It might not be an elegant solution but it works well, and when users
need to migrate the program from an older computer to a newer one they
just need to copy a single folder.

I think that it should work also for a program that uses an embedded
copy of Firebird.

Fulvio Senore


Luis Madaleno - m@gnisoft® ha scritto:
> 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?