zeleznikrg
Posts: 4
Joined: Mon Apr 18, 2005 12:26 pm

Need to copy & register Dll's silently

I need to have the installer copy several .DLL and .OCX files to the system32 dir. On WinXP, I havent experienced problems, but on Win2k, I get errors upon installation stating that "X file could not be overwritten due because it was in use by the operating system". It then tells me that I may have to upgrade my operating system files for the application to function properly.

I need it to try to register the files, but if the versions are the same, or the file is in use at the time, just move on without prompting the user.

Using Advanced Installer 2.5.1.

Please advise,

Rick Zeleznik
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

Hi Rick,

Advanced Installer offers you the possibility to not overwrite a file if it already exist (from "Organization" page in the Component Properties page "Never Overwrite" option).

If you do care about the version of the file then you can create a property (named let's say SEARCHRESULT1) that holds the result of the search for that file and version using "Search" page -> "New File Search". If that the file (required version) exists that property will contain the path of the file that you are looking for. Then you must condition your component with something like:
NOT SEARCHRESULT1
You must repeat this steps for every component of your project.

If you are interested about write access to a file the you must use a Custom Action in which you test that yourself.

Kind regards,
Mihai.
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com
Guest

I need the installer to "try to overwrite", but if the file is in use or protected by the operating system then I need it to move without messages to the screen.
zeleznikrg
Posts: 4
Joined: Mon Apr 18, 2005 12:26 pm

The above entry was by me. I thought perhaps it wouldnt be answered if you didnt know who it was.

Return to “Common Problems”