harshal119
Posts: 21
Joined: Wed Mar 27, 2019 10:18 am

Replace existing installed DLLs with new ones

Wed Mar 27, 2019 10:26 am

Hi

I have existing application installed (DLLs) in Client machine. It was generated using some different installer in past. Now, I would like to begin the use of Advance installer and wanted to create an exe to patch/update require DLLs on previously installed application. May I know the way to achieve this?

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Replace existing installed DLLs with new ones

Wed Mar 27, 2019 1:48 pm

Hi and welcome to our forums.

Thank you for your interest in Advanced Installer.

If your old installer was also based on Windows Installer you can go in the Upgrades page, click on the [Upgrade] toolbar button and add the old Upgrade Code there. Or you can simply use the old Upgrade Code for your new package in the "Product Details" page, "Product IDs" tab. In both cases, the new package will automatically upgrade the old one.

Let me know if this helped, otherwise give me more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

harshal119
Posts: 21
Joined: Wed Mar 27, 2019 10:18 am

Re: Replace existing installed DLLs with new ones

Wed Jun 19, 2019 2:11 pm

Thanks. Sorry for little late response.

I have another question though.

I have a DLL and that requires some dependencies to fully register. For example: I would like to register A.DLL and it depends on B.DLL.

Now, the question is how would I remove B.DLL after completion of installation process? When, I added as dependencies, it became part of that folder. Now, I dont want that to be there after installation(i.e. after registration of A.DLL).

Is there any way to achieve this? Thanks

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Replace existing installed DLLs with new ones

Thu Jun 20, 2019 1:52 pm

Hi,

In order to delete a file at the end of the installation, you can go in the "Custom Actions" page and add a "Launch file" custom action after the "Add Resources" action group configured as in the example below:
  • File to launch: cmd.exe
    Command line: /c del [#B.DLL]


    Select only the options below:
    When the system is being modified (deferred)
    Run under the LocalSystem account with full privileges (no impersonation)
    Wait for custom action to finish before proceeding
    Fail installation if custom action returns an error
    Install
Let me know if this helped, otherwise give me more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

harshal119
Posts: 21
Joined: Wed Mar 27, 2019 10:18 am

Re: Replace existing installed DLLs with new ones

Fri Aug 16, 2019 6:36 am

Thanks very much. Appreciate your help.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Replace existing installed DLLs with new ones

Fri Aug 16, 2019 7:33 am

My pleasure.

If you have other questions, just let us know.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”