/build/static/layout/Breadcrumb_cap_w.png

OCW Added Files - Help needed please!

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:

file1.dll
file2.dll
file3.dll

I have added files:
file1.dll
file9.dll
file10.dll

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
aurora

0 Comments   [ + ] Show comments

Answers (1)

Posted by: gmorgan618 17 years ago
Blue Belt
0
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.
\??\c:\Windows\file1.dll
Set the second line to the file you want to overwirte it with i.e.
!\??\c:\temp\file1.dll

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:
\??\c:\Windows\file1.dll
!\??\c:\temp\file1.dll

----

Hope this helps
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ