Link to home
Start Free TrialLog in
Avatar of Member_2_79173
Member_2_79173

asked on

"Command line option syntax error" in Visio Viewer 2002/2003

I'm posting this in the Windows 2000 area because that's the OS on the box in question. I didn't find a Visio group.

One of the users I support reported today that when she tries to open a Visio file with Visio Viewer, she now sees an error message ""Command line option syntax error. Type Command /? for Help."

I did some research and found some info that indicates spaces in .vsd filenames can cause problems. I took the spaces out of the filename she's trying to open but this did not fix the problem.

She had version 2002 and tried installing version 2003 but still sees the error. I uninstalled & reinstalled the viewer (first v2003 then v2002) but the error persists.

I thought this might be a result of MS06-013 but the compatibility patch is not available for Windows 2000 so I infer that the problem doesn't affect Windows 2000.

Does anyone know how to fix this problem?

Thanks
Avatar of Sanx69
Sanx69
Flag of Australia image

The first thing to do would be to see what command line the machine's actually using. Have a peek in the registry here:
HKEY_CLASSES_ROOT\.vsd

Examine the content of the DEFAULT value. It should be something like: "Visio.Drawing.6", though the number at the end may be different.

The have a look in the registry here:

HKEY_CLASSES_ROOT\Visio.Drawing.x\shell\Open\command

where Visio.Drawing.x is the DEFAULT value referenced earlier.

The DEFAULT value in this key is the command line being used to open Visio drawings. This might give you some clue as to what's going on. Post the value here - it should give us lot more of a clue.
Good luck with this; I see posts all over the Internet, but have yet to see a definitive answer to the issue.
Avatar of Member_2_79173
Member_2_79173

ASKER

Sanx69,

Content of HKEY_CLASSES_ROOT\.vsd is

   "VisioViewer.Viewer"

The DEFAULT value at HKEY_CLASSES_ROOT\VisioViewer.Viewer\shell\open\command is

   "C:\Program Files\Internet Explorer\iexplore.exe" -nohome

There is also a HKEY_CLASSES_ROOT\VisioViewer.Viewer1 entry but there is only CLSID but no shell etc.

Is it proper for IE to be specified as the viewer for Visio files?
Hmmm, looks about right.

This is a dump of what I have on a machine with Visio Viewer but not Visio full installed. Compare it to what you've got.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisioViewer.Viewer]
@="Microsoft Visio Document"

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\CLSID]
@="{279D6C9A-652E-4833-BEFC-312CA8887857}"

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\CurVer]
@="VisioViewer.Viewer.1"

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\DefaultIcon]
@="C:\\PROGRA~1\\MICROS~3\\VISIOV~1\\VVIEWER.DLL,-2"

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\shell]

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\shell\open]

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\shell\open\command]
@="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome"

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\shell\open\ddeexec]
@="\"file:%1\",,-1,,,,,"

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\shell\open\ddeexec\Application]
@="IExplore"

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\shell\open\ddeexec\Topic]
@="WWW_OpenURL"
Here are the differences:

[HKEY_CLASSES_ROOT\VisioViewer.Viewer]
@="Microsoft Visio Document"

    She has "Microsoft Visio Viewer"

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\DefaultIcon]
@="C:\\PROGRA~1\\MICROS~3\\VISIOV~1\\VVIEWER.DLL,-2"

    She has C:\WINNT\Installer\{94F9723E-900A-43C5-8F4E-AD2D2ED09273}\Viewer.ico,0

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\shell\open\command]
@="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome"

    She has "C:\Program Files\Internet Explorer\iexplore.exe" -nohome (no double backslashes or "\")

[HKEY_CLASSES_ROOT\VisioViewer.Viewer\shell\open\ddeexec]
@="\"file:%1\",,-1,,,,,"

    She has "file:%1",,-1,,,,, (no \ after %1)
Hmm, not too sure. The added quotes and \s are simply regedit's way of escaping characters, so they're entirely to be expected and the differences you've highlighted are not an issue. I would suspect the values that you've listed as different are simply because your client's got a different version of Visio Viewer installed than the test box I dumped the values from.

The only other suggestion I can think of is to uninstall everything (I know you've already tried this), manually remove any orphaned files and registry entries (do a search for "visio" in regedit) then reinstall.

Sorry I can't be of more use.
After I posted the previous comment I did some more reasearch and found a posting somewhere that indicated if Visio Viewer was not installed as administrator it wouldn't work for all users so I tried logging on to the box as administrator and reinstalling it but that didn't work. However, I saw a .dvx file in the Program Files\Microsoft Visio Viewer directory and when I double-clicked that a drawing opened in IE. That got me thinking about the references to IE in the registry keys. Both the user and I had tried right-clicking the .VSD file, selecting "Open with" and choosing Visio Viewer from the list but this time I selected IE from the list and it opened the .VSD sample file. Then we tried her actual file and it opened that file. Apparently the viewer is an Active-X control. Why the specification for the correct app was not installed when I installed the program I can't explain but it is working now.

I appreciate your collaboration on this and I'm happy to award you the points if you think that is warranted. Otherwise I'm not sure how to proceed.
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial