programatically retrieve path of the Project .msi file

NETCoder

Member
Joined
Aug 9, 2007
Messages
16
Programming Experience
1-3
I am developing an add-in. I need to retrieve the path of .msi file, located in under project properties, from the deployment project (setup).

I was able retieve all project properties of all projects (ex: output path of the dll) except Deployment project. I am using
"project.ConfigurationManager.ActiveConfiguration.Properties" and
"Project.Properties" for retrieving all information.

But I am stil could not able to retrieve the path of the .msi file. For some reason I could not retrieve "project.ConfigurationManager.ActiveConfiguration.Properties" of the deployment project. The application is throwing an error saying "Object reference not set to an instance of an object". I could not find .msi file path from the "project.properties" method.

Can some body please tell how I could retrieve the path of .msi file, programmatically, which I could see by selecting deployment project properties.
 
Project type

How to retrieve project type information. I want know which project in the solution is deployment project (setup project). Can some one help me with this?. THanks.
 
Select the project in Solution Explorer, in the properties window combobox it reads the name of the project and "Deployment Project Properties". It also have deployment properties other projects don't have.
 
Project type

Sorry for not explaining properly. I want retrieve the project type programmatically. I am developing an add-in. I need to find the deployment project and retrieve location of .msi file from that project.
 
Ok, that wasn't very obvious. I have merged your two threads and moved them to Add-In Development forum.
 
project property type and .msi file path info

I am developing a VisualStudio Addin so that GIS application developer can place the .msi file over intranet after ceating an .msi file.

Following information needs to be retrieved programmitically to acheive this.



1) find which project is deployment project

2) check whether .msi file actually created or not

3) retrieve the path of the .msi file.



I was able to get all properties information of all projects and properties you could see in the properties list box of the selected project.

I used project.properties and project.activeconfiguration.properties.Nither of them are helping me to retrieving the information I need.



I would greatly appreciate if you could answer above questions. If you known any good article or book pointing to these issues, please let me know.

Thank you for your reply.
 
Back
Top