Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. installer.updateFinished() never called

installer.updateFinished() never called

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 183 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
    m1keall1son
    wrote on last edited by
    #1

    Re: QtIFw: updateFinished does not called

    bumping this topic.

    I have a file in the target dir i have to write to on installation and on update. Installation works fine but the update mode maintenance tool does not even call the ControlScript or the updateFinished() signal at all. I know this because my message doesn't appear in the log and the file is not appended with the text. I need admin rights because i'm on windows and the file lives next to the executable in Program Files.

    //installer FW 3.0
    function Controller()
    {
    	console.log("setting up control script"); //works on install, does not work on update
    	installer.installationFinished.connect(writeEnv); //works on install
    	installer.updateFinished.connect(writeEnv); //does not work on update
    }
    
    writeEnv = function()
    {
    	console.log("gaining rights...");
    	if(installer.gainAdminRights())
    	{
    		installer.performOperation("AppendFile", ["@TargetDir@/myFile", "blah blah blah"]);
    		console.log("appended text to file");
    	}
    	else
    	{
    		console.log("[ERROR] didn't have permission to append to the file.");
    	}
    }
    
    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