I'm trying to get the Installer Framework to install into the Program Files directory. In the global config I have the target directory set as such:
<TargetDir>@ApplicationsDir@/Sonarcloud Connect</TargetDir>
<TargetDir>@ApplicationsDir@/Sonarcloud Connect</TargetDir>
To copy to clipboard, switch view to plain text mode
The package for it asks for admin rights:
<RequiresAdminRights>true</RequiresAdminRights>
<RequiresAdminRights>true</RequiresAdminRights>
To copy to clipboard, switch view to plain text mode
When it installs it asks for admin privileges and does so well. But in the last step it fails writing the maintenance tool. I'm assuming it probably dropped admin rights and is trying to install the maintenance utility into the same directory but failing. When I run the installer with admin privileges it installs fine.
Is there a way to force the maintenance tool to be installed with admin privileges as well or at the very least force the entire installer to be run with admin privileges? The people who will be installing it may not be user savvy enough to understand how to make it run with admin privileges.
Attached error:
Screenshot_20180626_090618.png
Bookmarks