Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. Registry key with Path in it

Registry key with Path in it

Scheduled Pinned Locked Moved Windows API
helpsysadminwindows-admintutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eggsovereasy
    wrote on last edited by
    #1

    The company I work for distributes reference books on CD using third party software called Folio Views. The main content stays on the CD, but there is a file stored locally that allows the user to create notes on the content. Because they are stored in different places there is a registry key that tells views where to look for the infobase (content file) in HKEY_LOCAL_MACHINE/SOFTWARE//4/Server/NfoPath/Rights. Right now I have the value set to [SOURCEDIR] so that the user has to have the cd in the same drive they installed from. I'm not sure how else to do that. So for example on my Windows XP test machine the key's value is simply "D:\" and on my Vista machine it is "E:\", both these values are correct. The problem comes on the Vista machine, I get an error message from Folio Views that says it can't find the content file. If I go into the registry and change "E:\" to "E:" everything works exactly as intended. Is this an issue with Vista and if so is there some workaround I can use?

    J 1 Reply Last reply
    0
    • E eggsovereasy

      The company I work for distributes reference books on CD using third party software called Folio Views. The main content stays on the CD, but there is a file stored locally that allows the user to create notes on the content. Because they are stored in different places there is a registry key that tells views where to look for the infobase (content file) in HKEY_LOCAL_MACHINE/SOFTWARE//4/Server/NfoPath/Rights. Right now I have the value set to [SOURCEDIR] so that the user has to have the cd in the same drive they installed from. I'm not sure how else to do that. So for example on my Windows XP test machine the key's value is simply "D:\" and on my Vista machine it is "E:\", both these values are correct. The problem comes on the Vista machine, I get an error message from Folio Views that says it can't find the content file. If I go into the registry and change "E:\" to "E:" everything works exactly as intended. Is this an issue with Vista and if so is there some workaround I can use?

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      Try adding a second '\' so "E:\" becomes "E:\\"


      Jonathan Wilkes Darka[Xanya.net]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups