anasrallah
Posts: 14
Joined: Tue Dec 13, 2011 7:52 pm

Registry not taking new property value

I created a custom dialog with a simple edit text box having a property name ServerName with default value "Server", I then created a registry value under hkey_local_machine/software/product/ServerName with data set to [ServerName].
when I run the installer I get prompted to enter the server name from my default dialog, I enter per instance "New Server", when installation is done I get in the registry "Server" instead of "New Server" like expected.

I checked the log and it see that it's setting the ServerName property to "New Server". but then on the registry section its setting the registry to "Server"

what I am doing wrong here?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Registry not taking new property value

Hi and welcome to Advanced Installer forums,
what I am doing wrong here?
You are using a private property( e.g. ServerName ) instead of a public property( e.g. SERVER_NAME ). For more information, please follow this user guide article.

Since you are new, I highly recommend you read our tutorials for a better understanding of how to use Advanced Installer to efficiently deploy your products.This will also help you better understand support team's suggestions now and in the future. The Simple and Professional tutorials are especially important.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anasrallah
Posts: 14
Joined: Tue Dec 13, 2011 7:52 pm

Re: Registry not taking new property value

Thanks for the answer, I'll def. check the tutorial.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Registry not taking new property value

You're welcome, glad to assist.

Return to “Common Problems”