Uria
Posts: 21
Joined: Tue Mar 03, 2009 8:47 am

Custom Action Before File Copy

HI,

I have a situation where I need to read some registry values and backup some configuration files before the MSI copies files to the target folders.
This is because I don't want the deployed files to overwrite the existing configuration files.
I thought I could run a custom action on the 'Begin' step, but the dll containing the .Net installer class is not deployed yet and it gave me a file-not-found error.
What approach should I take?

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

Re: Custom Action Before File Copy

Hi,

Unfortunately a .NET Installer Class Action cannot be used before its target DLL is installed on the target machine. A solution is to use a C++ DLL or another type of custom action attached to the installation.

Another approach would be to use a prerequisite to install the DLL before the main install runs.

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

Return to “Common Problems”