|
-
Mar 28th, 2017, 10:25 AM
#1
Thread Starter
Addicted Member
Uninstalling previous version using Package and Deployment Wizard - VB6
Anyone know of a way to force a previous installation to be uninstalled when installing a VB6 program using Package and Deployment Wizard?
-
Mar 28th, 2017, 12:09 PM
#2
Hyperactive Member
Re: Uninstalling previous version using Package and Deployment Wizard - VB6
I probably don't know what I am talking about but I'll take a guess. You need to install a separate application that does the uninstalling then when you run your P&D it first looks for that application and executes it then it installs the new program
-
Mar 28th, 2017, 06:00 PM
#3
Re: Uninstalling previous version using Package and Deployment Wizard - VB6
Found a page that included this excerpt from an old MS KB article that seems to be gone now:
===========
INSTALL
===========
Silent Install Usage
The following command-line syntax allows for a silent install:
c:\mydir\setup.exe -s c:\mydir\myapp.log
This command line assumes that "c:\mydir" is the folder that contains Setup.exe. The -s switch allows for the silent install, and "myapp.log" is the .log file that is created to track all modifications that the installation makes. Note that the log file is required with the -s switch.
===========
UNINSTALL
===========
Silent Uninstall Usage
The following command-line syntax allows for a silent uninstall:
St5unst -n "C:\Program Files\MyApp\St5unst.log" -f -q
St6unst -n "C:\Program Files\MyApp\St6unst.log" -f -q
NOTE: You must use the quotation marks when there is a space in the path or file name.
These command lines use the version-specific uninstall executable files with the -n switch, which allows the uninstall executable to run from a command line. The St5unst.log and the St6unst.log files contain all pertinent information about the installation of the application. You must use the -f and the -q switches in conjunction to force an SMS uninstall, which is silent by default
-
Mar 28th, 2017, 08:12 PM
#4
Re: Uninstalling previous version using Package and Deployment Wizard - VB6
The source code for setup1.exe is included with VB6 so it is possible to modify that to check for existing versions of your program and uninstall as needed. Been a long time since I looked at it so can't say exactly where or what would need to be modified to get the desired outcome but definitely should be doable.
-
Mar 29th, 2017, 01:31 AM
#5
Re: Uninstalling previous version using Package and Deployment Wizard - VB6
That might be too late. The Setup.exe bootstrapper unpacks several files and probably overwrites files you need in order to uninstall.
-
Mar 29th, 2017, 01:48 AM
#6
Hyperactive Member
Re: Uninstalling previous version using Package and Deployment Wizard - VB6
the P&D will overwrite the old version.
In other words, if my old app was called Meopilite, and my new version of Meopilite is called Meopilite, the the P&D will overwrite Meopilite.
-
Mar 29th, 2017, 01:52 AM
#7
Re: Uninstalling previous version using Package and Deployment Wizard - VB6
These sorts of problems can be managed by using Windows Installer instead of legacy scripted setup technologies. Versioning isn't trivial even then but at least the plumbing required is built in.
-
Mar 29th, 2017, 06:29 AM
#8
Hyperactive Member
Re: Uninstalling previous version using Package and Deployment Wizard - VB6
3rd party installers are OK, but make sure you test them out...... i've ran across issues.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|