Importing registry entries
Heya folks. Got an annoying problem with regards to importing registry keys.
We have created a few custom package meta data fields. For internal auditing we create a RegKey that writes application name, version number, etc...
When we import this registry into the package (Installation Expert -> Feature Details -> Registry, then click on Add -> import and add the .reg file it adds some extra characters to the fields. But only on our custom fields.
[HKEY_LOCAL_MACHINE\SOFTWARE\OURCOMPANY\[ProductName]_[ProductVersion]]
"iDate"="[Date]"
"IDir"="[PRIMARYFOLDER]"
"iTime"="[Time]"
"IType"="[iType]"
"IUser"="[%username]"
"Manufacturer"="[Manufacturer]"
"OS"="[OS]"
"PackageVersion"="[PackageVersion]"
"ProductName"="[ProductName]"
"ProductVersion"="[ProductVersion]"
We've had to add the double ] to the end of the actual key as on import it drops the last ].
An example of how one of our custom fields imports is as follows. (With the additioanl characters in red)
[\[] iType [\] ]
Any clues, help or suggestions much appreciated.
We have created a few custom package meta data fields. For internal auditing we create a RegKey that writes application name, version number, etc...
When we import this registry into the package (Installation Expert -> Feature Details -> Registry, then click on Add -> import and add the .reg file it adds some extra characters to the fields. But only on our custom fields.
[HKEY_LOCAL_MACHINE\SOFTWARE\OURCOMPANY\[ProductName]_[ProductVersion]]
"iDate"="[Date]"
"IDir"="[PRIMARYFOLDER]"
"iTime"="[Time]"
"IType"="[iType]"
"IUser"="[%username]"
"Manufacturer"="[Manufacturer]"
"OS"="[OS]"
"PackageVersion"="[PackageVersion]"
"ProductName"="[ProductName]"
"ProductVersion"="[ProductVersion]"
We've had to add the double ] to the end of the actual key as on import it drops the last ].
An example of how one of our custom fields imports is as follows. (With the additioanl characters in red)
[
Any clues, help or suggestions much appreciated.
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
Foleymon
13 years ago
Posted by:
jcarri06
13 years ago
Posted by:
sk
13 years ago
Posted by:
jmcfadyen
13 years ago
don't ever do what Foleymon has suggested its a very bad idea.
Why people do these things I will never understand when you have a deployment solution that is designed to cater for such deployment as registry why call an external script to cater for it.
Additonal to that in locked down environments it pure fail.
If you need this quick and easy just use the automation objects to edit your installer directly. One assumes your using MSI in which case its pretty easy with some SQL update / insert commands.
Why people do these things I will never understand when you have a deployment solution that is designed to cater for such deployment as registry why call an external script to cater for it.
Additonal to that in locked down environments it pure fail.
If you need this quick and easy just use the automation objects to edit your installer directly. One assumes your using MSI in which case its pretty easy with some SQL update / insert commands.
Posted by:
Tone
13 years ago
Posted by:
ninjamaster
13 years ago
Posted by:
jmcfadyen
13 years ago
Posted by:
anonymous_9363
13 years ago
Wise has a good method for dealing with thisDoes it? The templates are used for creating new MSIs, true, but remember the OP wants to have this information automatically included in transforms created via InstallTailor. Refer to Jim's other post http://itninja.com/question/gnu,-freeware-and-shareware-programs-to-cloning7789. I don't think Wise handles that, does it? If it does, do tell us how!
Posted by:
jmcfadyen
13 years ago

so that the conversation will remain readable.