I am creating a System DSN in my installer using an Oracle ODBC
driver.  I am resolving the name and version of the driver with a
custom action (I have to loop through the Oracle registry hive,
otherwise I would have used RegistrySearch) during the
InstallUISequence before LaunchConditions.

The only problem seems to be that ODBCDataSource/@DriverName and the
nested Property/@Value are not formatted strings.  This is my existing
code:

      <Component Id="DSN.ABC_ORACLE" Guid="..." Permanent="yes">
        <ODBCDataSource Id="ODBCDSN" Name="ABC_ORACLE"
Registration="machine" DriverName="[ORACLE_DRIVER_NAME]">
          <Property Id="DRIVER" Value="[ORACLE_DRIVER_NAME]"/>
        </ODBCDataSource>
      </Component>

This just attempts to create a DSN using a driver named
"[ORACLE_DRIVER_NAME]", which of course doesn't exist, instead of the
value of the property, which should be something like "Oracle in
OraHome92".  (I verified the property is being set correctly.)

Is there another way to go about this, or will I have to create
another custom action to configure this DSN?

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to