Click here to Skip to main content
15,891,863 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralParsing HTML (again) Pin
jamie_m_4-Aug-05 23:48
jamie_m_4-Aug-05 23:48 
GeneralRe: Parsing HTML (again) Pin
J4amieC5-Aug-05 1:26
J4amieC5-Aug-05 1:26 
GeneralRe: Parsing HTML (again) Pin
jamie_m_5-Aug-05 4:23
jamie_m_5-Aug-05 4:23 
General.dll not registred Pin
Member 135222534-Aug-05 22:36
Member 135222534-Aug-05 22:36 
GeneralRe: .dll not registred Pin
Dave Kreskowiak5-Aug-05 4:42
mveDave Kreskowiak5-Aug-05 4:42 
GeneralRe: .dll not registred Pin
Member 135222535-Aug-05 5:21
Member 135222535-Aug-05 5:21 
GeneralRe: .dll not registred Pin
Dave Kreskowiak5-Aug-05 6:32
mveDave Kreskowiak5-Aug-05 6:32 
GeneralRe: .dll not registred Pin
rwestgraham5-Aug-05 7:50
rwestgraham5-Aug-05 7:50 
The MSI best practices advise not using self-registration of DLLs at all. Instead the package should write all the registry keys required by all components directly from the MSI Registry table.

The main reason for self-registration failure is the dll cannot load one of it's dependencys. Assuming you have all the dll dependent components in your package, this can still occur because there is no guarantee the dlls will be registered in the required order. This is why they advise writing registry keys.

Unfortunately, it is not that simple because you have to determine all the registry keys required by a DLL. You can find Registry spy tools that record any changes made to the registry and use these to determine what keys need to be added to the setup. It's still a tedious process and easily prone to errors, so you must test carefully on a machine with a clean Windows install to make sure the package works.

As far as checking self-registration success, you can add an Installer class as a custom action and write code in it to load the DLL. If this fails, you can raise an exception from the Installer class. This will cause the entire setup to be rolled back. The problem with this is if the setup fails one time it will likely fail every time so your user has a setup that essentially never works.

A better option is to write a custom action that registers the dlls in a specific order that you have determined will always succeed.
GeneralRe: .dll not registred Pin
Member 135222537-Aug-05 19:59
Member 135222537-Aug-05 19:59 
Generalrecently migrated from VB6...debating on C# or VB.NET Pin
JoeySmith4-Aug-05 21:22
JoeySmith4-Aug-05 21:22 
GeneralRe: recently migrated from VB6...debating on C# or VB.NET Pin
Dave Kreskowiak5-Aug-05 4:38
mveDave Kreskowiak5-Aug-05 4:38 
GeneralRe: recently migrated from VB6...debating on C# or VB.NET Pin
Dave Doknjas5-Aug-05 14:54
Dave Doknjas5-Aug-05 14:54 
GeneralRe: recently migrated from VB6...debating on C# or VB.NET Pin
JoeySmith5-Aug-05 16:56
JoeySmith5-Aug-05 16:56 
Questionhow can i load data back onto treenodes Pin
fareee4-Aug-05 20:59
fareee4-Aug-05 20:59 
AnswerRe: how can i load data back onto treenodes Pin
Dave Kreskowiak5-Aug-05 4:32
mveDave Kreskowiak5-Aug-05 4:32 
GeneralRe: how can i load data back onto treenodes Pin
Anonymous6-Aug-05 6:09
Anonymous6-Aug-05 6:09 
GeneralRe: how can i load data back onto treenodes Pin
Dave Kreskowiak6-Aug-05 6:45
mveDave Kreskowiak6-Aug-05 6:45 
GeneralDLL from project VB Pin
Roirin4-Aug-05 20:59
Roirin4-Aug-05 20:59 
GeneralRe: DLL from project VB Pin
Dave Kreskowiak5-Aug-05 4:24
mveDave Kreskowiak5-Aug-05 4:24 
GeneralRe: DLL from project VB Pin
Roirin7-Aug-05 20:19
Roirin7-Aug-05 20:19 
GeneralRe: DLL from project VB Pin
Dave Kreskowiak8-Aug-05 1:53
mveDave Kreskowiak8-Aug-05 1:53 
GeneralRe: DLL from project VB Pin
Roirin8-Aug-05 20:48
Roirin8-Aug-05 20:48 
GeneralRe: DLL from project VB Pin
Dave Kreskowiak9-Aug-05 1:54
mveDave Kreskowiak9-Aug-05 1:54 
Generalparse treeview Pin
fareee4-Aug-05 20:56
fareee4-Aug-05 20:56 
GeneralRe: parse treeview Pin
Dave Kreskowiak5-Aug-05 4:20
mveDave Kreskowiak5-Aug-05 4:20 

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.