DEVBUZZ Homepage VBRegFix - The free answer to your eVB uninstall woes
 
Web www.devbuzz.com
  HOME PAGE
  All Articles
  Advertise
  Consulting

 Development
  Discuss - Forums
  Still in the box?
  .Compact Framework
  Code Snippets
  SQL Server CE
  Database
  MS Resources
 Stores
  Developer Controls
  Pocket PC Hardware
  Pocket PC Software
  Pocket PC Books
  .NET CF Books
  Book Reviews
  SPB SW Discounts
  RESCO SW Discounts
 DEVBUZZ Info
  About Us
  Help
  Join our email list
  Links & Ratings
  Press & Comments
  Pocket PC version
  Software Reviews
  Hardware Reviews
 Authors
  Authors
  Article Guide
  Competitions
 Resources
  Developers
  Register
  Login

  SPB Discounts!
 Columnists
  Rick Winscot
 Past Blast
  Personal Media Ctr
  Gizmobility
  eVB Legacy
  Old news
  Hosted Software
  Wireless
  Newsletters
  Carl Davis
  Upton Au

 Pocket PC Registry
  Join the registry
  View current list
 Current Poll
Are you converting to .NET Compact Framework?
Yes, it has changed my life!
No, I'm sticking with eVB
.NET CF what's that`?

Current results
3431 votes so far
 Recent Forum Threads [goto forums]

Get Computername
read... (67 hits)


Great aid to development productivity
read... (82 hits)


ThreadingTimer sample code
read... (143 hits)


Multithreading with .NET CF
read... (194 hits)


Moving from eMbedded Visual Basic to Visual Basic .NET
read... (166 hits)


.NET Compact Framework 2.0 Service Pack 2
read... (226 hits)


Transfer Data from SQL Server 2000 to SQL Server Compact Edition
read... (298 hits)


This protocol version is not supported
read... (236 hits)


Converting Lowercase to uppercase wont work
read... (203 hits)


Direct access to MS SQL Server 2000
read... (374 hits)


Creating SDF file in Desktop
read... (513 hits)


Winsock in CF.NET
read... (316 hits)


Using Pocket Outlook to submit HTML page form with MAILTO action
read... (420 hits)


Missing file "System.Data.PocketPC.asmmeta.dll"
read... (268 hits)


HP iPAQ hw6915 Serial Port Issue
read... (309 hits)


Info on the recent forum changes
read... (341 hits)


SqlServer tools from Redgate
read... (383 hits)


Arrow keys and Hardware navigation button
read... (393 hits)


O2 XDA lls pin sync cable to comport
read... (322 hits)


Creating dynamic folders on Pocket PC OS
read... (299 hits)

Custom Windows Mobile software development.
LBS Challenge 2007
LBS Challenge Eight previous NAVTEQ Global LBS Challenge® participants have received venture capital funding and nine past LBS Challenge winners have launched commercial applications on major wireless carriers. Register your non-commercial LBS application in the 2007 NAVTEQ Global LBS Challenge in one of three regions: Americas, Europe-Middle East-Africa (EMEA) or Asia-Pacific(APAC). You could win a share of $2 million in prizes. This could be your year.
Dream. Develop. Win.

Development | Starting Out

VBRegFix - The free answer to your eVB uninstall woes
Written by Ralph Brown  [author's bio]  [read 51176 times]
Edited by Derek

Discuss this article   eVB Ver 3.0   

Page 1  Page 2  Page 3 

Necessity is the mother of invention

It all started when I had a shareware program rejected by a download site because the reviewer's PocketPC couldn't start an embedded Visual Basic (eVB) component. Of course this was completely irreproducible at first, which ticked me off, and after a lot of messing around, I happened to stumble on the cause. When an eVB program is uninstalled, ActiveSync removes everything installed with it, usually including the eVB runtime system! From the standpoint of all other eVB programs on the PPC, that's all she wrote, or rather erased: they can't run.

What probably happened to the reviewer was that he had been reviewing an eVB program, and then uninstalled it before trying my program. My program couldn't start because no eVB program would work at that point on that machine.

Installing eVB applications

The genesis of this is that when an eVB developer wants to set up an installation package for a program, normally (s)he would use the Application Install Wizard. The wizard is part of the eVB development system, and is all very simple, but one of the defaults, sitting in a very innocent looking little check box, is "Include Device Runtime". The purpose of this option is to include the EXE and DLL files that allow eVB to run as part of the installation package. Now, this is a little weird since these files are already in ROM and the copies waste memory, so it's not at all obvious why this is done. We can cut Microsoft a little slack by telling ourselves that this practice ensures that the latest versions of the code are loaded, and if you say it fast, it does make some sense.

When an eager user then installs such an eVB program, two things happen: the eVB application and all the runtime EXEs and DLLs are loaded, and equally importantly, the runtime DLLs are registered in the PocketPC's registry. The registry holds the key to all this. Among a lot of other stuff, the registry has an entry that tells WinCE what to do when it encounters an eVB program, that is, a file with a .vb extension. It is told by the registry entry that the polite thing to do is to run PVBLOAD.EXE and give it the .vb file to deal with. This is how eVB programs get run.

The wheels fall off

All is just hunky dory up to this point, but now comes the nasty part. When our trusting user uninstalls the eVB program, ActiveSync tries to reverse everything that happened when it was installed. All the application files are removed, any runtime files loaded with it are removed, and all changes to the registry are undone. If you say this very fast, and also mumble a bit, it sounds kind of OK.

It's not. The machine is now in deep doo doo.

Next Page 

Back to Starting Out | [Article Index]

 

Back to the top of the page.
Chris De Herrera's Windows CE Website Windows CE News & Information Source
Copyright ©2000-2007 by DEVBUZZ.COM, Inc., NJ. USA.MSDEVELOP