I use Inno Setup to install documents / files, not the application, and this is primarily for Windows 7 users. Thus, my DestDir
based on {userdocs}
so that all files will be installed in the folder below this document library.
The problem occurs when I use the same installer to install the TTF font. This requires elevated privileges ( admin
or superuser
). The problem that I see is that if a non-administrator user starts the installation, they are correctly requested via UAC for the administrator / superuser password ... but at this point DestDir
for installation is changed to the administrator's document folder and not the user folder documents. Is there a way around this or prevent it?
For example, a non-Admin Fre
has a document path:
C:\Users\Fred\My Documents\
And if I do not include the TTF font as part of the installation, this is what the installer will use as the base path for the installation of {userdocs}
, and it works fine.
If I include the TTF font as part of the installation with the same Admin user who is not an administrator, by the time the installation is complete, {userdocs}
become
C:\Users\AdminUser\My Documents\
... which is not the intended result ... you just need administrator privileges for the font installation part and you need files installed in the actual area of โโuser documents.
Thanks.
source share