/build/static/layout/Breadcrumb_cap_w.png

How to Add two Different Property into Third

Hi,
I am using Basic MSI Project.
I have created one xml file and reading values from it and storing in a property named "NAME" using system search mechanism.
I also have to get the computer name which i am getting via registry entry using system search mechanism and storing this is property named "COMPUTERNAME".
Now during installation in customer Information dialog i want to store this two property in COMPANY EDIT edit box.
as NAME-COMPUTERNAME.

Please let me know how can i get to the solution.

Any help will be appriciated.

Thanks

0 Comments   [ + ] Show comments

Answers (2)

Posted by: spartacus 13 years ago
Black Belt
2
Hi,

First point to make is that you don't need the registry read / system search method to obtain the computer name, there is a standard property ComputerName which you can use instead.

As you may already be aware you cant use the Property table to assign a value to a property based on the value of one - or in your case two - other properties as this would create a circular reference.

Instead, you should consider using a Type 51 custom action. This will allow you to use the formatted type for the assignment So your property assignment might be something like this

COMPANYEDIT = [NAME]-[ComputerName]

NB: Remember though that there are special considerations if you are using deferred custom actions as most properties are not defined in this mode. If this is the case, have a search around for the CustomActionData method.

Regards

Spartacus
Posted by: abhijeetkusre 12 years ago
Yellow Belt
0
Thanks Brother.
it was great help
sorry for late reply.
it worked fine
can i send u a beer..:)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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