0
votes

I'm quite new in the InstallShield stuff, I took this project from a leaving co-worker. However, here's my problem:

I was trying to update a MySQL Server with the setup from 5.7.17 to 5.7.19, which works great most of the times. I got the feature "MySQL", splitted in "MySQL Data" (includes the performance_schema and mysql database), "MySQL Service" (Service batch files) and "MySQL Binaries" (the files).

For the update, I just changed the binaries by the new one and left the rest. All features are selected and my log tells me, that it installs all files which it hasn't installed by now, leaving the existing files untouched. As this is an update, it seems correct to me.

But sometimes, at the end of the setup process, it uninstalls almost anything of my MySQL Feature again; the databases, the batch files and almost any core file which wasn't changed by the setup before. But why is that and how can I stop my setup from do so?

Kind regards

2

2 Answers

1
votes

I think what you're describing is that your file containing the data is not getting updated. Since this type of file cannot be versioned, that's what Windows installer uses to determine whether or not to upgrade the file, you will need to mark the component containing this file to Always Overwrite. Check out the MS docs for the Component table for how to do this with the Attributes field.

-1
votes

You may want to check the conditions on the components in question. Also, check the install sequence to see if it is calling uninstall out of sequence.