cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dlrohm
Level 2

Conditional Component Deleting Files When Not Installed

When I set a condition on a component and it gets evaluated to False, it deletes the file on the target system. Why is it doing this?

My setup is that I have a component that contains 1 file. Based on user input from the installer I set a property to 1 or 0. The condition on the component is checking the value of this property. When the condition is 0, I don't want the component installed, when it is 1 I want it installed. Simple...I thought so at least.

Any clue why it deletes the file when the component doesn't get installed? Is there a way for me to prevent this from happening?

Doug
Labels (1)
0 Kudos
(3) Replies
dlrohm
Level 2

Anyone have any suggestions that I could look at or try for this?
0 Kudos
aup2008
Level 3

Anyone know the answer?
0 Kudos
RobertDickau
Flexera Alumni

If you create an MSI log file, is there any more information? If the component condition fails, the assumption is that the component should be skipped or removed, depending. Presumably the file being deleted is part of the component?
0 Kudos