Each of these options is explained in detail below. You can define what mode you want your installation to run in by using the /a (Administrative), /j (Advertise), /x (Uninstall), or /f (Repair) parameters. Specifying the Installation Mode from the Command Line To run a password-protected setup silently, enter the following statement at the command line:
RUN SETUP EXE PASSWORD
If you run a password-protected setup in silent mode, you must specify the password from the command line or the installation will fail. You can specify a password for a password-protected setup by using the /p parameter. Specifying a Password from the Command Line Note: If your installation is password protected, you must also pass the /p parameter. msi setup to run silently as well, you need to pass the /qn command-line parameter through Setup.exe using the /v parameter-for example: For example, if you enter the following command-line statement, Setup.exe launches, but the user interface is not displayed: If you do not want the Setup.exe file to display a progress bar when it launches, you can use the /s command-line parameter. This command creates a log file and runs the installation silently.Īs an alternative, you can use the /v option multiple times at the command line, once for each argument, as in the following example: Setup.exe /v"/l*v \"c:\My Log Files\test.log\" /qn" In addition, if you are passing multiple parameters using the /v option, you need to separate them with a space-for example: However, since you need to have quotes around the complete argument, the command-line statement fails if you do not use the backslash in front of all internal quotes.Īnother formatting rule dictates that there cannot be a space between the command-line option (/v) and the arguments that you are passing, as illustrated in the example above. Because the path to the log file is a long path, you need to use quotes. For example, the command line above contains the following: v"/l*v \"c:\My Log Files\test.log\". First, you need to place a backslash (\) in front of any quotation mark that resides within existing quotes. There are a few special formatting rules that you need to follow when passing a parameter in this way. Setup.exe /v"/l*v \"c:\My Log Files\test.log\"" For example, to create a verbose log of the installation, enter the following: Once you specify this option, you can list any of the supported parameters that can be passed to Msiexec.exe. If you include Setup.exe as part of your installation, you may need to pass command-line parameters to the. debuglog : Generate a log file for debugging v : Pass command-line parameters to the. Setup.exe accepts the following command-line options, each of which is described below: You can also pass parameters through Setup.exe to the included. By using these parameters, you can specify which language you want your installation to run in and if you want Setup.exe to run silently. msi file, Setup.exe can accept a limited number of command-line parameters. If you want to run any other file types, you can use the MS-DOS start command and type start, where is the file's name.InstallShield 2012 Spring Express Edition
RUN SETUP EXE WINDOWS
gameįinally, it is important to realize that when running an executable file from an MS-DOS shell (running MS-DOS within Windows), the program still use Windows to run. Once in the directory with the executable, type the name of the executable.
Or, if you're already in the username directory of documents and settings, you can type the command below. Using the cd command, you can switch to the desktop directory by typing a command similar to the example below. Move to the directory of the executable file and run the command again.įor example, let's assume you downloaded the executable file game.exe and it is on the Windows XP desktop. If you don't see the file you want to execute or receive an error such as "bad command or file name," likely it is not in the current directory. For example, if the executable file is game.exe, you would type "game" at the command line. Once you have determined the name of the executable file you want to run, type the name of the executable file at the MS-DOS prompt. com to see those files in the current directory instead. If you are uncertain which files in the current directory are executable files, use the dir command below at the MS-DOS prompt to list. To execute or run a file from MS-DOS, you must run an executable file, which are.