Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / August 2005

Tip: Looking for answers? Try searching our database.

Programmatically saving/restoring user customizations for devenv /setup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Parag Chandra - 25 Aug 2005 16:46 GMT
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.
"Gary Chang[MSFT]" - 26 Aug 2005 10:52 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.