/build/static/layout/Breadcrumb_cap_w.png

ProductID in Add/Remove Programs

I am trying to create the following registry entry in my MSI. Can someone tell me what PROPERTY to use for this? I know i can do a registry hack but I've tried setting the value up under Property manager & it's not working. Any help on this? 

Property manager > Name= ProdcutID | Value= 123-456-789  (Not Working)

Following registry hack works but i would like to handle this through Property Table: 

 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ABC PRODUCT}]
"ProductID"="123-456-789"

0 Comments   [ + ] Show comments

Answers (3)

Posted by: jaybee96 11 years ago
Red Belt
1

You must change the PROPERTY in UPPERCASE

Property PRODUCTID=12345456

in registry

use the value [PRODUCTID]


Comments:
  • or do you mean : [ProductCode] - jaybee96 11 years ago
  • worst case, you need to create a "standard" custom action "Set property" to change a private property into a PUBLIC property - jaybee96 11 years ago
Posted by: vjaneczko 11 years ago
9th Degree Black Belt
1

If you just want to add a reg key that contains the value of a property, then your syntax would look like this:

"ValueName"="[PropertyName]"

The brackets surrounding the property indicates to the engine that it should the property value instead of the actual syntax.  The property can be Public or Private.  You do not have to use a custom action for this.  So, if you want to add a registry key which contains the actual ProductID value, all you have to add is this:

"ProductID"="[ProductID]"

 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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