"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
donanderAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sanx69Commented:
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.
0
El ConquistadorSenior Database AdministratorCommented:
Good luck with this; I see posts all over the Internet, but have yet to see a definitive answer to the issue.
0
donanderAuthor Commented:
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?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Sanx69Commented:
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"
0
donanderAuthor Commented:
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)
0
Sanx69Commented:
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.
0
donanderAuthor Commented:
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.
0
GranModCommented:
PAQed with points refunded (250)

GranMod
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.