Suggestion for Prerequisites

Got a problem you cannot solve? Try here.
MLS
Posts: 56
Joined: Fri Jan 26, 2007 4:57 am

Suggestion for Prerequisites

Postby MLS » Wed Jul 11, 2007 10:05 am

When you add your own prerequisites into the runtime system I think you should have an option in the rtm file for a de installation script. But also have the installaware runtime list have an option to not de install so you can choose depending on your requirements for the setup

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Wed Jul 11, 2007 4:48 pm

Prerequisites are supposed to be installed and used on the target machine for ever on. If you think that it must be removed for some reason, you can do it with the (Un)Install MSI plugin and remove it. This is the main reason, why you don't need a uninstall script.
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation

MLS
Posts: 56
Joined: Fri Jan 26, 2007 4:57 am

Postby MLS » Thu Jul 12, 2007 2:23 am

Sorry I think you misunderstood.

I understand that you can cause the msi to deinstall in the uninstall section of your own installer. But if you have to do some complex things to deinstall a particular prerequisite then you don't have to keep duplicating the code from setup to setup.

One example is deinstalling your sqlserver instance when your application is deinstalled for example.

Another is a webmedia block that is unique to your application but is dependant on several setups I understand you would need to monitor how many installs required the package but the uninstall script would handle this and remove after last app is deinstalled. If you hand to duplicate code between setups for the deinstall you could forget to check somthing with one application.

I just think having the option to add a deinstall script would help to make setups easier to produce when you need many installers that share alot of resources

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Thu Jul 12, 2007 4:25 am

You can create a generic uninstall script and just include that script to every setup you make.
Panagiotis Kefalidis

Software Design Team Lead

\"In order to succeed, your desire for success should be greater than your fear of failure\"

InstallAware Software Corporation

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Jul 12, 2007 7:04 am

Also don't forget that while you can track usaga counts of a prereq within your own apps, you cannot really do that for other apps that might nonetheless be using the same prereqs.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

MLS
Posts: 56
Joined: Fri Jan 26, 2007 4:57 am

Postby MLS » Thu Jul 12, 2007 7:16 am

On the usage counts I was mearly talking about our own internal prerequisites not ones shipped by other compays. And yes if you did deinstall based on your apps that would cause chaos :)

MLS
Posts: 56
Joined: Fri Jan 26, 2007 4:57 am

Postby MLS » Thu Jul 12, 2007 7:23 am

It has just occured to me that you could put this functionality into a prerequsite that has to deinstall with your app.

You can do it in the setup part and just check the REMOVE variable and remove instead of install. You would need checks of course in place if you ship multiple apps but this could be part of the actuall msi for the prerequisites

I presume you can include a script multiple times? In the normal section at the beggingin of install and also in the uninstall section

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Fri Jul 13, 2007 4:32 am

You can included it as many times as you want, at any part of the installation. It's like having a bunch of commands, but in a single file.
Panagiotis Kefalidis

Software Design Team Lead

\"In order to succeed, your desire for success should be greater than your fear of failure\"

InstallAware Software Corporation


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 143 guests