backup in user specified location - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

backup in user specified location

Hi Support,

I have another issue.. I want to take a backup of the folders in the user defined location before installing the patch. Actual scenario is that I am trying to install some folders by installing 3.1.3.0 version. Then I am creating a patch for this version i.e. 3.1.4.0. Before installing the 3.1.4.0 version, I wish to take backup of the the folders installed by 3.1.3.0. I am able to take the backup in the temp location and restore it later, but I wish to take the back in the user specified location. How can I do it?

I hope this explains my issue. Please let me know if you need any information. Waiting for your valuable suggestions....

Regards
Sony
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: backup in user specified location

Hi Sony,

You can use our sample backup custom action and condition it to run during a patch installation. To perform a backup in a custom folder you can try this:
- use the dialog editor to add a path edit control to one of the patch dialogs
- use a "Property set with Formatted" custom action to set the "BackupFolder" property to the custom path (this custom action should run before the backup script)
- make sure that the Action Data field of the backup custom action has this form:

Code: Select all

[BackupFolder]<>[BackupList]
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: backup in user specified location

Hi Cosmin,

Thank you the reply and apologies for the delay..

I have tried your suggestions but it dint work at my end. Here is the scenario of my question. I have a couple of folders in the Application Directory in the sample version 1.0.0. Then I have upgraded the version to 1.0.1 and want to take the backup of the folders that are available in the application directory in to a user specified location before installing the version 1.0.1. During uninstallation of 1.0.1 version, I want to restore the backup folders to a specific folder?

How can I do this?

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: backup in user specified location

Hello Sony,
I have tried your suggestions but it dint work at my end.
How did it now work? What was the behavior you got?
Please send us the .aip project file with your implementation to support at advancedinstaller dot com so we troubleshoot it.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: backup in user specified location

Hello Gabriel,

Sent the sample to the support at advanceinstaller dot com.

Regards
Sony
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: backup in user specified location

Hi Gabriel,

Any Updates???

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: backup in user specified location

Hello,

Display the MoveFiles standard action and place your custom actions under this standard action while keeping them as "deferred with no impersonation". It should work.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: backup in user specified location

Hi Gabriel,

Apologise for the delay...

Added the MoveFiles standard action in the InstallExecuteSequence and moved the custom actions under it. The Execution option is "Immediate" for both of the custom action and rest of the options are disabled. How ever, the folder is not getting copied to the specified location before the actual installation is started.

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: backup in user specified location

Hello Sony,
How ever, the folder is not getting copied to the specified location before the actual installation is started.
I am not sure what you mean by 'actual installation'. I refer to the actual installation of the files as the 'actual installation'. The installation is done by the InstallFiles standard action which is after MoveFiles and thus after your custom actions. Perhaps I am not properly understanding the issue in which case I would ask you to elaborate a little further on the problem.

Thank you,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: backup in user specified location

Hi Gabriel,

Your suggestions worked..

Thanks alot!! :D

Regards
Sony

Return to “Common Problems”