/build/static/layout/Breadcrumb_cap_w.png

UNINSTALLING OLDER VERSION ADOBE ACROBAT DURING INSTALLATION NEWER VERSION.

How do i uninstall old version of acrobat during installation of newer version?

Giz

0 Comments   [ + ] Show comments

Answers (8)

Posted by: switzerland 18 years ago
Orange Belt
0
Here is a little script we wrote to uninstall the English versions. Save a remove.js and then run with
"cscript remove.js" We used that sucessfull for a bigger customer to migrate Adobe products.

Thanks
M. Butsch
http://www.ntfaq.ch

WScript.Echo("Remove old version of Acrobat 2.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_7_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)
{


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;
}

// Check if Adobe 7 Reader is here --------------------------------------------
try
{
var objFSO = WScript.CreateObject("Scripting.FileSystemObject");
var objFile = objFSO.GetFile("C:\\Program Files\\Adobe\\Acrobat 7.0\\Reader\\AcroRd32.exe\\");
}
catch(e)
{
WScript.Echo("- Acrobat 7 Reader => NOT installed");

adobe_7_reader_0 = 0;
}



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


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


// If Adobe 6.0.1 or 6.X Reader remove all languages have same ID (checked Multi, german and france)


if (adobe_7_reader_0 == 1)
{
try
{
WScript.Echo("Uninstalling Acrobat 6.0.1 Reader");
objShell.Run("MsiExec.exe /x{AC76BA86-7AD7-1033-7B44-A70000000000} REBOOT=ReallySuppress /qb-")

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

if (adobe_6_reader_0 == 1)
{
try
{
WScript.Echo("Uninstalling Acrobat 6.0.1 Reader");
objShell.Run("MsiExec.exe /x{AC76BA86-7AD7-1033-7B44-A00000000001} REBOOT=ReallySuppress /qb-")

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



if (adobe_6_reader_0 == 1)
{
try
{
WScript.Echo("Uninstalling Acrobat 6.0.2 Reader");
objShell.Run("MsiExec.exe /X{AC76BA86-0000-0000-0000-6028747ADE01} REBOOT=ReallySuppress /qb-")

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




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


// 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\"",0, true)

}
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\"",0, true)

}
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\"",0, true)

}

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\\",0, true)

}

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")

}



function checkregback(checkbackvalue)
{
// "Invalid root in registry key"
}

conn.close()

// Get UNC working directory ----------------------------------------------------------------------------------------------------------
function getWorkingDirectory()
{
var fso = new ActiveXObject("Scripting.FileSystemObject")
ScriptDir = fso.GetParentFolderName(WScript.ScriptFullName)
return ScriptDir
}
Posted by: marvinc 18 years ago
Orange Belt
0
Would you or anyone mind helping me understand how to modify and use this in my environment? I need to remove old versions of 5 & 6 and install the latest version, 7.05, with the yahoo options suppressed and reg keys included. I'm comfortable packaging but suck at creating scripts so ANY assistance with this would be greatly appreciated.
Posted by: schieb 18 years ago
Purple Belt
0
As per the video here in the video section, I used the Adobe Tuner after extracting the 7.0.5 msi files. You can look under packages to get the specific keys to turn off for yahoo or whatever else. I ran this and it uninstalled previous versions before it started. I believe it was working with 7.x and 6.x so far.
Posted by: gizmolala 18 years ago
Third Degree Blue Belt
0
COPY THE UNINSTALL STRING FOR YOUR ADOBE VERSION IN HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENT VERSION\UNINSTALL\xxxxxxx and PASTE IT IN YOUR DEPLOYING SCRIPT.

FOR THE YAHOO TOOL BAR.

This key will make it go away (so the user doesn't see it).

[HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\7.0\AVGeneral\cToolbars\cWebSearchView\cPositions\cInternal]
"bHidden"=dword:00000001

Giz
Posted by: marvinc 18 years ago
Orange Belt
0
I've followed the video and have a question on getting the command line to work for my SMS package. This would be my command line:

msiexec /i "Adobe Reader 7.0.5.msi" TRANSFORMS="\\mysrv1\apps\itstuff\adobe\reader\705_full\msi\adobe reader 7.0.5.mst" REBOOT=ReallySuppress /qn

I'm trying to create this package using SMS and seem to have run out of space in the Command line field. I only want to deploy this using SMS and wonder if there's a way to include all of this in the command line?

Any responses are appreciated.
Posted by: prowling1 17 years ago
Senior Yellow Belt
0
We currently have SMS 2003 but it is not live yet. So I want to deploy a script or something when Reader 7.08 is deployed to uninstall any version. I have 6.0 uninstall using the MST but 5.0 and pre do not use the same installer version and according to Adobe it wont uninstall 5.0.

So my question, Can I deploy 7.08 reader with a command or script to uninstall 3.01-5.0 before installing 7.08 via AD?

-Dwayne
Posted by: prowling1 17 years ago
Senior Yellow Belt
0
Here is my solution that maybe someone can help me with. I took the JS script above and modified it abit. Really all I did so far is get rid of all the echo commands. So where I am running into a problem is I dont want it to search for reader 6.0 because the MST will uninstall it. All I want it to do is check for reader 3-5 and remove them if installed. Then after that runs or an IF statement to run.

msiexec /i "Adobe Reader 7.0.5.msi" TRANSFORMS="\\mysrv1\apps\itstuff\adobe\reader\705_full\msi\adobe reader 7.0.5.mst" REBOOT=ReallySuppress /qn

I am not a scripter and am just learning. I can usually modify someone's script but I have never looked at a JS script. My issue is that if it sees 6.0 it does nothing. Here is the modified script so far. I have a good friend that is going to look at this for me. If we get a solution I will post the updated script.

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_7_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");

try
{
var key1 = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Adobe\\Acrobat Reader\\6.0\\InstallPath\\";
test = objShell.RegRead(key1);
found6version = 1;

}
catch(e)
{

}

// 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;

}
catch(e)
{

}


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

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

}
catch(e)
{
windows2000 = 1;
}


if (windows2000 == 1)
{



// 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);

}
catch(e)
{

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\\");

}
catch(e)
{

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\\");

}
catch(e)
{

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\\");

}
catch(e)
{

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);

}
catch(e)
{

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)
{

adobe_6_reader_0 = 0;
}

// Check if Adobe 7 Reader is here --------------------------------------------
try
{
var objFSO = WScript.CreateObject("Scripting.FileSystemObject");
var objFile = objFSO.GetFile("C:\\Program Files\\Adobe\\Acrobat 7.0\\Reader\\AcroRd32.exe\\");
}
catch(e)
{

adobe_7_reader_0 = 0;
}

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


// If Adobe 6.0.1 or 6.X Reader remove all languages have same ID (checked Multi, german and france)


if (adobe_7_reader_0 == 1)
{
try
{
objShell.Run("MsiExec.exe /x{AC76BA86-7AD7-1033-7B44-A70000000000} REBOOT=ReallySuppress /qb-")

}
catch(e)
{
}
}

if (adobe_6_reader_0 == 1)
{
try
{
objShell.Run("MsiExec.exe /x{AC76BA86-7AD7-1033-7B44-A00000000001} REBOOT=ReallySuppress /qb-")

}
catch(e)
{
}
}



if (adobe_6_reader_0 == 1)
{
try
{
objShell.Run("MsiExec.exe /X{AC76BA86-0000-0000-0000-6028747ADE01} REBOOT=ReallySuppress /qb-")

}
catch(e)
{
}
}

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


// If Adobe 4 Reader remove
if ((adobe_4_reader_0 == 1)||(adobe_4_reader_2 == 1))
{
try
{
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\"",0, true)

}
catch(e)
{
}
}
//----------------------------------------------------------------------------------------------------------------

// If Adobe 5 Distiller remove
if (adobe_5_dist_0 == 1)
{
try
{
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\"",0, true)

}
catch(e)
{
}
}
//----------------------------------------------------------------------------------------------------------------

// If Adobe 5 Reader remove
if (adobe_5_reader_0 == 1)
{
try
{
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\"",0, true)

}

catch(e)
{
}
}
//----------------------------------------------------------------------------------------------------------------

// If Adobe 3.0.1 Reader remove
if (adobe_301_reader_0 == 1)
{
try
{
objShell.Run("C:\\WINNT\\uninst.exe -a -f\"C:\\Acrobat3\\Reader\\DeIsL1.isu\\",0, true)

}

catch(e)
{
}
}
//----------------------------------------------------------------------------------------------------------------


} // End if Windows 2000
else
{
}



function checkregback(checkbackvalue)
{
// "Invalid root in registry key"
}

// Get UNC working directory ----------------------------------------------------------------------------------------------------------
function getWorkingDirectory()
{
var fso = new ActiveXObject("Scripting.FileSystemObject")
ScriptDir = fso.GetParentFolderName(WScript.ScriptFullName)
return ScriptDir
Posted by: switzerland 17 years ago
Orange Belt
0
If anybody wants the Script which does this (Deployment Software independent) please contact www.ntfaq.ch. I have poasted the script above and you should be able to use and modify that version.
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