First, sorry if this has been covered before. I would like to avoid wiping
out a user's customizations when I run devenv /setup to install my package.
I understand it is now possible to use a wizard-based tool from within
Whidbey to export and later re-import a user's settings, but I was wondering
if it is possible to do this sort of thing programmatically as well. Thanks.
Hi Parag,
>I would like to avoid wiping out a user's customizations
>when I run devenv /setup to install my package. I understand
>it is now possible to use a wizard-based tool from within
>Whidbey to export and later re-import a user's settings,
>but I was wondering if it is possible to do this sort of thing
>programmatically as well.
Have you tried the IProfileManager Interface to acheive this, this
interface provides the Visual Studio settings support for a VSPackage,
which implemented by classes supporting VSPackages by persisting their
state information through the Visual Studio settings mechanism.
The VS2005 IDE also uses classes that implement the IProfileManager
interface and classes that are registered as supporting a given VSPackage
implementation, to save the state of a VSPackage.
So you may use that interface to export/import the IDE's settings. please
refer to the following VSIP Docs for details:
How to: Export Environment Settings Using the Managed Package Framework
How to: Import Environment Settings Using the Managed Package Framework
Thanks!
Best regards,
Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.