Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello all,

I have a visual studio setup project (with the extension .vdproj). How can I automate the build (creating msi & exe).
I have tried MSBuild.exe, but not worked. (I was able to build projects with .sln extension using MSBuild.exe).

is it possible to create setup, either using command prompt or c#.


Update : I found that I can do this using the following command
C#
<Visual Studio Program Path>\devenv "<Project location>\<appname>.vdproj" /Build "Release|Any CPU"

and tried it as follows
C#
<C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>\devenv "<C:\Users\Admin\Desktop\SebSetup>\SebSetup.vdproj" /Build "Release|Any CPU"


But it throws an error : The system cannot find the file specified.
Any help on this would be great.

Thanks
Sebastian
Posted
Updated 26-Apr-12 19:34pm
v5
Comments
[no name] 26-Apr-12 9:11am    
Probably because "<c:\users\admin\desktop\sebsetup>\SebSetup.vdproj" doesn't exist.
Sebastian T Xavier 4-May-12 1:06am    
The project file is there. the path is correct.

Hello,

This problem is solved. I could run the below script by creating a solution with the same name of my web setup project

XML
"C:\Progra~1\Microsoft Visual Studio 9.0\Common7\IDE\devenv" "C:\Users\Admin\Desktop\SebNewRESTSetup\SebNewRESTSetup.sln" /Build "Release" /Project SebNewRESTSetup


Thanks for all support.

Sebastian
 
Share this answer
 
Look here:
How do you automate a visual studio build?[^]

Try:
HTML
devenv solution.sln /build configuration
 
Share this answer
 
Comments
Sebastian T Xavier 25-Apr-12 2:38am    
Thanks for your reply.
1. I have already gone through this link. Will this above given command work
without visual studio?
1. Will this work with set up projects? (with .vdproj extension)
2. Can I do this without VS command prompt(with windows command prompt or
power shell)?
Thanks & regards
Sebastian
Sandeep Mewara 26-Apr-12 10:10am    
I am not sure of them Sebastian, I too know as much it was written in link above. Just shared with you.
If you try out and succeed/fail... do tell me too.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900