MWTips
Posts: 3
Joined: Sat Oct 01, 2011 3:31 am

Question about Uninstall Program in v5

Hello,

I'm still using version 5. My question is when users uninstall my program, it removes the "Replaced file" that my program replaces. I need to have the program after uninstalling put the original file back.
Example:
File "A" is on the computer by default. (C:\Windows\System32\Drivers\etc)
File "A" is replaced by my program with File "B'.
User uninstalls my program and then it deletes file "B".
Now there is no file where one should be.

How can this be done?

Thanks
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Question about Uninstall Program in v5

Hello,

In order to achieve that you can use our copy/move file operation support. For example, you can use a file move operation (added on install) which will move your target file in a backup folder and another file move operation (added on uninstall) which will restore the target file on its original location.

You can also achieve that using a custom action. Please take a look on our "How to backup and restore files/folders in APPDIR?" thread which debates a similar issue.

If you have any questions please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”