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.
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.