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.