Hello!
Checks for Application Runtimes are also performed when a product is uninstalled. It seems to me that this can lead to absurd situations.
For example, I might create a setup project that requires the .NET Framework. A potential customer does not have .NET Framework installed on his computer yet, so it is installed before my own setup logic starts. So far, so well. Later, this customer decides that he doesn't like my program, so he wants to uninstall it, along with the .NET Framework. When the customer uses the control panel, it is perfectly valid that he chooses to uninstall .NET Framework first. In that case, my program cannot be _uninstalled_ without _installing_ .NET Framework again. This is really absurd, and I don't want to expose customers to these difficulties.
I think it is possible to develop a custom setup logic and make use e.g. of the MAINTENANCE, NEEDSUPGRADE or REMOVE variables to avoid the situation described above, i.e. to check for Application Runtimes only when installing. On the other hand, I'm new to InstallAware, and I don't want to start with a blank setup. Is it possible to modify the script code generated by a "Default Project" in the desired way?
Disable check for Application Runtimes while uninstalling
-
- Posts: 55
- Joined: Tue Jan 09, 2007 12:20 pm
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Yes, you can take care of this if you want. Just wrap the entire prereqs block around an if...else statement, and test for MAINTENANCE being FALSE, running the block only then.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 55
- Joined: Tue Jan 09, 2007 12:20 pm
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
You get the full sources to the setup script, so you can customize anything and everything 

Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 55
- Joined: Tue Jan 09, 2007 12:20 pm
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
MAINTENANCE is TRUE even if NEEDSUPGRADE is TRUE, you can see in the script after an auto-uninstall that MAINTENANCE is set back to FALSE. So just trying MAINTENANCE works.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: No registered users and 186 guests