Hi,
I want to create a simple registry key value as below (string) only if its not found or data is empty.
Path : HKEY_LOCAL_MACHINE\Softwares\MyApp
Value Name : AppConfig
Data: XXXYYYZZZ
Sounds like a simple thing but I cant find any option in setup editor.
When I use Add New Value dialog it shows me Append, Prepend and Overwite options but there is no way I can skip overwite if value already present. I have written VB Script custom action for this but I really want to avoid VBScript custom action if I can use inbuilt Registry features. I found on msdn that Microsoft do not recommand VB Script Custom action.
Side note: I also dont want to delete this value during uninstall... ( I did this by doing Right click on MyApp Key -> Properies and uncheck "Delete on uninstall" option)
Thank you in advanced.
Nayan Patel