This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Conditional Component Deleting Files When Not Installed
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 05, 2008
03:55 PM
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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 08, 2008
02:08 PM
Anyone have any suggestions that I could look at or try for this?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2008
10:36 AM
Anyone know the answer?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2008
06:10 PM
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?