Copy bak in dialog before copy main feature - Advanced Installer Community
francis.matamoros
Posts: 15
Joined: Fri Mar 23, 2018 7:39 pm

Copy bak in dialog before copy main feature

Hello, I am trying to restore a database from a custom action of type call function from native native dll.
This restoration was done at the end before launching the installed application.
Now I need to run it before, but I still do not have the necessary .bak file to be able to restore it.
How can I copy a file or a directory before all the files included in the installation are copied?
I have been looking for possibilities and I can not find any that work for me correctly. Specifically, I had looked through Features but I do not get what I need.

Thank you.
francis.matamoros
Posts: 15
Joined: Fri Mar 23, 2018 7:39 pm

Re: Copy bak in dialog before copy main feature

Hello, I answer myself. I have already verified that if I add the SQL backup as Temporary File I have it through a property that I can use in my CustomAction of C #


Anyway, could I download from web or ftp the backup file at installation time and use it as a property from a C # Custom Action?
It may happen that sometimes that backup is too large to be included in the installer


Greetings.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Copy bak in dialog before copy main feature

Hello,

I am glad you sorted this out.

In order to download the file during installation you can use our "File Download Operation" support from "Files and Folders" page. This way the file will be downloaded with the specified name in the folder you defined it.

So to access the file path from your custom action you should just access the file download parent folder path (each folder has an assigned property) and append to this the file name.

Hope this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”