It would appear that you have deleted empty folders in the Program Files
tree and then used a registry cleaner, If so then you've fallen into the
trap that many others have fallen in to over the years. If you backed up
the entries deleted by the reg cleaner try restoring them, especially the
VARLID key.
I would have attached a zip file containing a reg file that could have
been merged with the registry to restore the deleted entries but since you
are posting to this newsgroup using the Microsoft web interface there is
no point as you would not be able to recover the attachment. You can
either e-mail me using the address below my signature and I will send you
the required patch of alternatively you could restore the backup of the
deleted keys made when you used the registry cleaner, that is assuming you
backed up the deleted entries.
This problem can be avoided in future by not deleting the folders placed
in Program Files during the installation of Win Me but more importantly by
not deleting any values in the key
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\VarLDID
when using a registry cleaner.
What happens is that if any of the folders referred to in VarLDID (you can
see them by opening the reg file using notepad) is deleted then most
registry cleaners will remove the value (entry) in the VarLDID key that
refers to that folder. This is because the registry cleaner considers it
to be a "dead" entry since the folder no longer exists. Setupx then has
problems because if can't find one of the paths it needs and then gives
the error you saw.

Signature
Mike Maltby
mike.maltby@gmail.com
> When I go into control panel/add-remove programs an error message
> comes up that says rundll32 has caused an error. When I click that
> off I get a message that rundll32 has caused an error in setupxdll
> and will shut down. Any ideas on how to fix this? It's got me stumped.