Backup file before removing a folder - Advanced Installer Community
FruitBrute
Posts: 2
Joined: Wed Jun 18, 2014 7:33 pm

Backup file before removing a folder

Hello,

I'm using VBScript for removing folders described in this article and it's working just fine.
But now I want to take it to the "next level". On target machine in folder, which will be removed, there is one specific file that I want to remain intact. Is there any way to accomplish this?

I was thinking about moving that file to some temporary folder and moving it back after that VBScript has done its job. But I ran into a problem where all File Move operations are executed at the same time and I can't define which File Move operation will be executed before VBScript and which will be executed after VBScript.

Thank you in advance for help.

(and sorry for my crippled English)

Edit: Ups, this topic should be probably in Building Installers section, sorry for that...
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Backup file before removing a folder

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can follow the steps described in the How to uninstall an existing application thread which debates a similar problem.

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

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
FruitBrute
Posts: 2
Joined: Wed Jun 18, 2014 7:33 pm

Re: Backup file before removing a folder

Yes, it worked perfectly.

Thanks a lot.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Backup file before removing a folder

You're welcome. I'm glad it works.

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

Return to “Common Problems”