I have recently added files to an MSI package which has created all of the references needed etc and works great, other than one part.

The MSI basically installs all of the regular files that are part of the original MSI package and ONLY installs files in the OCW set that aren't part of the original. For example, in the original package I have:


I have added files:

Now, when it installs, it installs file9.dll and file10.dll in the correct locations that I asked, however it will not overwrite the original file1.dll with my new one.

I have edited the InstallExecuteSequence table to make OCW_Install_Added_Files, OCW_Install_User_Settings_Files, MoveFiles, OCW_Verify_Added_Files, OCW_Verify_User_Settings_Files all high sequence numbers (I've tested it in lots of different sequence places - even the last ones!) and I still get the same result. All I want it to do is move my new files after it has installed the original, thus overwriting them. It's almost as though the original files are read only until the installer has finished or something, it's the only way I can explain it.

Could someone please advise how I can resolve this issue as it has been driving me mad for hours! :(

Thanks in advance
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


Is File1.dll in use?

Install your file1.dll to c:\temp

You can write to HKLM\System\CurrentControlSet\Control\Session Manager
Create a value called - "PendingFileRenameOperations" as a Multi-String value

Set the first line to the file you want to overwrite - i.e.
Set the second line to the file you want to overwirte it with i.e.

Pay attention to the \??\ and the !\??\

Repeat for each file you need to copy ...

On a reboot it will commit the file copy\overwrite it will delete the value once it commits the change

so your value would look like this:


Hope this helps
Answered 08/03/2006 by: gmorgan618
Blue Belt

Please log in to comment