Goal: To give the user the option to have the current setup program "update" an older version of the application created by a previous Installshield script (also 6.31). by running the old install program in "uninstall mode" to remove it, and to continue installation AFTER the old has been removed.
Steps to achieve goal:
-I check to see if there is an old version of the file
even installed and if so:
-Check the version number. If it is older than
the one installing, I then show a sprintfbox
giving them the option to upgrade. If they select
"yes" I then call the DoInstall function to call
the other setup currently on the system in
"uninstall mode". Any other response proceeds
with setup normally.
-If there is no old version of the file, I proceed with
setup normally
Problems encountered:
-I'm either encountering a message that says "access is
denied" from Windows (derived from formatting the negative
number using FormatMessage), or running (one setup, not sure
whether new or old!) in Maintenance mode.
-When the one setup does run, the "new" setup does not
continue to run as it should after finishing the DoInstall
command, which defeats the purpose of giving the user the
option to use the new setup to uninstall the old version
All I want to do is achieve the goal stated above, so if I'm doing this incorrectly, feel free to let me know-I'm open to doing things a different way. The only thing I'd like to do is achieve the goal using the script only.
Any help would be appreciated.
Thanks!