rprussell
Posts: 38
Joined: Tue Feb 24, 2009 5:34 pm

How do I load a registry value at startup?

Hi, all -

I could use to preserve some values (install path, SQL Server name/database instance, etc) between an initial install and a new Setup.EXE with the automatic upgrade feature turned on - I'd like to skip the screens where the user has already entered this info from the first time around.

Realizing that the automatic update is doing an uninstall/reinstall, my guess is that the best way to preserve this info is to put it in the registry.

I was very handily able to create registry entries to store the values. My question is, how would I go about reading them back out of the registry at the start of the UI sequence on a subsequent run?

Thanks,
Rob
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How do I load a registry value at startup?

Hi Rob,

You can read the registry entries by using searches. Perhaps this how-to will help you (the approach is the same).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rprussell
Posts: 38
Joined: Tue Feb 24, 2009 5:34 pm

Re: How do I load a registry value at startup?

Thanks!

I will check it out.

Rob

Return to “Common Problems”