I've gotten Adobe Reader 6.0.1 followed by 6.0.2 going fine. Now I need to find out how to remove Adobe Reader 5x. I am using Packaging Studio 5.1. Although I am very new to this.

Can this be done with a custom action. Then again, how do you do a custom action?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Hi

Here is a script for revoming common old version of Acrobat. Save it as remove.js and then from DOS or you app deploy software run "cscript remove.js" and all OLD version of Acrobat will be removed automaticly. Or just pick the uninstall strings and use them in your own batch.

You can find most uninstall strings under:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Just look for the UNINSTALL KEY which contains info like:

MsiExec.exe /X{377FAF5A-E133-49E4-A5D2-3DC0484326DF}

You can remove most of apps that where installed with MSI technology this way.

************************************************************************

// (c) M. Butsch www.ntfaq.ch

WScript.Echo("Remove old version of Acrobat 3.X - 5.X");
WScript.Echo("---------------------------------------");
WScript.Echo("");

var adobe_301_reader_0 = 1;
var adobe_4_reader_0 = 1;
var adobe_4_reader_1 = 1;
var adobe_4_reader_2 = 1;
var adobe_5_dist_0 = 1;
var adobe_5_reader_0 = 1;
var adobe_error = 1;
var windows2000 = 1;
var found6version = 0;

// See if adobe Reader 6.0.X is installed already. If yes end because then all old software is already removed
// by the Adobe 6.0.1 installation


var objShell = WScript.CreateObject("WScript.Shell");
WScript.Echo("Check if actual 6.0.X versions are installed on the system")

try
{
var key1 = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Adobe\\Acrobat Reader\\6.0\\InstallPath\\";
test = objShell.RegRead(key1);
found6version = 1;
WScript.Echo("- Acrobat 6.0.X Reader => installed");

}
catch(e)
{
WScript.Echo("- Acrobat 6.0.1 Reader => NOT installed, good.");

}

// Check if Adobe Reader 6.0.2 Update is there

try
{
var key1 = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Adobe\\Acrobat Reader\\6.0\\602Update\\";
test = objShell.RegRead(key1);
found6version = 1;
WScript.Echo("- Acrobat 6.0.2 Update => installed");

}
catch(e)
{
WScript.Echo("- Acrobat 6.0.2 Update => NOT installed, good.");

}


// ------------------------------------------------------------------------------------------------------------

try
{
var objFSO = WScript.CreateObject("Scripting.FileSystemObject");
var objFile = objFSO.GetFile("C:\\winnt\\system32\\srvmgr.exe\\");

}
catch(e)
{
WScript.Echo("- This is NOT a Windows 2000 Server or IT machine\n\n");
windows2000 = 1;
}


if ((windows2000 == 1) && (found6version != 1))
{


WScript.Echo("Check which version of Acrobat are installed:");

// Check if Adobe 3.0.1 Reader is here #1 --------------------------------------
try
{
var key1 = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe Acrobat Reader 3.01\\";
test = objShell.RegRead(key1);
WScript.Echo("- Acrobat 3.0.1 Reader => installed");
}
catch(e)
{
WScript.Echo("- Acrobat 3.0.1 Reader => NOT installed");

adobe_301_reader_0 = 0;
}


// Check if Adobe 4(x) Reader is here -------------------------------------------
try
{
var objFSO = WScript.CreateObject("Scripting.FileSystemObject");
var objFile = objFSO.GetFile("C:\\Program Files\\Adobe\\Acrobat 4.0\\Reader\\acrord32.exe\\");
WScript.Echo("- Acrobat 4.x Reader => installed");

}
catch(e)
{
WScript.Echo("- Acrobat 4.x Reader => NOT installed");

adobe_4_reader_0 = 0;
}


// Check if Adobe 4(2) Reader is here -------------------------------------------
try
{
var objFSO = WScript.CreateObject("Scripting.FileSystemObject");
var objFile = objFSO.GetFile("C:\\Program Files\\Adobe\\Acrobat 4.0\\Acrobat\\Acrobat.exe\\");
WScript.Echo("- Acrobat 4.x Writer => installed");

}
catch(e)
{
WScript.Echo("- Acrobat 4.x Writer => NOT installed");

adobe_4_reader_2 = 0;
}


// Check if Adobe 5 Distiller is here #1 --------------------------------------
try
{
var objFSO = WScript.CreateObject("Scripting.FileSystemObject");
var objFile = objFSO.GetFile("C:\\Program Files\\Adobe\\Acrobat 5.0\\Distillr\\Acrodist.exe\\");
WScript.Echo("- Acrobat 5 Distiller => installed");

}
catch(e)
{
WScript.Echo("- Acrobat 5 Distiller => NOT installed");

adobe_5_dist_0 = 0;
}

// Check if Adobe 5 Reader is here -------------------------------------------
try
{
var key4 = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Adobe\\Acrobat Reader\\5.0\\InstallPath\\";
test = objShell.RegRead(key4);
WScript.Echo("- Acrobat 5 Reader => installed");

}
catch(e)
{
WScript.Echo("- Acrobat 5 Reader => NOT installed");

adobe_5_reader_0 = 0;
}

// Check if Adobe 6 Reader is here --------------------------------------------
try
{
var key3 = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Adobe\\Acrobat Reader\\6.0\\Language\\current\\";
test = objShell.RegRead(key3);
var objFSO = WScript.CreateObject("Scripting.FileSystemObject");
var objFile = objFSO.GetFile("C:\\Program Files\\Adobe\\Acrobat 6.0\\Reader\\AcroRd32.exe\\");
}
catch(e)
{
WScript.Echo("- Acrobat 6 Reader => NOT installed");

adobe_6_reader_0 = 0;
}

WScript.Echo("------------------------------------------------------------------------------")




//----------------------------------------------------------------------------------------------------------------
// Uninstall all the old versions

// If Adobe 4 Reader remove
if ((adobe_4_reader_0 == 1)||(adobe_4_reader_2 == 1))
{
try
{
WScript.Echo("Uninstalling Acrobat 4.X Reader");
objShell.Run("C:\\WINNT\\ISUNINST.EXE -a -f\"C:\\Program Files\\Common Files\\Adobe\\Acrobat 4.0\\NT\\Uninst.isu\" -c\"C:\\Program Files\\Common Files\\Adobe\\Acrobat 4.0\\NT\\Uninst.dll\"")

}
catch(e)
{
WScript.Echo("Error uninstalling Acrobat 4.X Reader\n");
WScript.Echo(e.description+"\n")
WScript.Echo(e.message+"\n")
WScript.Echo(e.number+"\n")
}
}
//----------------------------------------------------------------------------------------------------------------

// If Adobe 5 Distiller remove
if (adobe_5_dist_0 == 1)
{
try
{
WScript.Echo("Uninstalling Acrobat 5.X Writer");
objShell.Run("C:\\WINNT\\ISUNINST.EXE -a -f\"C:\\Program Files\\Common Files\\Adobe\\Acrobat 5.0\\NT\\Uninst.isu\" -c\"C:\\Program Files\\Common Files\\Adobe\\Acrobat 5.0\\NT\\Uninst.dll\"")

}
catch(e)
{
WScript.Echo("Error uninstalling Acrobat 5.X Writer\n");
WScript.Echo(e.description+"\n")
WScript.Echo(e.message+"\n")
WScript.Echo(e.number+"\n")
}
}
//----------------------------------------------------------------------------------------------------------------

// If Adobe 5 Reader remove
if (adobe_5_reader_0 == 1)
{
try
{
WScript.Echo("Uninstalling Acrobat 5.X Reader");
objShell.Run("C:\\WINNT\\ISUNINST.EXE -a -f\"C:\\Program Files\\Common Files\\Adobe\\Acrobat 5.0\\NT\\Uninst.isu\" -c\"C:\\Program Files\\Common Files\\Adobe\\Acrobat 5.0\\NT\\Uninst.dll\"")

}

catch(e)
{
WScript.Echo("Error uninstalling Acrobat 5.X Reader\n");
WScript.Echo(e.description+"\n")
WScript.Echo(e.message+"\n")
WScript.Echo(e.number+"\n")
}
}
//----------------------------------------------------------------------------------------------------------------

// If Adobe 3.0.1 Reader remove
if (adobe_301_reader_0 == 1)
{
try
{
WScript.Echo("Uninstalling Acrobat 5.X Reader");
objShell.Run("C:\\WINNT\\uninst.exe -a -f\C:\\Acrobat3\\Reader\\DeIsL1.isu\\")

}

catch(e)
{
WScript.Echo("Error uninstalling Acrobat 3.0.1 Reader\n");
WScript.Echo(e.description+"\n")
WScript.Echo(e.message+"\n")
WScript.Echo(e.number+"\n")
}
}
//----------------------------------------------------------------------------------------------------------------


} // End if Windows 2000
else
{
WScript.Echo("\n\nThis is a Windows 2000 Server or Adobe 6.0.X is already installed")

}
Answered 08/24/2004 by: switzerland
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity