NigelShaw
Posts: 53
Joined: Wed Apr 01, 2015 12:45 am

Replacing file on uninstall

Tue Aug 09, 2022 5:03 pm

Hi
During an install, i need to update a dll file but upon uninstall, i would need to replace it again with the original. How can i set that up?

Thanks

NigelShaw
Posts: 53
Joined: Wed Apr 01, 2015 12:45 am

Re: Replacing file on uninstall

Tue Aug 09, 2022 5:27 pm

I can also store a copy of the original in the same location and upon uninstall, rename the file to its original name

Catalin
Posts: 5185
Joined: Wed Jun 13, 2018 7:49 am

Re: Replacing file on uninstall

Wed Aug 10, 2022 12:18 pm

Hello Nigel,

Indeed, a solution would be the one you presented - to rename the original file so it is not overwritten and on uninstall to rename it back.

Another solution would be to copy the original file into a different location and then copy it back on uninstall, after the files were removed.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”