Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup User Home Path

I would like my installer to put some files into a users home path, (the path that the Windows %USERPROFILE% environment variable points to, and the path Qt's QDir::homePath() returns).

I have looked at the Inno Setup Constants page, but can't find the path I am looking for.

like image 475
oggmonster Avatar asked Nov 27 '22 07:11

oggmonster


2 Answers

Use environment variables {%USERPROFILE} or {%HOMEPATH}.

Update

As Martin pointed out in the comments, {%HOMEPATH} shouldn't be used because it has no disk name (e.g., \Users\username).

like image 160
Andreas Avatar answered Dec 05 '22 22:12

Andreas


For user specific application data you should use the constant {userappdata} which points to the application data folder. In this location you can create a folder for your application to store user specific files in.

like image 32
Daniel Hedberg Avatar answered Dec 05 '22 22:12

Daniel Hedberg