all groups > visual studio .net setup > may 2006 >
You're in the

visual studio .net setup

group:

Installing word viewer from deployment project.Command line option error.


Installing word viewer from deployment project.Command line option error. Chukkalove
5/25/2006 2:31:32 PM
visual studio .net setup:
Ive created a simple deployment for my application. As documentation exists
as a microsoft Word document, I include the Word Viewer installation
executable as an optional custom action in the Commit stage of my deployment
project.

If I run wdviewer.exe from explorer, it installs fine.
If I run it from my setup project I get the exception "Command line option
syntax error. Type Command /? for Help" on a dialog with title bar caption
"Microsoft Office Word Viewer 2003"

Can anyone clear up the problem please? I tell my deployment project just to
run the executable and dont use command line options.

Chukkalove

Re: Installing word viewer from deployment project.Command line option error. Chukkalove
5/25/2006 5:24:57 PM
Being unable to solve the problem and after doing a general web search, I
created a new application to sit in front of wdviewer. This little
application would just run wdviewer.exe as a proxy.
I rebuild the main setup project in visual studio and run the installer.

When it came to the section where installer would run my proxy application,
I get an error "Could not find file "c:\program files\p f\p
t\wordreader\proxyinstaller.InstallState". My proxyinstaller is actually
called proxyinstaller.exe

So does THIS give anyone any idea what's going wrong lol?


Re: Installing word viewer from deployment project.Command line option error. Phil Wilson
5/27/2006 10:35:15 AM
I assume you're running it as a custom action, so you'll need to tell us the
properties of the custom action: Arguments, Condition, CustomActionData,
InstallerClass etc.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

Re: Installing word viewer from deployment project.Command line option error. Chukkalove
6/2/2006 12:00:00 AM
I added the file "Wdviewer.exe" as a custom action at the commit stage. It's
placed within the file system( at setup) on a subdirectory off the main
application.

Arguments /Commit
Condition CHECKBOXA2=1
CustomActionData (nothing added here)
InstallerClass False (If set to true then compiler error "'wdviewer.exe',
InstallerClass property is only valid for assemblies")
Sourcepath = (path to the file)

I can only install it if I create a small executable which runs the exe file
at commit stage.

Re: Installing word viewer from deployment project.Command line option error. Phil Wilson
6/4/2006 10:29:17 AM
It looks like that /Commit line. You're passing /Commit as a command line
argument to wdviewer, who knows nothing about it.
--
Phil Wilson
[Microsoft MVP-Windows Installer]

[quoted text, click to view]

AddThis Social Bookmark Button