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
- :
- How to cancel copy one componet files?
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
‎Oct 20, 2010
09:02 PM
How to cancel copy one componet files?
I've created a installation, when i first install it, it will be installed some "components" in different folder.
Now, i install it again. when install it, i think it may show a dialog to judge that component is installed before or not. when i choose "YES", it will be overwrited."No", it will skip this "Component" files coping?
How can i do it? i don't know how to cance one component file coping?
thanks.
Now, i install it again. when install it, i think it may show a dialog to judge that component is installed before or not. when i choose "YES", it will be overwrited."No", it will skip this "Component" files coping?
How can i do it? i don't know how to cance one component file coping?
thanks.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 21, 2010
08:54 AM
What kind of installation is this Kidroid?
In a basic MSI you will want to set a condition for the component and set the flag for Reevaluate Condition to True. That way on repair / reinstall the condition is always reevaluated despite the component files already being installed.
For the Yes/No dialog, you will set a property value based on the user's selection and that property will become the basis for your condition.
So, for example, I might use this condition:
REINSTALLME is a public property that I would set if the user clicks on Yes, and would delete if the user clicks on No.
In a basic MSI you will want to set a condition for the component and set the flag for Reevaluate Condition to True. That way on repair / reinstall the condition is always reevaluated despite the component files already being installed.
For the Yes/No dialog, you will set a property value based on the user's selection and that property will become the basis for your condition.
So, for example, I might use this condition:
NOT Installed OR REINSTALLME
REINSTALLME is a public property that I would set if the user clicks on Yes, and would delete if the user clicks on No.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2010
01:50 AM
Thanks.
But where i can set the components(features) flag? i can't found it in property list.
But where i can set the components(features) flag? i can't found it in property list.
DLee65 wrote:
What kind of installation is this Kidroid?
In a basic MSI you will want to set a condition for the component and set the flag for Reevaluate Condition to True. That way on repair / reinstall the condition is always reevaluated despite the component files already being installed.
For the Yes/No dialog, you will set a property value based on the user's selection and that property will become the basis for your condition.
So, for example, I might use this condition:
NOT Installed OR REINSTALLME
REINSTALLME is a public property that I would set if the user clicks on Yes, and would delete if the user clicks on No.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2010
06:44 AM
Hello Kidroid,
Based on your reply, you must not be making a Basic MSI or InstallScript MSI installation. The component condition would be available to you there in the property list for each component.
For installscript you will need to do something different. The components in question must be part of a unique feature group, one in which you can set a particular feature to install or not install.
In the OnMaintUIBefore Event you can add the call to the Yes/No dialog and then set the FeatureSelectItem(szFeatureSource, szFeature, bSelected) to true or false based on the user's selection. You can find more information on FeatureSelectItem in the help documentation, you will need it to learn about the particulars of specifying nested features if that is your setup configuration.
If this does not answer your question please let us know what type of setup you are making. Pure InstallScript install, Basic MSI Install, or InstallScript MSI install.
I hope this helps.
Based on your reply, you must not be making a Basic MSI or InstallScript MSI installation. The component condition would be available to you there in the property list for each component.
For installscript you will need to do something different. The components in question must be part of a unique feature group, one in which you can set a particular feature to install or not install.
In the OnMaintUIBefore Event you can add the call to the Yes/No dialog and then set the FeatureSelectItem(szFeatureSource, szFeature, bSelected) to true or false based on the user's selection. You can find more information on FeatureSelectItem in the help documentation, you will need it to learn about the particulars of specifying nested features if that is your setup configuration.
If this does not answer your question please let us know what type of setup you are making. Pure InstallScript install, Basic MSI Install, or InstallScript MSI install.
I hope this helps.
![](/skins/images/5FB1DCEA872798BEE7CD361DEA8CBE31/responsive_peak/images/icon_anonymous_message.png)