I'm using WiX 3.0.4130.0 and I'm trying to figure out how to attach a database. I'm getting a runtime error using this method:
<Component Id="Component2" Guid="c57c91e1-d185-49c1-91f9-fc41a26298a3"> <File Id="MDF" Name="MyDb.mdf" Source="MyDb.mdf" KeyPath="yes" /> <File Id="LDF" Name="MyDb_log.ldf" Source="MyDb_log.ldf" /> <sql:SqlDatabase Id="DB1" Server="[DBSERVERNAME]" Database="[DBNAME]" DropOnUninstall="yes"> <sql:SqlString Id="SqlCmd1" ExecuteOnInstall="yes" SQL="CREATE DATABASE [\[][DBNAME][\]] ON (FILENAME=N'[#MDF]') FOR ATTACH" /> </sql:SqlDatabase> </Component> The log file looks good, but the error looks like it's trying to access the database before it's been created or something. What am I doing wrong? Tim ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users