Thursday 30 June 2011

Set a registry value in APP-V using the OSD file

Setting registry keys via the OSD file is a great way to control the application.
This practice is best suited for commonly changed registry values.

The benefit of setting the regisdtry key values in the OSD file is that you dont have to open the sequence and update it each time the keys need to be changed, you can simply edit the OSD file in notepad.

the syntax for the OSD file reg key entries are
  
#VIRTUALENV TERMINATECHILDREN="FALSE"#
      #REGISTRY#               
            #REGKEY HIVE="HKCU" KEY="Software\ODBC\ODBC.INI\placprd"#
                       #REGVALUE REGTYPE="REG_SZ" NAME="Application Attributes">T
            #/REGKEY#
      #/REGISTRY#


(note replace # with < and > i had to port hash as blogger turns < into HTML)

2 comments:

  1. is there a difference between apply registry this way and actually doing it with regedit /s and the path to a reg files that is on the network or local?

    Thanks

    ReplyDelete
    Replies
    1. There is no difference really , If you have loads of keys a .REG maybe easier to save typing them all in, but putting them in the OSD is neater as you dont have to worry about a seperate .REG file and its easier to troubleshoot.

      Delete