Registry, user properties and quiet installs. - Advanced Installer Community
yggdrasil
Posts: 1
Joined: Mon Jan 28, 2019 9:46 am

Registry, user properties and quiet installs.

Hi,

I have a user defined property, PROP1, wich is linked to a simple edit control and it gets stored in registry when installing. This registry setting is preserved when uninstalling so that if you install again the preserved registry setting is read and stored to PROP1 (by doing a registry search). This way the user dont need to type in the property again if the same value is wanted for the property (but it can also be changed by typing something else in the control).

This works alright except that if the user decides to do a quiet installation and set the property like:
install.msi /quiet /PROP1=Value123

If a previous value exists in registry it will be stored to PROP1 (by the registry search) but the user wanted Value123 in this case.

So what I want I guess is a conditional registry search (only do the search if not running a quiet install), but I dont see a way to do that (not able to set any conditions).

Any other way of solving this?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Registry, user properties and quiet installs.

Hello and welcome to our forums,

That is not working because, from what I can see, you are not correctly setting the property from command line. The correct way to set a property from command line is like this:

Code: Select all

msiexec /i "path_to_your_msi" /quiet PROP1="Value123"
not like this:

Code: Select all

msiexec /i "path_to_your_msi" /quiet /PROP1="Value123"
(without the "/" character)

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”