PRB: Setup Wizard Displays "Invalid Command-Line Parameters" (169773)



The information in this article applies to:

  • Microsoft Visual Basic Control Creation Edition for Windows 5.0
  • Microsoft Visual Basic Learning Edition for Windows 5.0
  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 5.0

This article was previously published under Q169773

SYMPTOMS

When you install an application by using a setup program that is created with the Microsoft Visual Basic 5.0 Setup Wizard or Setup Toolkit, you receive the following error message:
Invalid command-line parameters. Unable to continue.

CAUSE

When an application's setup program is run from a network drive, the full server, share, and folder names for the setup folder are parsed. If any part of this path contains a dash (-) or a space, it is perceived by the setup program as a command-line parameter. For example, if an application is being installed from the server\share\folder location:
   \\server1\share1\folder-1
				
the dash is mistakenly perceived as a command-line parameter for the setup program when the path is parsed. In this example, -1 is not a valid command-line parameter, and the error message that is listed in the "Symptoms" section is displayed.

This message is not displayed if the application's setup program is run from the local hard disk or from floppy disks.

RESOLUTION

Run the application's setup program from a path that does not have a dash or a space in the name. If the dash appears in the server name, instead of using the Universal Naming Convention (UNC) path, you can map the drive or use the IP address. For example:
   \\65.53.5.236\Share1\Folder1
				

Modification Type:MajorLast Reviewed:12/10/2003
Keywords:kberrmsg kbprb KB169773