We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rbeuker
Posts: 3
Joined: Mon Mar 07, 2005 1:37 pm

Adding registry key with subsequent number

Hi all,

I'm a new user of Advanced Installer and really like it a lot--thanks for making this great tool! :D I was hoping that someone could help me with the following...

I'd like to have Advanced Installer read a specific registry key and then look for the highest number at the end of all keys that start with a specific name--this is to determine what new key should be created. For example:

[HKEY_LOCAL_MACHINE\SOFTWARE\Productname]
"DocumentPath"="%Path%\\Folder"
"DocumentPath1"="%Path%\\Folder1"
"DocumentPath2"="%Path%\\Folder2"
"DocumentPath3"="%Path%\\Folder3"

In this example the 'highest' key is "DocumentPath3". In that case I want Advanced Installer to add a "DocumentPath4" key with a value I specify.

Is this possible? If so, how?

Thanks!

Ronald
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Hi Ronald and Thanks!

The only way to do that is by using a Custom Action.

Regards,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rbeuker
Posts: 3
Joined: Mon Mar 07, 2005 1:37 pm

Hi Cata,

Thank you for your quick reply! :D

I assume it takes a real programmer to create such a custom action? :oops: Do you (or does someone else who reads this) have an example of how to do this?

Thanks,

Ronald
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Yup, you need to write code. :)

We'll have a tutorial on the subject (and sample code) in the Help as soon as possible.

Regards,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rbeuker
Posts: 3
Joined: Mon Mar 07, 2005 1:37 pm

Hi Cata,

>>We'll have a tutorial on the subject (and sample code) in the Help as soon as possible.<<

Great, thanks! :)

Best - Ronald

Return to “Common Problems”