Can I do a registry search on a server to check if a program has been
installed?  I want to be able to create shortcuts on the local machine to
the executable located on the server.  If I do a registry search from the
machine that I loaded the original file on it works because the registry
value is located on my machine, however if I go to another machine to make
it point to the same executable, it will not work because it will not find
the registry value.  Please help..

Also, how can I append the shortcut to the executable where it will not
remove the executable it is linked to on the server upon uninstall?

Some code fragments:

<Property Id="INSTALLDIR">Property Id="INSTALLDIR">
  <RegistrySearch Id="BirdDogRegistery" Type='raw' Root='HKLM'
    Key='Software\BirdDog\Web Manager' Name='InstallDir' />
</Property>

<Property Id="FILEEXISTS">
  <DirectorySearch Id="CheckFileDir" Path="[INSTALLDIR]" Depth="10">
   <FileSearch Id="CheckFile" LongName="BirdDogWM.exe" />
  </DirectorySearch>
</Property>    Key='Software\BirdDog\Web Manager' Name='InstallDir' />

.....

<!--   (This is where I am having to pretty much recreate the executable
which will remove it when it uninstalls.  Trying something different, that
is why is commented out)
<Component Id='MainExecutable'
Guid='{00A641EA-7099-4e45-B952-2692C3772677}'>
  <File Id='BirdDogWMEXE' Name='BirdDog.exe' LongName='BirdDogWM.exe'
DiskId='1' Source='BirdDogWM.exe' Vital='yes'>
    <Shortcut Id="startmenuBirdDog" Directory="ProgramMenuDir"
Name="BirdDog" Advertise="no" LongName="Web Manager"
WorkingDirectory='INSTALLDIR' Icon="WebManager.exe" IconIndex="0" />
    <Shortcut Id="desktopWebManager" Directory="DesktopFolder"
Name="BirdDog" Advertise="no" LongName="Web Manager"
WorkingDirectory='INSTALLDIR' Icon="WebManager.exe" IconIndex="0" />
  </File>
</Component>
-->

<Component Id='FileLink' Guid='{4D3AB1D9-9138-47db-A932-A404F3D24EBD}'>
  <File Id='BirdDogWMEXE' Name='BirdDog.exe' LongName='BirdDogWM.exe'
DiskId='1' Source='[FILEEXISTS]' Vital='yes'>
    <Shortcut Id="startmenuBirdDog" Directory="ProgramMenuDir"
Name="BirdDog" Advertise="no" LongName="Web Manager"
WorkingDirectory='INSTALLDIR' Icon="WebManager.exe" IconIndex="0" />
    <Shortcut Id="desktopWebManager" Directory="DesktopFolder"
Name="BirdDog" Advertise="no" LongName="Web Manager"
WorkingDirectory='INSTALLDIR' Icon="WebManager.exe" IconIndex="0" />
  </File>
</Component>

....

The FILEEXISTS option is not working when I use the command Light.exe.  I
get the error: File of type 'File' with name '[FILEEXISTS]' could not be
found.
I know it is in the specified directory though.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to