PDA

View Full Version : Registry resource entry dialog


SetupJuggler
11-12-2008, 09:30 AM
Using SUF 8.1.1006.0
I'm a newbe on Setup Factory. To add and remove registry keys, I have to do this within the action script. Am I right?. Uninstall may be done with UninstallData.AddItem(UNINDATA_SCRIPTS, sItemData);, tricky but OK.

I'm missing the possibility to insert registry key and values into a project dialog. The key and values should be installed and automaticly uninstalled when the uninstaller runs. The key and value should be constant strings or session variables or localized variables.

That would be a great feature.

Darryl
02-05-2009, 08:25 AM
I'm not sure I understand your suggestion/question. When you're referring to UninstallData.AddItem, were you wanting to add functionality to an existing uninstall that they have not run, instead of the current install being run and created?

Normally the procedure is to use the Registry category actions to create the registry entries during the install on either project or screen events, and then create another set of registry actions to undo what you've created using the same Registry category actions, but this time on the uninstall project or screen events. So in this case, you would not need the UninstallData actions.

I may need further details to help understand the functionality that is missing.

Thanks.

SetupJuggler
03-03-2009, 06:40 AM
Hi, Darryl,

thanks for your reply. This feature was part of my previous installer tool. It was very easy to add a registry entry without any scripting. ;)

Our product needs add a lot of values added into the registry, they should be deleted on uninstall. Within SUF I have to do this, for e.g. within "On Post Install" action, with scripting. Am I right? This is a nice feature and I won't miss it, but sometimes a lot of work to do.

I'll try to explain my suggestion for a second easy way to add values to the registry. A new entry dialog that might be used to add entries, values, keys to the registry where ever you want to have them. Like the Windows registry editor with HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS entry shown. Session Variables should be allowed and expanded automaticly.
A start point may be SUF menu Resources/Registry or Project/Registry to open the new dialog. It would be nice to create more than one registryset. A registryset might be linked with a package, so that it would only be installed, if the package is installed. Before "On Post Install" might be a appropriate time to install the registryset. Another solution might be a new buildin function named Registry.CreateRegistrySet(string NameOfRegistrySet=NIL). If the parameter is left empty, all the registry sets would be created. The uninstall has to delete the values.


-- create registryset from resource
Registry.CreateRegistrySet("RegistrySet#1");
error = Application.GetLastError();


Attached I have an example of the entry dialog for registry resources.



Best regards
Udo

SetupJuggler
05-07-2009, 05:25 AM
Hi, Darryl,

or anyone for IR Staff, I don't have any feedback if my second description of the suggestion is now better to understand. If you need more or another description of my suggestion, please let me know.

Best regards
Udo

Mark
06-03-2009, 10:59 AM
This has been added to our suggestion database.

You might also want to look at the advanced Import Registry Values option in the Setup Factory script editor. You can access it via the Advanced button.

REF: 18686