Newbie help: Register DLL via MSI-package (Wise Package Studio)

Hi :)

I'd want some newbie help with creating an MSI-package using Wise Package Studio 5.5.

All I really want to do is:
1. Unregister any existing version of the specific DLL (regsvr32 /u name.dll)
2. Copy my new DLL to %WINDIR%.
3. Register my new DLL (regsvr32 name.dll)

I want this packaged as an MSI file for AD GPO-distribution.

Can anyone give me some pointers as to where I begin?

0 Comments   [ + ] Show comments

Answers (7)

Posted by: nmi 15 years ago
Orange Belt
Personally, this is something I'd be more likely to do with a script. You could do it with an MSI but it's not exactly the best way of doing things.

Posted by: masken 15 years ago
Senior Yellow Belt
I knew an answer like that would come ;)

Yes it's possible with scripting, but in this case it should be as an MSI package. There are several reasons for this, one is that the users don't have local admin privs, and one is that it should be an easy/non-advanced deployment for the end-users.
Posted by: nmi 15 years ago
Orange Belt
Ok, as you want it as an MSI you could do this but have a script which runs as a custom action to do what you need OR...

If you deploy your DLL as a file in your package it will be self registered, you may want to schedule your custom action before you deploy the files so that you can unregister any existing files although this may not be necessary.

Hope this helps.

Posted by: ab2cv 15 years ago
Orange Senior Belt
To make an MSI installation autoregister a dll or ocx file on installation, just add the filename as a row in the SelfReg table. I don't think there is a way to unregister using the MSI.

Posted by: craig16229 15 years ago
Third Degree Brown Belt

If you are not completely comfortable with the above options, there is something else you might consider and test: a tool called CCRP Registration Utility. I have used it many times with problematic .tlb files. It can also register .ocx files.

There is info on it here:


You could run a separate capture of the changes the tool makes when it registers and unregisters your .dll files, and "add / update resources" in your existing .msi.

Craig --<>.
Posted by: masken 15 years ago
Senior Yellow Belt
Okay guys, thanks for the help.

Haven't decided yet, but it seems that there's limited functionality to achieve my goal easily with Wise. Perhaps I'll do a startup-script anyhow.
Posted by: plangton 15 years ago
Second Degree Blue Belt
Hi Masken,

It can be done as an MSI, but I'd agree thats its probably not the best.

If you need to to run as an admin you can run the script using psexec (www.sysinternals.com) to run it as another user on the workstations.

If you are determined to go the MSI route, then its custom actions for unregistering, and Wise makes sure that DLL's/OCX's etc self register, but you can make it by right clicking on the file in the File view, selecting Properties (I think, I don't have it in front of me) and one of the tabs is for DLL registration.

Hope thats helped.


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ