fazza
Posts: 12
Joined: Tue May 19, 2009 11:22 am

Creating custom toolbox controls installer problem

Hi All,

In short, I am struggling to get VSIX created using advanced installer to work as I expect.

Long story, I am now learning how to create visual studio custom toolbox controls installer using VSIX to be later on added to my SDK installer. From what I understand, the great feature of VSIX is that I can just install it and Visual Studio will detect and add all the controls to toolbox automatically. Here are the step to create the VSIX:
1. Create new project (Add-Ins -> Visual Studio Extension)
2. Add more Visual Studio Products in 'Prerequisites' tab (I now have Pro, Ultimate, and Premium with version 10.0)
3. In the 'Files and Folders' tab, I added bunch of dlls to the 'Extensions Folder'. These dlls contain custom controls to be added to the toolbox.
4. I set those dlls category to 'Toolbox Control'. I did this through the properties.
5. In the 'media' tab, I filled in the 'Folder' and the 'File Name'.

After those easy steps, I successfully created a VSIX file. After running the file, I verified that it is installed correctly by checking the Extensions Manager in Visual Studio. However, I do not see my new controls appear in the toolbox. So now I am wondering which step I am missing. If you can help me that would be appreciated.

cheers,
Fazza
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Creating custom toolbox controls installer problem

Hello Fazza,

Can you please specify whether you are authoring a "Visual Studio Extension" or a "Visual Studio Add-In"?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fazza
Posts: 12
Joined: Tue May 19, 2009 11:22 am

Re: Creating custom toolbox controls installer problem

Hi Mihai,

I am creating a "Visual Studio Extensions".

I have a "CustomUserControls.dll" that contain custom controls implementation. I want to add the custom controls to my Visual Studio 2010 toolbox from the installer. From the following link http://www.advancedinstaller.com/vsix-installer.html, it suggest that it is possible to create vsix from advanced installer.

So here are my questions:
1. Is there any example I can look at?
2. Do I need to include the .pkgdef to the 'Extensions Folder'?

kind regards,
Faried Fauzi
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Creating custom toolbox controls installer problem

Hi Faried,
Do I need to include the .pkgdef to the 'Extensions Folder'?
Yes, this must be included. The extension must also include the .DLL files and resource files( icons, images, etc ). "extension.vsixmanifest" file is automatically generated in Advanced Installer.

Does the extension work when tested with Visual Studio Experimental Instance?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”