/build/static/layout/Breadcrumb_cap_w.png

Repair bring backs the file I deleted using RemoveFile table in a patch?

Hi,

I've been trying to delete a file through a patch using MSI's RemoveFile table. The issue I'm facing is that as soon as I run repair the files comes back.
Now, this appears logical since InstallFiles action comes after RemoveFiles action. So the file is removed when patch is applied. But as soon as user does a repair which in turn causes a REINSTALL=ALL, the InstallFiles action installs the file back. I don't want the file to come back at patch or repair.

Is there a way I can achieve this without a custom action? I'm sure there must be a way to achieve this in Windows installer as it seems a very common scenario.

0 Comments   [ + ] Show comments

Answers (5)

Posted by: naveen.packager 13 years ago
Green Belt
0
From original msi,delete the files from msi which you need to delete and create it as a 2nd msi. Then create a patch using these two msi's and then install the patch.

Hope it will work.
Posted by: anonymous_9363 13 years ago
Red Belt
0
Yup, that's the correct way to create a patch. What you did in the first instance would normally be in a transform.

Please note that this forum is designed for posts relating to errors returned by the Windows Installer engine (see the link 'MSI Errors' for examples). You ought to have posted in the 'Package Development' forum. A moderator may move the thread.
Posted by: deployX 13 years ago
Orange Senior Belt
0
Thanks for responding. But while creating the new MSI can we modify the primary key in File table? Following link suggests that we should not modify primary key in File Table when creating a patch.
http://www.advancedinstaller.com/user-guide/patches.html

Oh! and I must also mention that I'm creating a MSP patch for a minor upgrade.
Posted by: anonymous_9363 13 years ago
Red Belt
0
First things first...

You need to understand the difference between patching and upgrading. They are NOT the same thing. Get yourself off to MSDN and do some reading.
Posted by: deployX 13 years ago
Orange Senior Belt
0
Hi VBScab,

I know the difference between patching and upgrading and I'm trying to create a msp patch only to update my application.

But it seems that if I want to remove a installed file then I must delete it from File table but deleting it from File table creates sequencing issue when creating a msp.

I think I'll post to a wider audience under package development as suggested by you.
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