/build/static/layout/Breadcrumb_cap_w.png

Hi all, I'm looking to read in the data value of a string in registry and set another string equal to that. Is there a way this can be done through an MSI tables?

I looked at the AppSearch and RegLocator Tables and possibly passing the value into a property however it doesnt read in the data value. I believe this can be done via InstallScript but have never used this so would need a step-by-step process for it that I could follow. I'm using Installshield 2012.

Existing environment reg value to read:  HKLM\SYSTEM\APP\KEY     StringName=Variable1
New reg value to write:                         HKLM\SYSTEM\APP\KEY     StringName2=Variable1


1 Comment   [ + ] Show comment
  • Forget script. You were on the right lines using the tables. If that didn't work, you made a mistake somewhere.

    Post the content that you had in those tables and we'll figure out where you went wrong. - anonymous_9363 10 years ago
    • Thanks VBScab.

      RegLocator Table:
      Signature: AppVersion
      Root: 2
      Key: SYSTEM\CurrentControlSet\Services\NetLogon\Parameters\SystemVersion
      Name:
      Type: 2

      AppSearch Table:
      Property: VERSIONID
      Signature_: AppVersion

      Registry Table:
      Registry: 1
      Root: 2
      Key: System\CurrentControlSet\Services\NetLogon\Parameters
      Name: InternalVersion
      Value: [VERSIONID]
      Component: ISRegistryComponent
      Attributes: 0 - Busby101 10 years ago

Answers (2)

Answer Summary:
Posted by: Busby101 10 years ago
Senior Yellow Belt
1

Hi guys,

I found my error. The stringvalue was listed in my key section as oppose to the Name value in the RegLocator table. Can't believe I missed that. Cheers for the help.

 

Posted by: SilentKiller 10 years ago
Orange Belt
0

You can create a vbscript for this and put that in a Custom Action.


Comments:
  • Thanks, if I can handle it natively using the tables I'd rather avoid the use of CA scripts if possible. - Busby101 10 years ago
 
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