Scripting Question

How to merge a registry only if machine first 3 letters=FYR?

06/14/2013 1868 views


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.

0 Comments   [ + ] Show comments


All Answers


There are multiple ways I think - a conditional component OR a custom action which checks machine name and installs the key.


Answered 06/14/2013 by: SnowLyric
Second Degree Brown Belt


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.



EDIT: Someone bit whilst I was writing this - different method, see which one fits your purpose.

Answered 06/14/2013 by: dunnpy
Red Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ