Click here to Skip to main content
16,009,407 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWindows Phone 7.5 Mango Pin
Midnight Ahri11-Apr-12 16:20
Midnight Ahri11-Apr-12 16:20 
AnswerRe: Windows Phone 7.5 Mango Pin
Dave Kreskowiak11-Apr-12 17:50
mveDave Kreskowiak11-Apr-12 17:50 
GeneralRe: Windows Phone 7.5 Mango Pin
Midnight Ahri11-Apr-12 22:06
Midnight Ahri11-Apr-12 22:06 
GeneralRe: Windows Phone 7.5 Mango Pin
Dave Kreskowiak12-Apr-12 3:36
mveDave Kreskowiak12-Apr-12 3:36 
GeneralRe: Windows Phone 7.5 Mango Pin
Midnight Ahri12-Apr-12 16:06
Midnight Ahri12-Apr-12 16:06 
QuestionUsing formula in DataGridView Pin
Amanjot11-Apr-12 8:59
Amanjot11-Apr-12 8:59 
AnswerRe: Using formula in DataGridView Pin
Dave Kreskowiak11-Apr-12 17:54
mveDave Kreskowiak11-Apr-12 17:54 
AnswerRe: Using formula in DataGridView Pin
VJ Reddy18-Apr-12 17:58
VJ Reddy18-Apr-12 17:58 
QuestionWhets the best way to… Pin
Badg3r197711-Apr-12 6:18
Badg3r197711-Apr-12 6:18 
AnswerRe: Whets the best way to… Pin
Eddy Vluggen12-Apr-12 1:06
professionalEddy Vluggen12-Apr-12 1:06 
GeneralRe: Whets the best way to… Pin
Badg3r197712-Apr-12 3:40
Badg3r197712-Apr-12 3:40 
AnswerRe: Whets the best way to… Pin
Eddy Vluggen12-Apr-12 8:45
professionalEddy Vluggen12-Apr-12 8:45 
Questionmailmerge with multitable using vb.net Pin
janjonhson10-Apr-12 20:27
janjonhson10-Apr-12 20:27 
AnswerRe: mailmerge with multitable using vb.net Pin
Dave Kreskowiak11-Apr-12 3:34
mveDave Kreskowiak11-Apr-12 3:34 
QuestionUninstall of a VB.Net 2010 program messing up all VB Pin
QuickBooksDev10-Apr-12 1:59
QuickBooksDev10-Apr-12 1:59 
AnswerRe: Uninstall of a VB.Net 2010 program messing up all VB Pin
Dave Kreskowiak10-Apr-12 4:43
mveDave Kreskowiak10-Apr-12 4:43 
It screws up because controls are not registered on a per-application basis. Controls are registered using the COM GUIDs in the controls and the registration is stand-alone. The controls can be used in any application anywhere.

If you have multiple copies of the same control, the control is only registered ONCE since each copy has the same GUIDs and CLSIDs. The filepath to the control is also part of the registration. So, if you have an application that uses the same controls as another application and your installer, when uninstalled, removes the registration details when it removes the controls, the registration data is destroyed for the control no matter how many copies of it are on the machine.

The problem comes down to how your installer is built. The Setup project that comes in Visual Studio is a barebones installer that doesn't have a ton of features in it and can do some pretty stupid things. If you trust it implicitly, without knowing how it's doing things or why, problems like your will come up.

I highly recommend studying Windows Installer technology (specifically Shared Components and reference counting) and using a 3rd party packaging solution, like InstallShield, InnoSetup, Advanced Installer or WiX if you want to avoid situations like this in the future.

GeneralRe: Uninstall of a VB.Net 2010 program messing up all VB Pin
QuickBooksDev12-Apr-12 0:52
QuickBooksDev12-Apr-12 0:52 
GeneralRe: Uninstall of a VB.Net 2010 program messing up all VB Pin
Dave Kreskowiak12-Apr-12 3:35
mveDave Kreskowiak12-Apr-12 3:35 
GeneralRe: Uninstall of a VB.Net 2010 program messing up all VB Pin
QuickBooksDev12-Apr-12 14:42
QuickBooksDev12-Apr-12 14:42 
GeneralRe: Uninstall of a VB.Net 2010 program messing up all VB Pin
QuickBooksDev1-May-12 9:49
QuickBooksDev1-May-12 9:49 
GeneralRe: Uninstall of a VB.Net 2010 program messing up all VB Pin
Dave Kreskowiak1-May-12 11:28
mveDave Kreskowiak1-May-12 11:28 
GeneralRe: Uninstall of a VB.Net 2010 program messing up all VB Pin
QuickBooksDev1-May-12 12:17
QuickBooksDev1-May-12 12:17 
GeneralRe: Uninstall of a VB.Net 2010 program messing up all VB Pin
Dave Kreskowiak1-May-12 13:23
mveDave Kreskowiak1-May-12 13:23 
QuestionForm Pin
andi1234567899-Apr-12 17:46
andi1234567899-Apr-12 17:46 
AnswerRe: Form Pin
Abhinav S9-Apr-12 22:12
Abhinav S9-Apr-12 22:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.