How to merge a registry only if machine first 3 letters=FYR?
Hi,
I've an application and registry key which has license. This key needs to be merged only if Machine name=fyr.
please help me how to do this.
Thanks in advance.
I'm using adminstudio 11.5 to repackage this.
Answers (2)
There are multiple ways I think - a conditional component OR a custom action which checks machine name and installs the key.
You're going to have to write some vbscript to detect the machine name and based on it having the correct name, 'fyr*', set a property.
That property can then be used to condition your registry install feature to determine whether it's installed or not.
These links may help http://www.itninja.com/question/vbscript-to-set-a-property-and-reuse-the-said-property http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q106900&sliceId=
That's the approach that springs to mind, and as no one else is biting on this I thought I'd make the suggestion.
Dunnpy
EDIT: Someone bit whilst I was writing this - different method, see which one fits your purpose.