How to get folder path for ClickOnce application

前端 未结 7 1713
Happy的楠姐
Happy的楠姐 2020-11-29 16:45

I need to write a file in the same folder where a console ClickOnce .application (executable file) resides. The folder where it launches from.

I tried u

相关标签:
7条回答
  • 2020-11-29 17:22

    path is pointing to a subfolder under c:\Documents & Settings

    That's right. ClickOnce applications are installed under the profile of the user who installed them. Did you take the path that retrieving the info from the executing assembly gave you, and go check it out?

    On windows Vista and Windows 7, you will find the ClickOnce cache here:

    c:\users\username\AppData\Local\Apps\2.0\obfuscatedfoldername\obfuscatedfoldername
    

    On Windows XP, you will find it here:

    C:\Documents and Settings\username\LocalSettings\Apps\2.0\obfuscatedfoldername\obfuscatedfoldername
    
    0 讨论(0)
提交回复
热议问题