/build/static/layout/Breadcrumb_cap_w.png

[MSI] How to never overwrite a file if it exists.

Hi,

I was wondering if there's a way to tell the msi to never overwrite a file if it allready exists on the target system..
I'm trying to script an update for an application that has a local databasefile in it's own directory..(an .mdb file)
The msi should not overwrite that file if it allready exists..
But if it does not exist it should install the empty mdb file from the msi..

Is there an easy way to do this? Or should I really start scripting with if statements?

I'm using wise 3.20 for all this but I could not find an option in there so if it is possible I think I have to do this in the tables..

0 Comments   [ + ] Show comments

Answers (1)

Posted by: WiseUser 20 years ago
Fourth Degree Brown Belt
0
The MDB file should be the keypath of the component that it belongs to, and the msidbComponentAttributesNeverOverwrite (128) flag should be set for that component (in the attributes column of the component table - see SDK help).
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