Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to create Visual Studio 2008 addin set up file with custom actions?

$
0
0

Hi all,

Previously i had asked same question of how to create a set up file for my Addin and Victor chen had given following solution

 

You cannot vote again
1
Already Voted

Hi Sandeep,

 

Thanks for your feedback.

The registration here means to register the addin to Visual Studio, which makes it available for activation in the Add-In Manager.

It is accomplished by using an XML file with a .addin extension.

The steps to create a setup project is:

1. In VS2008, File->New Project->Other Project Types->Setup and Deployment

2. In the new setup project, open Application Folder by click on it.

3. Modify the .addin file's <Assembly> tag as:

<Assembly>.\Reference Folder\XXX.dll</Assembly>

4. Right click the right pane, add the .addin file into it, and create a new reference folder, then put all assemblies into it. As:

XX.AddIn

References Folder

     Addin Project Dll

     Referenced ProjectA DLL

     Referenced ProjectB DLL

     ...

By the way, when you add the addin project .dll file from bin\debug of addin project folder to references folder, some system assemblies may appear, don't delete them.

4. Build the project and you can find the .exe and .msi file in bin\debug of setup project folder.

 

To install it on another machine, you have to specify the path as VS directory addin path, such as:

C:\Users\v-ziche\Documents\Visual Studio 2008\Addins

It works fine on my side.

Hope this can help.

 

 

that worked absolutely fine but now my doubt is i have some custom action to be taken like the following

 

1) Victor had told that i have to give "C:\DocumentsAndSettings\VisualStudio2008\Addins" path for installation and major concern is in all the machine visual studio by default will not create a folder called "Addins" in C:\Documents\VS2008\ ,it will be created only when we create some addin project.

 

so here my question is "Is there a way to perform some custom action" using visual studio setup wizard?

 

2) i have one more custom action like during installation i should find out what is the root drive in that machine and i have to create a xml file which i will be consuming in my addin for some purpose.

 

thanks and regards,

sandeep.k

 


 


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>