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: major upgrades and database changes
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
‎Jan 13, 2010
08:21 AM
major upgrades and database changes
hi,
just a hypothetical situation:
i have an installation installed on a customer pc and i want to perform a major upgrade (because i added e.g. components).
am i right, if i say while performing the major upgrade the uninstallation uses the "old" msi file?
if so, is there a way to change this behaviour to "use the new msi file" ?
mary
just a hypothetical situation:
i have an installation installed on a customer pc and i want to perform a major upgrade (because i added e.g. components).
am i right, if i say while performing the major upgrade the uninstallation uses the "old" msi file?
if so, is there a way to change this behaviour to "use the new msi file" ?
mary
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2010
08:43 AM
Hi,
I'm not totaly sure but yes, when you perform a major upgrade the MSI engine uses the previous MSI file (stored in\Installer\) to perform the uninstallation.
I think it's not possible to use the new MSI file to perform the uninstallation. And I think that isn't the good way.
Why do you want to use the new one?
Regards,
Kevin
I'm not totaly sure but yes, when you perform a major upgrade the MSI engine uses the previous MSI file (stored in
I think it's not possible to use the new MSI file to perform the uninstallation. And I think that isn't the good way.
Why do you want to use the new one?
Regards,
Kevin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2010
08:50 AM
Kevin,
in my actual release i actually have moved one file in a separate component.
now, during major upgrade, this file shouldn't be removed.
i changed in my new added component properties from Permanent "No" to "Yes" and it works - but only after having installed this new release and for newer versions.
For now it's ok, but maybe in the future i want/have to change some behaviour again ...
hope it's clear what i mean ...
mary
in my actual release i actually have moved one file in a separate component.
now, during major upgrade, this file shouldn't be removed.
i changed in my new added component properties from Permanent "No" to "Yes" and it works - but only after having installed this new release and for newer versions.
For now it's ok, but maybe in the future i want/have to change some behaviour again ...
hope it's clear what i mean ...
mary
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2010
09:16 AM
Mary,
You want to keep some files from the previous installation, isn't it?
I have an idea for your problem.
First, you must to detect if the previous version is already installed on the target computer. You can use the "System Search" (I think that the best way is test a registry entrie like HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstallation\).
Create a Custom Action before InstallValidate which copy your files in a temporary folder. Use as condition the property define in the "System Search" (I think you must also declare this property in the "Property Manager").
Create a second Custom Action after InstallFinaliez which copy your files from temporary folder to your installation folder. Use as condition the property define in the "System Search" (I think you must also declare this property in the "Property Manager").
I hope my intention is clear.
Regards,
Kevin
You want to keep some files from the previous installation, isn't it?
I have an idea for your problem.
First, you must to detect if the previous version is already installed on the target computer. You can use the "System Search" (I think that the best way is test a registry entrie like HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstallation\
Create a Custom Action before InstallValidate which copy your files in a temporary folder. Use as condition the property define in the "System Search" (I think you must also declare this property in the "Property Manager").
Create a second Custom Action after InstallFinaliez which copy your files from temporary folder to your installation folder. Use as condition the property define in the "System Search" (I think you must also declare this property in the "Property Manager").
I hope my intention is clear.
Regards,
Kevin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2010
09:26 AM
Oops.
The correct folder is :\Downloaded Installations\
The correct registry entrie : HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\
Kevin_L wrote:
... the previous MSI file (stored in\Installer\ ) to perform the uninstallation.
The correct folder is :
Kevin_L wrote:
... HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstallation\...
The correct registry entrie : HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2010
09:47 AM
Kevin,
thanks for your interesting approach, I'll consider this in my next changes ...
for now, i think i'll go with my changes mentioned above ...
how useful in your eyes is the systemsearch?
Until now i always use custom actions which mostly do the same.
mary
thanks for your interesting approach, I'll consider this in my next changes ...
for now, i think i'll go with my changes mentioned above ...
how useful in your eyes is the systemsearch?
Until now i always use custom actions which mostly do the same.
mary
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 13, 2010
09:59 AM
Mary,
I always use the "System Search" when I need to find an existing file or registry entry.
I also use it for keep registry value when I want to perform a major upgrade 😉
I think it is more easy/quickly to use than a CA.
Regards,
Kevin
I always use the "System Search" when I need to find an existing file or registry entry.
I also use it for keep registry value when I want to perform a major upgrade 😉
I think it is more easy/quickly to use than a CA.
Regards,
Kevin