i'm trying to install a database by using the following script, and keeps me
giving the following error:


CreateDatabase:  Error 0x80040e14: failed to create to database: 'test',
error: CREATE FILE encountered operating system error 5(Access is denied.)
while attempting to open or create the physical file 'C:\Program
Files\Company\test30\Databases\test.mdf'.

MSI (s) (44!60) [15:47:16:888]: Product: test30DB -- Error 26201. Error
-2147217900: failed to create SQL database: test, error detail: CREATE FILE
encountered operating system error 5(Access is denied.) while attempting to
open or create the physical file 'C:\Program
Files\Company\test30\Databases\test.mdf'..



<Directory Id="Databases" Name="Databases">
     <Component Id="SqlCreationComponent"
Guid="{972E376E-1689-4e2a-AB0E-F6C2A1388436}">
     <CreateFolder/>
     <sql:SqlDatabase Id="test30" Server="(local)" Instance="SQLEXPRESS"
Database="test" CreateOnInstall="yes" ConfirmOverwrite="yes"
DropOnInstall="no" DropOnUninstall="yes">
                  <sql:SqlFileSpec Id="Mdf" Name="test_mdf"
Filename="[Databases]test.mdf"/>
                  <sql:SqlLogFileSpec Id="Ldf" Name ="test_ldf"
Filename="[Databases]test.ldf"/>
                  <sql:SqlScript Id="testscript" ContinueOnError="no"
ExecuteOnInstall="yes" RollbackOnUninstall="yes" Sequence="1"
BinaryKey="test"/>
                </sql:SqlDatabase>
     </Component>
</Directory>

What can it be?

thanks in advance!
jose
-- 
View this message in context: 
http://www.nabble.com/CreateDatabase-error%2C-create-database-specifying-files-locations-tp15300337p15300337.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to