我需要知道clickonce应用程序的安装位置。有没有办法通过C#找到它?
发布于 2012-11-07 18:45:36
作为参考,物理文件最终位于此目录中:在Win XP中为C:\Documents and Settings\userprofile\Local Settings\Apps,在Windows 7中为C:\Users\AppData\Local\Apps。
您还可以在this question中阅读有关这方面的更多信息。
发布于 2012-11-07 18:32:27
尝试Assembly.GetExecutingAssembly(),然后检查结果的Location属性。这将返回当前正在执行的程序集的路径。
https://stackoverflow.com/questions/13267784
复制相似问题