Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Q: registering & unregistering dlls

4 views
Skip to first unread message

Howdy

unread,
Dec 24, 2004, 10:03:22 AM12/24/04
to
Hi All!

I'm sure this is a FAQ but since I didn't see a reference to the FAQ
in the forum I'll ask again <g>

I'm using the Wise Installer to create an msi for intalling a server
app which has two services and three dll's.

The app installs just fine. When I try to uninstall the app the
regsvr32 /u gets called and then later in the code the regsvr32 gets
called again to reregister the dll's.

I've embedded some conditionals in the code and that doesn't appear to
be stopping things:

Under 'Execute Deffered' below the" 'REM Unregister all modules that
are due to be uninstalled" I have this:
If REMOVE="ALL" then
Execute Program From Destination regsvr32.exe /u ...
Execute Program From Destination regsvr32.exe /u ...
Execute Program From Destination regsvr32.exe /u...
End

Further down Under 'Execute Deffered' below the" 'REM Register all
installed modules with the system" I have this:
If NOT REMOVE~="ALL" then
Execute Program From Destination regsvr32.exe ...
Execute Program From Destination regsvr32.exe ...
Execute Program From Destination regsvr32.exe ...
End

Everytime the unistall gets executed the task bar is updated with the
text from the first regsvr32 in the install/register block and at this
point uninstall has already removed the files so things fail.

Again, on a clean install it installs fine but will not uninstall.

I'd appreciate any help!

Phil

dba...@labyrinth.net.au

unread,
Dec 24, 2004, 7:54:47 PM12/24/04
to
Sounds like this should be asked in a wise group...

Howdy

unread,
Dec 26, 2004, 10:35:02 AM12/26/04
to
On 24 Dec 2004 16:54:47 -0800, "dba...@NoSpam.labyrinth.net.au"
<dba...@labyrinth.net.au> wrote:

>Sounds like this should be asked in a wise group...

That's what I would do/would have done if I could find a wise group...
but in the absence of one of those I think this is the appropriaet
place. Eh?

Phil Wilson

unread,
Dec 26, 2004, 12:00:34 PM12/26/04
to
There's no need for an uninstall custom action like yours to be deferred.
You want to run it before the files get removed, so having it immediate is
fine assuming there are no other uninstall custom actions later that depend
on the registration of the Dllls.

The recommended way to register/unregister is to use the MSI tables, not run
regsvr32 at install/uninstall time. Tools usually have wizards that extract
those entries into the MSI file.

--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Howdy" <wbo...@lbellsouth.net> wrote in message
news:3bbos0509edv922ep...@4ax.com...

alan sinclair

unread,
Dec 27, 2004, 4:21:37 PM12/27/04
to

"Howdy" <wbo...@lbellsouth.net> wrote in message news:gfmts0le7nv1087g4...@4ax.com...

Wise have a support forum on the web at
http://www.altiris.com/support/forum/default.asp

"Wise for Windows Installer" is the one you want


0 new messages