Announcement

Collapse
No announcement yet.

How to Unregister files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Unregister files

    I am using Setup Factory to install an update to my application. The update requires a new version on an ActiveX .ocx file to be registered. However before registering the new .ocx I need to unregister and remove the old .ocx that has the same name as the new one. How do I do that?

    Thanks

  • #2
    Typically, you would perform these actions in the On Pre Install event script. First, unregister the component using regsvr32.exe /u filename (with proper path using session variables, of course). Then, use File.Delete() to remove the old version. Setup Factory will deploy the new file and register it. In case of an uninstallation, the last version will be unregistered, then removed.

    Ulrich

    Comment

    Working...
    X