Make a backup copy before uninstall my application - Advanced Installer Community
bassemyehia
Posts: 1
Joined: Sat Jun 28, 2014 3:11 pm

Make a backup copy before uninstall my application

hi

i make an small system with .net and Access DB and would like the user have the chance to save the DB if he want to make uninstaller

can you please help me in this case ?

Thanks in Advance
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Make a backup copy before uninstall my application

Hello and welcome to Advanced Installer forums,

In order to achieve that you can create your own custom action which implements this functionality, to search if the related folder already exist on the target machine. For example, you can create your custom action as a custom action written in C# or a custom action written in C++.

Then you can go in the “Custom Actions” page and add a predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

Please make sure that you scheduled this custom action before the RemoveFiles standard actions. The standard actions used by Advanced Installer can be revealed using the Show Standard Action button on the toolbar of the Custom Actions page. Also, this custom action should be executed on the uninstall stage.

You can also take a look on the How do I prevent a file or registry entry from being uninstalled or repaired? article which may be useful to you.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

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

Return to “Common Problems”