Ryan Podsim Posted November 14, 2011 Report Share Posted November 14, 2011 (edited) I'm wanting to create a VI that will add a predefined set of Registry entries to the Installer build spec for a project. Previously we have entered these items by hand through the build spec properties, but would like to speed up the process and reduce errors. I have found the Set Tag and Set XML Tag methods for a build spec, but that doesn't seem to work right. I can create the tags for the RegDest.dirName and RegDest.parentTag, but can't figure out how to get a new RegDest.dirTag; as it seems to be some special code. Without that code, I seem to be unable create the entries correctly. Does anyone know of some hidden built-in VIs that can create the registry entries for Install specs? or how I can generate the special Code for RegDest.dirTag? Here is a sample from the lvproj file of a valid spec (i.e. created by hand) <Property Name="RegDest[0].dirName" Type="Str">Software</Property> <---- part of default Spec <Property Name="RegDest[0].dirTag" Type="Str">{DDFAFC8B-E728-4AC8-96DE-B920EBB97A86}</Property> <---- part of default Spec <Property Name="RegDest[0].parentTag" Type="Str">2</Property> <---- part of default Spec <Property Name="RegDest[1].dirName" Type="Str">BEI</Property> <Property Name="RegDest[1].dirTag" Type="Str">{D462230D-D253-433D-9A2C-E694E552E45B}</Property> <---- special code!!!! <Property Name="RegDest[1].parentTag" Type="Str">{DDFAFC8B-E728-4AC8-96DE-B920EBB97A86}</Property> ..... <Property Name="RegDestCount" Type="Int">5</Property> [/CODE] Edited November 14, 2011 by Ryan Podsim Quote Link to comment
Popular Post swenp Posted November 15, 2011 Popular Post Report Share Posted November 15, 2011 Take a look at resource\Framework\Providers\Builds\Installer\CDK_Utility_GenerateGUID.vi as it generates the unique IDs you are looking for. They are used to uniquely tag the folders inside your build specs. 3 Quote Link to comment
Ryan Podsim Posted November 15, 2011 Author Report Share Posted November 15, 2011 Awesome! That's what I needed, Thanks! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.