简体   繁体   中英

How to add my database file (.MDF) in app folder using InstallShield Limited in Visual Studio?

I am using InstallShield limited edition in Visual Studio 2013, and I'm having problems of write permission on database. I want to add database file in the app folder - how to do that using InstallShield?

And how to modify connection string for app folder on Windows?

    SqlConnection conn = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename="+Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData)+"\\Drives.mdf;Integrated Security=True; Connect Timeout=60; ");

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