1
Vote

A Few problems...

description

This is a great piece of work, but I've got a few problems with it:
 
1) The program ought to check if VS is open before commencing installation
2) When the installation is done, the program leaves an ugly entry in the Most Recently Used Projects list (serious in my opinion)
 
I will try to solve the problems as soon as I have time, but if somebody else has already got the solution, I would really love to know...
 
Cheers,
Johnny J.

file attachments

comments

JohnnyJ wrote Jan 27, 2008 at 7:45 PM

Oh, and one more:

3) I like to run my VS maximized, but after having used this tool, the VS IDE opens in normal (not maximized mode)

Cheers,
Johnny J.

JohnnyJ wrote Jan 28, 2008 at 10:53 AM

OK, I've solved a few of the problems I had with Toolbox.exe. I'm attaching a zip of the modified project in case somebody's interested. In this version, I have added this:

1) A check to see if VS is running
2) Restoration of the MRU Lists after installation/uninstallation
3) Added the possibility to remove a selected item from a specified toolbox tab
4) Added icon to the forms so that they don't show the standard VS icon in the taskbar (ugly and unprofessional in my opinion)

I HAVEN'T solved the last problem about running VS maximized, because I couldn't find a registry key where the windowstate is saved. If somebody else knows where, please let me know:
johnny_jorgensen@hotmail.com Cheers, Johnny J.

wrote Jan 28, 2008 at 10:53 AM

JohnnyJ wrote Jan 28, 2008 at 11:13 AM

Ooops, sorry - in the attached zip file, I forgot to remove hardcoded commandline arguments from the beginning of static void Main. Will never happen again... Instead of uploading a new zip file, I trust that you can remove the two lines yourself... ;-)

/Johnny J.

JohnnyJ wrote Jan 28, 2008 at 11:36 AM

OK, now I frinally found the WindowState in the registry - it wasn't quite straightforward...

I'll upload the latest zip file containing all of the modifications (and wtihout hardcoded arguments...):

1) A check to see if VS is running
2) Restoration of the MRU Lists after installation/uninstallation
3) Added the possibility to remove a selected item from a specified toolbox tab
4) Added icon to the forms so that they don't show the standard VS icon in the taskbar (ugly and unprofessional in my opinion)
5) If Visual Studio opened maximized before running Toolbox.exe, it will now also open maximized afterwards....

Cheers,
Johnny J.

wrote Jan 28, 2008 at 11:36 AM

JohnnyJ wrote Jan 28, 2008 at 7:07 PM

OK, last update today. I fixed a bug in my code: If the DTE hadn't completely shut down before calling the code that resets the windowstate, it overwrote the right (restored) windowstate with the wrong one again. I inserted a Thread.Sleep. Not the best solution, but it seems to work.

I also added code so that if you use the /uninstallitem option and remove the LAST control in the tab, the entire tab is also removed.

/Johnny J.

wrote Jan 28, 2008 at 7:07 PM

JohnnyJ wrote Jan 28, 2008 at 7:21 PM

I'm going nuts here. A few more bugs fixed in the 4th update - now it works perfectly for me...

/Johnny J.

wrote Jan 28, 2008 at 7:21 PM

jperson wrote Aug 15, 2008 at 3:58 AM

Johnny, thanks so much for your contributions to this project! I haven't checked in as often as I should be, but I've added you to this project now as a developer.

wrote Feb 13, 2013 at 10:17 PM