How to write to the user's My Documents directory with installer when the user used 'Run As Administrator'

前端 未结 3 1762
-上瘾入骨i
-上瘾入骨i 2020-12-06 13:10

I have a program that needs to create files in the My Document directory on installation. This is a strict fixed requirement, there is no changing this. Problem is that if t

3条回答
  •  余生分开走
    2020-12-06 13:27

    This article might provide you some guidance on how to work around the elevation,

    http://www.codeproject.com/Articles/18946/High-elevation-can-be-bad-for-your-application-How

    Generally speaking, it gives you a chance to execute your executable (which creates files under My Documents) at the end of installation without elevation.

提交回复
热议问题