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. Qt Installer Framework - TargetDirectoryInUse in CLI

Qt Installer Framework - TargetDirectoryInUse in CLI

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 535 Views 1 Watching
  • 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.
  • N Offline
    N Offline
    ngochm
    wrote on last edited by ngochm
    #1

    Hi,
    I am using QT Installer Framework 4.0.1 and I have strange problem with command line interface.
    After I uninstalled my program with option RemoveTargetDir = false set in config.xml ( I want to keep data files after uninstall ), if I run this command to re-install my program in same directory

    MyProgramInstaller.exe --root C:\TestProgram --confirm-command install
    

    it will cause an error:

    TargetDirectoryInUse : Error : The directory you selected already exists and contains an installation. Choose a different target for installation.
    

    But strange thing is if I install by using GUI instead of CLI, the installer give no warning at all and I still can install my program to that folder. So how do I surpass this error and force installer to use that directory from CLI ?

    Edit: I am testing on Windows 7

    1 Reply Last reply
    1

    • Login

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