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
- :
- XML file Changes
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Aug 23, 2010
11:26 AM
XML file Changes
Hi Can anyone tell me if it is possible to disable my XML file changes when the install is an upgrade?
I only want the XML file changes to happen if the install is a first time install
Thanks
I only want the XML file changes to happen if the install is a first time install
Thanks
(6) Replies
‎Aug 25, 2010
09:31 AM
Hi Thanks for your reply, I will try it out.
Thanks again
Thanks again
‎Aug 25, 2010
10:59 AM
Hi set the component condition to 'Not Installed' didn't seem to make any difference sorry.
‎Aug 26, 2010
12:33 AM
You could also add a condition to the ISXml... custom actions, but it can be a bit tricky, as you need to understand exactly what each of them is actually doing.
Another alternative would consist in isolating your component in a separate feature, and configure it so that the feature itself does not get reinstalled in your upgrade scenario.
Indeed, the XML file changes are only applied to components when the corresponding feature gets (re)installed.
But depending on your feature configuration, you might not be able to isolate the component.
Alternatively, you can leave the XML file changes as they are, but add a system search to your project, which looks for the information in the XML file you are configuring at installation.
In an upgrade scenario:
[LIST=1]
The information will be read from the XML file thanks to the system search.
The XML File changes will apply the changes to this XML file again.
As a result, your XML file will remain unchanged after an upgrade.
Another alternative would consist in isolating your component in a separate feature, and configure it so that the feature itself does not get reinstalled in your upgrade scenario.
Indeed, the XML file changes are only applied to components when the corresponding feature gets (re)installed.
But depending on your feature configuration, you might not be able to isolate the component.
Alternatively, you can leave the XML file changes as they are, but add a system search to your project, which looks for the information in the XML file you are configuring at installation.
In an upgrade scenario:
[LIST=1]
As a result, your XML file will remain unchanged after an upgrade.
‎Aug 26, 2010
05:54 AM
Thanks Reureu I'll try out your suggestions and let you know.
Thanks
Thanks
‎Aug 27, 2010
10:44 AM
Hi again, I moved my XML config to it's own seperate feature and set the condition of the Feature to not reinstall in the upgrade scenario as suggested.
This seems to have worked!
Thanks for the help and suugestions 🙂
This seems to have worked!
Thanks for the help and suugestions 🙂