[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Visual Studio 2008 build msi command line?

Posted on 2009-06-29
5
Medium Priority
?
2,006 Views
Last Modified: 2013-11-26
This command line runs without error, but does not output any file. What am I doing wrong? However, It will build a usable .msi file within the IDE by clicking on the Setkup1 deployment project and choosing 'build'. I'm using Vista Businsess 64 & VS2008.

[BUILD VS2008 SOLUTION INSTALLER]
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" "E:\My Documents\Visual Studio 2008\Projects\myProjectName\Setup1\Setup1.vdproj" /build
0
Comment
Question by:pointeman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:Bob Hoffman
ID: 24740219
I believe you need to say what confuguration your building "/build Release".
0
 

Author Comment

by:pointeman
ID: 24741308
I'll try it...
0
 

Author Comment

by:pointeman
ID: 24741354
Well, it didn't error, but it also didn't write any output file.
Also tried /build "Release" , but still didn't write output file...
Here's the popup error when I make it error:

Use:
devenv  [solutionfile | projectfile | anyfile.ext]  [switches]
The first argument for devenv is usually a solution file or project file.
You can also use any other file as the first argument if you want to have the
file open automatically in an editor. When you enter a project file, the IDE
looks for an .sln file with the same base name as the project file in the
parent directory for the project file. If no such .sln file exists, then the
IDE looks for a single .sln file that references the project. If no such single
.sln file exists, then the IDE creates an unsaved solution with a default .sln
file name that has the same base name as the project file.
Command line builds:
devenv solutionfile.sln /build [ solutionconfig ] [ /project projectnameorfile [ /projectconfig name ] ]
Available command line switches:
/Build Builds the solution or project with the specified solution
 configuration. For example "Debug". If multiple platforms
 are possible, the configuration name must be enclosed in quotes
 and contain platform name. For example: "Debug|Win32".
/Clean Deletes build outputs.
/Command Starts the IDE and executes the command.
/Deploy Builds and then deploys the specified build configuration.
/Edit Opens the specified files in a running instance of this
 application. If there are no running instances, it will
 start a new instance with a simplified window layout.
/LCID Sets the default language in the IDE for the UI.
/Log Logs IDE activity to the specified file for troubleshooting.
/NoVSIP Disables the VSIP developer's license key for VSIP testing.
/Out Appends the build log to a specified file.
/Project Specifies the project to build, clean, or deploy.
 Must be used with /Build, /Rebuild, /Clean, or /Deploy.
/ProjectConfig Overrides the project configuration specified in the solution
 configuration. For example "Debug". If multiple platforms are
 possible, the configuration name must be enclosed in quotes
 and contain platform name. For example: "Debug|Win32".
 Must be used with /Project.
/Rebuild Cleans and then builds the solution or project with the
 specified configuration.
/ResetAddin Removes commands and command UI associated with the specified Add-in.
/ResetSettings Restores the IDE's default settings, optionally resets to
 the specified VSSettings file.
/ResetSkipPkgs Clears all SkipLoading tags added to VSPackages.
/Run Compiles and runs the specified solution.
/RunExit Compiles and runs the specified solution then closes the IDE.
/SafeMode Launches the IDE in safe mode loading minimal windows.
/Upgrade Upgrades the project or the solution and all projects in it.
 A backup of these files will be created as appropriate.  Please
 see Help on 'Visual Studio Conversion Wizard' for more
 information on the backup process.
Product-specific switches:
/debugexe Open the specified executable to be debugged. The
 remainder of the command line is passed to this
 executable as its arguments.
/useenv Use PATH, INCLUDE, LIBPATH, and LIB environment variables
 instead of IDE paths for VC++ builds.
To attach the debugger from the command line, use:
 VsJITDebugger.exe -p <pid>
 
0
 
LVL 8

Expert Comment

by:Bob Hoffman
ID: 24741380
I'm on Vs 2005. Don't you have a solution file? (.sln) If so that's what you create the project from. The output will do in the bin/release in you project root. Besure to delete what every is in bin/release prior to the build that way you know for sure it's been created.
try somthing like this:
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" "E:\My Documents\Visual Studio 2008\Projects\myProjectName\Setup1\Setup1.sln" /build Release
0
 

Accepted Solution

by:
pointeman earned 0 total points
ID: 24741595
Yes, I can build a solution file, but I'm trying to build a Setup/Deployment Project (.vdproj). It doen't have a .sln file. This is very interesting because I never experienced any problems using VS2005 and ...\Setup1.vdproj" /build or /rebuild. I think its a buggy VS2008 or possibly a Vista/VS2008 bug... Very strange..
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question