How to Add two Different Property into Third
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)
Please log in to answer
Posted by:
spartacus
13 years ago
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
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
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.