Also... When trying to read the (Default) value of a key, you must include a trailing '\'...
If you forget the trailing '\', you will get the 'cannot open for read' error.
// get the full path to fin.exe, stored in the registry as
// the default value of the AppPaths\fin.exe key...
FinExePath :=
wshShell.RegRead(
'HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\fin.exe\');
Comments
Run Regedit.exe, highlight the key of interest, then click View, Permissions.
Does the Navision user who is getting the error message have Read permission to the key?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
If you forget the trailing '\', you will get the 'cannot open for read' error.