See GlobalConfig at the operation documentation 
http://doc-snapshot.qt-project.org/qtifw-master/operations.html

function Component() {}

Component.prototype.createOperations = function()
{
  // call the base create operations function
  component.createOperations();    component.addOperation("GlobalConfig", 
<your_registry_path_on_windows_or_filename_on_*x>, <key>, <value>)
}

This creates an operation which saves the old value (for unregistration) and 
set the new value.



If you only want to check some variable to have some different behaviour in the 
installer use:

installer.value(<your_registry_path> + "/" + <your_key>, <your_default_value>)


Hopefully this helps.

Cheers Tim

________________________________
Von: [email protected] 
[[email protected]]" im Auftrag von 
"Richard Gerd Kuesters [[email protected]]
Gesendet: Mittwoch, 4. September 2013 15:05
An: [email protected]
Betreff: [Development] qt installer - user register access

Hi all!

I've been working on top of Qt installer framework in the last week, so I could 
drop the usage of NSIS. But, to do that, I need to access, in Windows, the user 
registry (ex. HKEY_FOOBAR).

Is there a way to do this? I've search all over the place, and didn't find any 
kind of example or code that can help me with that. Or maybe I didn't dig 
enough :)

If someone can give me a hint, I'll be much obliged.


Kind regards,
Richard.
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to