Jump to content

Project Build Spec Regisitry programmatic editing


Ryan Podsim

Recommended Posts

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 by Ryan Podsim
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.