Our UI allows the user to choose between the two, setting a WINDOWS_AUTH property based on the user's choice. The downside to using the current SQLUser tag methodology as the determining factor is we have to create two components for each database create tag and condition those based on the WINDOWS_AUTH property. This is fine when you are only referencing a few SQLScripts or SQLStrings. For complicated databases; however, there can many scripts that need to be executed and it makes it the installation more prone to error and much more complicated by requiring these tags be duplicated.
Would it be possible to include something like the following? Maybe it would be better to allow the sqluser tag to still remain as the condition, but if the user specifies a WINDOWS_AUTH property, that could be the condition.
I'm including the code I've changed below, any ideas?
Dana
scadb.cpp - starting around line 110
// if a user was specified
// need to add get property of Windows_Auth (set in MSI) right here...
DWORD dwLen = MAX_PATH;
TCHAR szAuth[MAX_PATH] = {'0'};
if (ERROR_SUCCESS != MsiGetProperty(WcaGetInstallHandle(), _T("WINDOWS_AUTH"), szAuth, &dwLen))
{
ExitOnFailure(hr = E_FAIL, "Failed to retrieve windows_auth property");
}
int iUseAuth = _ttoi(szAuth);
if (0==iUseAuth)
{
psd->fUseIntegratedAuth = FALSE;
hr = ScaGetUser(pwzData, &psd->scau);
ExitOnFailure1(hr, "Failed to get user information for database: '%S'", psd->wzKey);
}
else
{
psd->fUseIntegratedAuth = TRUE;
// integrated authorization doesn't have a User record
}
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ WiX-devs mailing list WiX-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-devs