Linux – Make Wine run its applications as user profile, not Administrator

linuxpostgresqlwine

For a very specific case, I need to install PostgreSQL under Wine to run a Windows application that packs it's own installation of PostgreSQL even if PostgreSQL is already installed, for security reasons.

The installation goes smoothly until it needs to install PostgreSQL. During its installation, PostgreSQL throws an error saying that it does not allow to be installed as Administrator (again, for security reasons).

So my only problem is that Wine reports to the applications it runs as if they were being run by Administrator.

Two possible solutions are:

  1. Make Wine report it's running its applications by another user than Administrator, but still with admin privileges,
    or;

  2. Force PostgreSQL to be installed and run by Administrator, but as I'm not sure if I really can change any option or argument in this PostgreSQL installation specifically, the solution above is the best choice.

I can't figure out a way to make it. Is it possible?

I would go as far as patching Wine's source code, if necessary.

Best Answer

you can try to perform the installation on windows then copy the postgresql database, files and registry to wine.

http://wine-wiki.org/index.php/Advanced_Wine_User_Information#Copying_Software_across_from_a_native_Windows_Installation

Related Question