Write to AppData directory using InnoIDE?

若如初见. 提交于 2019-12-23 07:28:34

问题


I need to write to the:

C:\Users\user\AppData\Roaming\AppName

folder during the setup process. I'm using the InnoIDE program for setup, and it's awesome. However, it seems to be lacking an 'AppData' special folder for easily accessing that directory.

For example, you can use: DestDir: "{app}" to write the application directory.

But how do you get to AppData? Is there a list of all the preset DestDir options?


回答1:


Arg, got it.

{userappdata} → C:\Users\user\AppData\Roaming\AppName

as found here: http://news.jrsoftware.org/news/innosetup/msg74694.html




回答2:


As you said in your own answer, {userappdata} is the one you need. The help manual has a list of all the Inno Setup directory constants.




回答3:


It is not recommend to write to AppData directory using InnoIDE. You better save user-specific data to a shared location first (e.g. under {app}) and have your application copy it from there on first startup.

more https://stackoverflow.com/a/3036259/5929293



来源:https://stackoverflow.com/questions/5151680/write-to-appdata-directory-using-innoide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!