INI is removed during upgrade
I've got a MSI that is upgrading a previous version of the software which is also a MSI. I ran upgrade sync on the new MSI and added the old MSI upgrade code to the new MSI. When the new MSI is ran it installs the different files and then removes the old version. The problem I'm having is the uninstall of the old version is removing the INI files from the new verison. Has anyone ran into this and how do I fix it? I've got to have this done today and this is the only thing holding up the package.
I'm using Wise Package Studio 6.01.
I'm using Wise Package Studio 6.01.
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
sikkert
18 years ago
First thing that comes to my mind is that the component GUID of the components that contains the old and new ini-file is not the same. This is a clear symptom here.
When doing an upgrade like this, you have to be very careful about following the component rules.
If this is not an option here, you could move the SA "RemoveExistingProducts", and put it between the "InstallValidate" and "InstallInitialize" SA's. This way, the old application will be removed before the new one is installed. But this is not very efficient however, and thus not recommended.
When doing an upgrade like this, you have to be very careful about following the component rules.
If this is not an option here, you could move the SA "RemoveExistingProducts", and put it between the "InstallValidate" and "InstallInitialize" SA's. This way, the old application will be removed before the new one is installed. But this is not very efficient however, and thus not recommended.
Posted by:
CSummers
18 years ago
Posted by:
sikkert
18 years ago
Posted by:
CSummers
18 years ago
Tried giving the component the same GUID and had the problem. To see if this problem is reproducable I just created 2 blank MSIs, created a INI file in both, and put the upgrade code of MSI1 into MSI2. When I install MSI2 it removes the INI and I'm left with nothing. Is this a bug in Wise or Windows Installer or am I not doing something right?
Can anyone see if they can reproduce this?
Can anyone see if they can reproduce this?
Posted by:
sikkert
18 years ago
Posted by:
jonasm
18 years ago
Hi!
I had the same problem with one of my applications.
I first maked the original package. Then I made upgrade #1 without problem.
But when I did the second upgrade the INI-file got removed on upgrade.
As far as I remeber, I didn't do any changes in the INI-file any of the times.
In my case I only needed to save one of the values, so I solved it by making a System Search to save the value in a Propery and then I used the property to set the value in the new file.
It would ofcouse be better if the INI-file was saved instead. =)
/Jonas
I had the same problem with one of my applications.
I first maked the original package. Then I made upgrade #1 without problem.
But when I did the second upgrade the INI-file got removed on upgrade.
As far as I remeber, I didn't do any changes in the INI-file any of the times.
In my case I only needed to save one of the values, so I solved it by making a System Search to save the value in a Propery and then I used the property to set the value in the new file.
It would ofcouse be better if the INI-file was saved instead. =)
/Jonas
Posted by:
sikkert
18 years ago
Tried giving the component the same GUID and had the problem. To see if this problem is reproducable I just created 2 blank MSIs, created a INI file in both, and put the upgrade code of MSI1 into MSI2. When I install MSI2 it removes the INI and I'm left with nothing. Is this a bug in Wise or Windows Installer or am I not doing something right?
Can anyone see if they can reproduce this?
I just tried this now. Made 1 MSI whit an INI-file. Made a copy of this msi-file, and gave it a new name. Changed the ProductVersion and ProductCode properties since it is a major upgrade, changed PackageCode, made a change in the ini-file to verify it really being updated, and populated the Upgrade table, to remove the previous version.
Installed the first version and verified OK. Upgraded with the second file, and everything is OK, the INI-file is updated.
It seems to me there is something wrong in your package. Files being removed on an upgrade like this, is a typical example of wrong GUIDs on components. Have you tried the way I described above, making 1 package, then copying that and changing the mentioned properties?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.