Hi All,
 
I am using RegistrySearch to read the registry setting that specifies the 
configuration directory into a Property.  This allows upgrades to identify the 
correct directory in case the user has changed from the default.  
 
This works fine if the registry setting contains the value 
"C:\Windows\system32\Novell\Nici".
However if the registry setting contains the equivalent value of 
"%SystemRoot%\Novell\Nici" then the install halts and I get the following error:
 
"Could not access network location %SystemRoot%\system32\Novell\Nici".
 
This second value is what already exists in the registry (this is an upgrade 
from a previous InstallShield product), so I need to know how to use this kind 
of entry.
 
I am seeing this issue on a Windows Server 2008 x64 bit machine as well as XP.  
 
 
Thanks in advance for your help
 
Carl
 
FYI --  Here are snippets of my wxs file with the relevant info:

  <Property Id="CONFIGDIR">
   <RegistrySearch Id="NICI_Config" Root="HKLM" Key="Software\Novell\NICI" 
Name="ConfigDirectory" Type="raw" Win64="no"/>
  </Property>
  <Directory Id="TARGETDIR" Name="SourceDir">
   <Directory Id="SystemFolder" SourceName="System32">
        <Directory Id="NOVELL" Name="Novell">
         <Directory Id="NICI1" Name="Nici">
          <Directory Id="CONFIGDIR">
          </Directory>
         </Directory>
        </Directory>
   </Directory>
  </Directory>
 
  <DirectoryRef Id="CONFIGDIR">
   <Component Id="NICIFK" Guid="{A7186697-6C02-494f-A1F0-5536EA5CAD59}" 
SharedDllRefCount="yes" NeverOverwrite="yes">
        <Condition>
         NOT (Installed OR Reinstall OR OLDERVERSIONBEINGUPGRADED)
        </Condition>
        <File Id="nicifk.new" Name="nicifk.new" Vital="no" Compressed="yes" 
DiskId="1" Source="\xmgr\src\nicifk" />
   </Component>
  </DirectoryRef>
 
 
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to