I'm trying to setup Remember Property Pattern (according to Rob's blog
http://robmensching.com/blog/posts/2010/5/2/The-WiX-toolsets-Remember-Proper
ty-pattern) and I'm having a problem with SetFromCmdLineValue action
overwriting the value pulled from the registry. 

 

Below are the relevant sections:

  <Component Id="C.Config" Directory="Di.Plugins">
  <RegistryValue Root='HKCU'
     Key='$(var.AppRegistryInstallPath)\Install\ConfigSettings'
     Name='CONFIG.BASEADMIN.ADMIN_AD_GROUP'
     Value='[CONFIG.BASEADMIN.ADMIN_AD_GROUP]'
     Type='string' />
  </Component>

  <Property Id="CONFIG.BASEADMIN.ADMIN_AD_GROUP" >
  <RegistrySearch Id='Remember.CONFIG.BASEADMIN.ADMIN_AD_GROUP'
      Root='HKCU'
      Key='$(var.AppRegistryInstallPath)\Install\ConfigSettings'
      Name='CONFIG.BASEADMIN.ADMIN_AD_GROUP'
      Type='raw' />
  </Property>

  <CustomAction Id='SaveCmdLineValue.ADMIN_AD_GROUP'
      Property='CMDLINE_CONFIG.BASEADMIN.ADMIN_AD_GROUP'
      Value='[CONFIG.BASEADMIN.ADMIN_AD_GROUP]'
      Execute='firstSequence' />
  <CustomAction Id='SetFromCmdLineValue.ADMIN_AD_GROUP'
      Property='CONFIG.BASEADMIN.ADMIN_AD_GROUP'
      Value='[CMDLINE_CONFIG.BASEADMIN.ADMIN_AD_GROUP]'
      Execute='firstSequence' />
 
  <InstallUISequence>
    <Custom Action='SaveCmdLineValue.ADMIN_AD_GROUP' Before='AppSearch' />
    <Custom Action='SetFromCmdLineValue.ADMIN_AD_GROUP' After='AppSearch'>
    <![CDATA[CMDLINE_CONFIG.BASEADMIN.ADMIN_AD_GROUP AND
CMDLINE_CONFIG.BASEADMIN.ADMIN_AD_GROUP <> ""]]>
  </Custom>
  </InstallUISequence>
  <InstallExecuteSequence>
    <Custom Action='SaveCmdLineValue.ADMIN_AD_GROUP' Before='AppSearch' />
    <Custom Action='SetFromCmdLineValue.ADMIN_AD_GROUP' After='AppSearch'>
    <![CDATA[CMDLINE_CONFIG.BASEADMIN.ADMIN_AD_GROUP AND
CMDLINE_CONFIG.BASEADMIN.ADMIN_AD_GROUP <> ""]]>
  </Custom>
  </InstallExecuteSequence>

 

Action ended 10:00:57: FindRelatedProducts. Return value 0.

MSI (c) (9C:AC) [10:00:57:265]: Doing action:
SaveCmdLineValue.ADMIN_AD_GROUP

MSI (c) (9C:AC) [10:00:57:265]: Note: 1: 2205 2:  3: ActionText 

Action start 10:00:57: SaveCmdLineValue.ADMIN_AD_GROUP.

Action ended 10:00:57: SaveCmdLineValue.ADMIN_AD_GROUP. Return value 1.

MSI (c) (9C:AC) [10:00:57:267]: Doing action: AppSearch

MSI (c) (9C:AC) [10:00:57:267]: Note: 1: 2205 2:  3: ActionText 

Action start 10:00:57: AppSearch.

MSI (c) (9C:AC) [10:00:57:268]: Note: 1: 2262 2: Signature 3: -2147287038 

MSI (c) (9C:AC) [10:00:57:268]: PROPERTY CHANGE: Adding NETFRAMEWORK40FULL
property. Its value is '#1'.

MSI (c) (9C:AC) [10:00:57:269]: Note: 1: 2262 2: Signature 3: -2147287038 

MSI (c) (9C:AC) [10:00:57:270]: PROPERTY CHANGE: Adding
CONFIG.BASEADMIN.ADMIN_AD_GROUP property. Its value is 'group'.

Action ended 10:00:57: AppSearch. Return value 1.

MSI (c) (9C:AC) [10:00:57:270]: Doing action:
SetFromCmdLineValue.ADMIN_AD_GROUP

MSI (c) (9C:AC) [10:00:57:270]: Note: 1: 2205 2:  3: ActionText 

Action start 10:00:57: SetFromCmdLineValue.ADMIN_AD_GROUP.

MSI (c) (9C:AC) [10:00:57:270]: PROPERTY CHANGE: Deleting
CONFIG.BASEADMIN.ADMIN_AD_GROUP property. Its current value is 'group'.

Action ended 10:00:57: SetFromCmdLineValue.ADMIN_AD_GROUP. Return value 1.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to