vpatel2611
Posts: 9
Joined: Thu Oct 08, 2009 5:23 pm

Backup and retore files

I am looking create setup project that will ask the user for the name of the virtual directory, create a virtual directory with that name and install my app in that folder.

The question I have is this:

If that folder already exists, I want the installer to find and copy a few files that are located in sub-folders within the parent folder to an alternate location and the copy them back after setup is complete. Is there a simple way to do this?

Another question is, how can I detect the version of MS SQL Server that is running. SQL server will not be installed on the machine that the setup will be executed on. We will be executing some SQL scripts using the SQL Scripts function, but before executing, we need to find out if SQL Server 2005 or 2008 is installed. If an older version is installed, the setup should inform that user and halt.

Any help will be greatly appreciated.

Thanks.
vpatel2611
Posts: 9
Joined: Thu Oct 08, 2009 5:23 pm

Re: Backup and retore files

Any thoughts on this?

Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Backup and retore files

Hi,
If that folder already exists, I want the installer to find and copy a few files that are located in sub-folders within the parent folder to an alternate location and the copy them back after setup is complete. Is there a simple way to do this?
Please note that the User Guide contains the Preserve file on install how-to which may help you.
how can I detect the version of MS SQL Server that is running. SQL server will not be installed on the machine that the setup will be executed on. We will be executing some SQL scripts using the SQL Scripts function, but before executing, we need to find out if SQL Server 2005 or 2008 is installed. If an older version is installed, the setup should inform that user and halt.
For this you can try using the SQL Server predefined launch condition or create a custom launch condition.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”