subhendu
Posts: 7
Joined: Mon Jan 02, 2006 12:34 pm

Conditional copy of files

Hi,

I have to copy some .dll files into my APPDIR based on whether those files are present under Windows\system32 folder or not. If those are present I'll just ignore copy else I'll copy those into my APPDIR.

I'm also licensed user. Please reply it urgently.


Thanks in Advance
subhendu
Posts: 7
Joined: Mon Jan 02, 2006 12:34 pm

Please suggest

Hi,

Can anyone suggest about the abovementioned issue for the Advanced Installer Java.

I'v to overwrite those .dlls under the system32 folder depending on its version and non availabilty.

Thanks
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

Regarding the first post, this can be achieved with the aid of some file searches.

For more details on how to schedule a file search please visit:
http://www.advancedinstaller.com/user-guide/search.html

After scheduling the searches for the DLL files, you could condition the installation of components that contain the files from your package, by the results of those searches.

This way if the search is successful those components will not be installed.

For more details on how to do that please see:
http://www.advancedinstaller.com/user-g ... rties.html

With regard to the second post, in order to overwrite the files present on the target machine depending on their version, simply configure the project so that the files from your package will be deployed in the system32 folder. At install time the files on the target computer will be overwritten or not depending whether their version is smaller than that of the files from the package.

For more details on versioning rules please see:
http://msdn.microsoft.com/library/defau ... _rules.asp

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
subhendu
Posts: 7
Joined: Mon Jan 02, 2006 12:34 pm

Synchrnous execution - Custom Action

Thanks
I got the trick.

I'v faced a problem. In Custom Action, I'v chosen Install in ExecuteAction sequence. Here I'v to launch a particular batch file which will execute an .exe file for a particular driver installation. When I choose "Synchronous execution and check return code " and "Immediate Action", It's not getting exeuted. But If I choose "deferred action" then the batch file is getting executed. At that time I'v moved to the finish screen. So it's just like a flavor of Asynchronous.

Can u suggest whether anything wrong with the plan of mine.

Thanks in advance.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

You have to select "Deferred" as the Execution Option, because the BAT file needs to be installed before it is executed.

Please see the following thread for details about executing a batch file:
http://www.advancedinstaller.com/forums ... .php?t=862

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”