I have several Windows 7 users who, when installing and logging in, independently request an administrator password. When this happens, Inno Setup installs a program for this user, but he places the sample data files in the administrator's document folder.
What can I do to make sure Inno Setup places the sample data in the Documents folder where it belongs?
[Files] Source: "C:\dev\Installer Files\Chess Openings Wizard 2016\Game Trees\*.*"; DestDir: "{code:GetDataDir}\Game Trees"; Flags: uninsneveruninstall recursesubdirs function GetDataDir(Param: String): String; begin { Return the selected DataDir } Result := DataDirPage.Values[0]; end;
source share