Results 1 to 2 of 2

Thread: installer scripting Settings operation

  1. #1
    Join Date
    Mar 2015
    Posts
    5
    Thanks
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Exclamation installer scripting Settings operation

    Hi,
    I want to remove windows registry keys using the qt installer framework, while uninstalling?
    Does anyone succeeded in removing a settings key from the (registry in windows) using the Settings operation in component script?

    I've used:
    Qt Code:
    1. component.addOperation("Execute", "cmd /C echo do nothing", "UNDOEXECUTE", "cmd /C @TargetDir@\\CleanWindowsRegistry.bat /f");
    To copy to clipboard, switch view to plain text mode 

    where CleanWindowsRegistry.bat consists of
    Qt Code:
    1. reg delete HKEY_CURRENT_USER\Software\SugarTrumpet\player /f
    To copy to clipboard, switch view to plain text mode 

    This works for administrator user but if the uninstaller is used from standard windows user the bat is executed with administrator privileges and does not removes the registry folder.


    I think much cleaner, multi-platform, way is to use the Settings operation,
    something like
    Qt Code:
    1. component.addOperation("Settings", "HKEY_CURRENT_USER\\Software\\SugarTrumpet", "remove", "player", "0");
    To copy to clipboard, switch view to plain text mode 
    But it's not working.

    Except the ifw manual, I can't find more detailed information or any example about the operations and possible argument in component scrip?

    Everything best, Goran.

  2. #2
    Join Date
    Mar 2015
    Posts
    5
    Thanks
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: installer scripting Settings operation


Similar Threads

  1. Scripting in Qt
    By Kamalpreet in forum Newbie
    Replies: 3
    Last Post: 13th November 2014, 16:23
  2. Why prefer scripting instead Qt/C++ on webdevelopment?
    By Alir3z4 in forum Qt Programming
    Replies: 17
    Last Post: 12th November 2011, 04:09
  3. Scripting question
    By EricF in forum Qt Programming
    Replies: 2
    Last Post: 31st January 2008, 15:54
  4. Scripting engine
    By stevey in forum Qt Programming
    Replies: 2
    Last Post: 27th October 2006, 12:36
  5. Scripting questions
    By fullmetalcoder in forum General Discussion
    Replies: 1
    Last Post: 22nd May 2006, 14:02

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.