So, I've got this code that lets me know if certain databases are installed or not:
function CheckDatabase(serverProperty, databaseProperty, checkProperty) { var serverName = Session.Property(serverProperty); var connectionString = "Provider=SQLOLEDB;Data Source=" + serverName + ";Integrated Security=SSPI"; var connection = new ActiveXObject("ADODB.Connection"); connection.Open(connectionString); var databaseName = Session.Property(databaseProperty); var command = "SELECT CASE WHEN DB_ID('" + databaseName + "') IS NULL THEN 0 ELSE 1 END"; var records = connection.Execute(command); var exists = Number(records(0)); Session.Propery(checkProperty) = exists; connection.Close(); } And it seems to work like a charm right up to the point I try to execute "Session.Propery(checkProperty) = exists;" At that point it hits me with a "script error -2146827850, Microsoft JScript runtime error: Object doesn't support this property or method" Is there something I'm missing or should I be taking a different approach entirely? Thanks - Rich ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users