Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Installer Framework - "Cannot write maintenance tool" installing as Administrator on Windows
Forum Updated to NodeBB v4.3 + New Features

Installer Framework - "Cannot write maintenance tool" installing as Administrator on Windows

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 731 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael A. Leonetti
    wrote on 26 Jun 2018, 13:13 last edited by
    #1

    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>
    

    The package for it asks for admin rights:
    <RequiresAdminRights>true</RequiresAdminRights>

    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.

    0_1530018417544_Screenshot_20180626_090618.png

    T 1 Reply Last reply 29 Jul 2019, 03:01
    0
    • M Michael A. Leonetti
      26 Jun 2018, 13:13

      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>
      

      The package for it asks for admin rights:
      <RequiresAdminRights>true</RequiresAdminRights>

      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.

      0_1530018417544_Screenshot_20180626_090618.png

      T Offline
      T Offline
      toushi
      wrote on 29 Jul 2019, 03:01 last edited by
      #2

      @michael-a-leonetti , I also encounter this problem, did you find solution? thanks!

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved