Syusaku Takara
Posts: 14
Joined: Mon Nov 02, 2009 1:52 pm

Backup original files on updating

Hi

I want to backup original file placed by user on updating.

Usually, an uninstall process at updating does not delete original files, but the installed installer include a terrible script to delete all files and folder at uninstalling.

I'm not sure this is correct way, but my idea is, backup a original files by script. The script searches and detects which is an unmanaged file by comparing with file list obtained AI property.
Because of backup original files only is the folder contains a lot of files, hence I want to backup original files only.

Unfortunately I don't know how to get managed file list from installer through a property.

Please let me know some idea to realize it.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Backup original files on updating

Hi,

I'm afraid that the only way of determining which files are installed by the package is to read the MSI through a custom action. This is a complicated task and usually there are other ways. Please note that our user guide contains the Preserve File on Install how-to which may help you.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Syusaku Takara
Posts: 14
Joined: Mon Nov 02, 2009 1:52 pm

Re: Backup original files on updating

Dear cosmin

Thank you for supporting.
I had used the pointed script and method to backup the files.
But it used a lot of time and I worried whether new file was overwritten, hence I want to know the list of installed file.

I will add a list and some lines into backup_restore.vbs.

Thanks and Regards,
infotray
Posts: 1
Joined: Tue Dec 06, 2011 1:14 pm

Re: Backup original files on updating

Dear forum

I'm looking for the file backup_restore.vbs on my Computer where Advanced Installer is installed.
But i can't find.
Where ist this script located?

Best regards

Martin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Backup original files on updating

Hi Martin and welcome to Advanced Installer forums,

"backup_restore.vbs" is a script file part of the sample from this user guide article. To get it, simply download the .ZIP archive from the article webpage and look into "scripts" folder.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”