C# 使用ClickOnce 部署
無法指定安裝路徑,安裝後Access資料庫存放於何處
儲存在使用者 [Documents and Settings] 資料夾中的資料目錄
若想要知道正確路徑,程式碼:
if (ApplicationDeployment.IsNetworkDeployed)
{
ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
textBox1.Text = ad.DataDirectory.ToString();
}
[Documents and Settings] \UserName\Local Settings\Apps\2.0\Data\.................目錄下
全站熱搜