简体   繁体   中英

How to include a SQL Server CE database file in appdata folder using wix installer

I have created a Windows application in which I have used a SQL Server CE database. Further, I have used Wix installer to create installer for this application.

After installing application, when I run application as administrator, everything is fine.

But when I run application without administrator privileges, I get an exception:

Access to the database file is not allowed

I want to know the procedure to add the .sdf file into Wix installer so that it creates a separate folder below the AppData folder, and places the .sdf file there.

Any help will be highly appreciated.

Thanks

考虑通过在代码中创建文件来嵌入资源,也可以只使用SqlCeEngine.CreateDatabase创建文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM