Write to AppData directory using InnoIDE?
Asked Answered
C

3

9

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?

Cellophane answered 1/3, 2011 at 7:38 Comment(1)
An elevated setup can not reliably write to the user's profile. This should be left to the application or write data to {commonappdata} for the application to read from.Lowbrow
C
15

Arg, got it.

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

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

Cellophane answered 1/3, 2011 at 7:46 Comment(1)
This do not work.. i have to write the the same folder... and do not work. Am using Windows 7 64 bits.Calculous
H
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.

Highstepper answered 17/3, 2011 at 12:27 Comment(0)
G
2

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://mcmap.net/q/1172258/-inno-setup-install-script-and-windows-7

Grindstone answered 16/7, 2016 at 2:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.