PDA

View Full Version : How does repair (maintenance mode) work?



gronchi
09-18-2003, 05:05 AM
Hi to all,
first the problem.

I often deliver beta-test packages to our Test team (not real customer, they are colleagues!).
These packages are frequently modified/updated since they are not final products.

Test people lament each time they have to reinstall a setup they have to first uninstall the old one (same project --> automatically enter the maintenance mode).

I thought to say them to use Repair mode instead of Remove+Install when I give them the new packages (same project).
So I studied how Maintenance Repair work.
I discovered that:
(-) if I add/modified some source file and then rebuild the package the Repair will add/replace those file in the installed tree.
(-) if I delete some source file and then rebuild the package the Repair will NOT delete them in the installed tree.
(-) if I add a new group (linking it to an old component) and then rebuild the package the Repair will add the new group's files in the installed tree.
(-) if I delete a group and then rebuild the package the Repair will NOT delete the deleted group's files in the installed tree.
(-) if I add/delete a component and then rebuild the package the Repair will NOT add/delete it in the installed tree.

That is, Reapair seems to me to reinstall all new package files\programs ONLY if they "belong" to old components and it NEVER delete from the installed tree files\programs no more packaged.
It's right?

If this is true, Repair doesn't resolve my problem since remove files/groups from project is a frequently operation during test time.

Is there an alternative way to "update" a setup without perform a Remove+Install and without turn each time to a new project?


Thanks to all,
ciao Giuseppe

niranbhimaiah
09-18-2003, 07:53 AM
Hi,
The overwrite mode will reinistall only the previousely installed components. This will install additional file included in a component, but will not delete a file which is not included in your new build. You can delete the file by using DeleteFile function. Another problem with overwrite is that any additional components you have added in your new build will not be installed.

Another alternative is you can try the maintenance/update setup. A sample is available at the following link:

http://support.installshield.com/kb/view.asp?articleid=q104431

Regards
Niran Bhimaiah

tawright915
12-19-2003, 01:15 PM
What if I do not want the repair mode to come up at all. Like say we installed and application of ours with install shield. Then a year later we installed an update to our software but we are not using install shield any more. How can we stop the repair mode from asking for the install cd, when we overwrite our app with an update?

Thanks
T