/build/static/layout/Breadcrumb_cap_w.png

Can't uninstall apps after .NET 2.0 installation

Sorry if this is a stupid question, but I'm pretty new to all this. Anyway...

I'm testing the install of an application created in VS2005 to run on .NET 2.0. This is the new version of an application which was previously created in VS2003 to run on .NET 1.1 and installed on a machine running Windows XP Pro.

The set-up project for the new version of the application has .NET 2.0 and Windows Installer 3.1 as Prerequisites.

When I attempt to install the new .NET 2.0 version of the application on the same Windows XP Pro machine the set-up routine correctly prompts the user to install .NET 2.0, then it halts with a slightly ugly error to the effect that the old version of the application needs to be uninstalled first. This is not ideal but (as the RemovePreviousVerions property in VS2005 seems a little unpredictable) we can live with it so... so far so good.

The problem comes when I then try to uninstall the old version of the application using Add or Remove Programs; I get an error along the lines of "Incorrect version of Windows Installer installed. Unable to uninstall." (I'll confirm the exact wording of the error later, along with confirmation of which version of Windows Installer it thinks is installed).

I'm guessing that what has happened here is that the Prerequisites have forced Windows Installer 3.1 to be installed (at the same time as .NET 2.0) but that the old version of the application somehow needs an earlier version of Windows Installer to remove it. Does this sound likely? Presumably, flagging both Windows Installer 2.0 AND 3.1 as Prerequisites is not desirable and might prevent the Setup project compiling at all?

All suggestions appreciated.

0 Comments   [ + ] Show comments

Answers (11)

Posted by: blubber boy 17 years ago
Senior Yellow Belt
0
The full message is as follows:

There is a problem with this windows installation package. A script required for this install to complete could not be run. Contact your support personnel or package vendor.

So I've now been able to search of this and it seems to be something to do with Windows Scripting needing to be re-installed.
Posted by: blubber boy 17 years ago
Senior Yellow Belt
0
Oh, and the version of Windows Installer it's running is 3.01.4000.1823.
Posted by: AngelD 17 years ago
Red Belt
0
Do you get the message from an error or from a condition from the LaunchCondition table?
Posted by: blubber boy 17 years ago
Senior Yellow Belt
0
I get the error when running the 'uninstall'. When I reply OK the uninstall reverses out and then I get a Fatal error occurred during installation error.

Thanks
Posted by: AngelD 17 years ago
Red Belt
0
Look in the old MSI and see if it's trying to run a vbscript/jscript custom action on uninstall, that should be a conditioned custom action with REMOVE~="ALL"
Can you run for example run a regular vbscript from the computer you're trying to uninstall the MSI from?

Do a verbose log during uninstall and see what exactly it is failing on.
Posted by: blubber boy 17 years ago
Senior Yellow Belt
0
I can't answer all your questions straight away because the install is being carried out a remote machine. However, I do have a copy of the verbose install log. It's too big to post on here but I think the offending part is:

MSI (s) (94:24) [23:18:04:359]: Note: 1: 1402 2: UNKNOWN\Installer\Assemblies\C:|inetpub|wwwroot|EquibookLite|bin|EquibookLite.dll 3: 2
MSI (s) (94:24) [23:18:04:390]: Note: 1: 1402 2: UNKNOWN\Installer\Assemblies\C:|inetpub|wwwroot|EquibookLite|bin|EquibookLite.dll 3: 2
MSI (s) (94:24) [23:18:04:421]: Executing op: ActionStart(Name=_0A3435DB_E9D6_4F37_8429_3F850DE127DB,,)
MSI (s) (94:24) [23:18:04:453]: Executing op: CustomActionSchedule(Action=_0A3435DB_E9D6_4F37_8429_3F850DE127DB,ActionType=1046,Source=C:\inetpub\wwwroot\EquibookLite\vbscripts\DeleteDesktopIcon.vbs,,)
MSI (s) (94:24) [23:18:04:484]: Creating MSIHANDLE (23) of type 790536 for thread 548
MSI (s) (94:BC) [23:18:04:500]: Creating MSIHANDLE (24) of type 0 for thread 2748
MSI (s) (94:BC) [23:18:04:906]: Note: 1: 2262 2: Error 3: -2147287038
MSI (c) (6C:B4) [23:18:05:000]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action _0A3435DB_E9D6_4F37_8429_3F850DE127DB script error -2146828235, Microsoft VBScript runtime error: File not found Line 4, Column 1,
MSI (s) (94:BC) [23:18:07:515]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (94:BC) [23:18:07:531]: Product: Equibook Lite -- Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action _0A3435DB_E9D6_4F37_8429_3F850DE127DB script error -2146828235, Microsoft VBScript runtime error: File not found Line 4, Column 1,

MSI (s) (94:BC) [23:18:07:562]: Closing MSIHANDLE (24) of type 0 for thread 2748
MSI (s) (94:BC) [23:18:07:593]: Closing MSIHANDLE (23) of type 790536 for thread 548
Action ended 23:18:07: InstallFinalize. Return value 3.

Hope this helps. Thanks.
Posted by: blubber boy 17 years ago
Senior Yellow Belt
0
The VB script won't run independently. It gives the error:

Script: C:\Visual Studio 2005\Projects\Equibook Lite\Equibook Lite\vbscripts\DeleteDesktopIcon.vbs
Line: 4
Char: 1
Error: File not found
Code: 800A0035
Source: Microsoft VBScript runtime error

Could it be as simple as the fact that the user has deleted a desktop icon which this piece of script is trying to remove?!!
Posted by: blubber boy 17 years ago
Senior Yellow Belt
0
The VB script won't run independently. It gives the error:

Script: C:\Visual Studio 2005\Projects\Equibook Lite\Equibook Lite\vbscripts\DeleteDesktopIcon.vbs
Line: 4
Char: 1
Error: File not found
Code: 800A0035
Source: Microsoft VBScript runtime error

Could it be as simple as the fact that the user has deleted a desktop icon which this piece of script is trying to remove?!!

The contents of DeleteDesktopIcon.vbs are:

Set WshShell = CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
strDesktop = WshShell.SpecialFolders("Desktop")
FSO.DeleteFile strDesktop & "\Equibook Lite.lnk"
FSO.DeleteFile strDesktop & "\CoralTree Web Site.url"
Posted by: AngelD 17 years ago
Red Belt
0
If any of the desktop shortcuts doesn't exist the DeleteFile method will give you an error and that may be why it's failing.
Add the On Error Resume Next line at the top of the script which will pass through any error from the DeleteFile method or any other code.
Posted by: blubber boy 17 years ago
Senior Yellow Belt
0
Many thanks. I've added that line and it runs through OK.

Who would have thought it would be something so simple?

Martin
Posted by: AngelD 17 years ago
Red Belt
0
Well, now you know ;)

Glad that it sorted it out for you.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ