Hi

Not sure what the UAC behaviour is, but our install creates and upgrades 
databases on 2008, so in theory it is possible.   I am assuming you are using 
SQL Server - you can check if it is permissions type issue by looking in the 
SQL Management Log - see if there are login problems or other errors around the 
create.

I can't find the original blog for this information, but for a login issue 
there will be two entries in the SQL log:

2006-02-27 00:02:00.34 Logon     Error: 18456, Severity: 14, State: 8.
2006-02-27 00:02:00.34 Logon     Login failed for user '<user name>'. [CLIENT: 
<ip address>]

The State in the first entry gives the actual error:

ERROR STATE     ERROR DESCRIPTION
2 and 5        Invalid userid
6              Attempt to use a Windows login name with SQL Authentication
7              Login disabled and password mismatch
8               Password mismatch
9               Invalid password
11 and 12      Valid login but server access failure
13             SQL Server service paused
16                Does not have access to Database
18             Change password required


Hope this helps

Michael

-----Original Message-----
From: JesseBearden [mailto:jesse.bear...@oce.com] 
Sent: Thursday, 11 August 2011 5:46 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Create Database failed

I /believe/ my question is:

If an installation has InstalledPrivileges="Elevated" then are
deferred/impersonated custom actions run with elevated privileges on a UAC
enabled environment?

My issue is:

I've written a small msi that creates a database and runs some scripts. 
This works fine on Windows 2003, but when I tried to run it on Windows 7
with UAC on I get an error that it was unable to create the database due to
insufficient privileges.  

I know the admin group has rights to the database, but admin group doesn't
mean a ton with UAC on(Until you elevate).  The specific user running the
installation does not have rights to the database other than being part of
the admin group, which has rights to the database.

The installation runs correctly from an elevated prompt.  The odd part is
that the uninstall correctly drops the database when launched via right
click or add/remove programs, and I'd assume that that requires the same
rights.  



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Create-Database-failed-tp6673860p6673860.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to