[wpkg-users] Adobe Reader 7.0.5
Allan Stones
axs at optiver.com.au
Mon Nov 14 02:16:17 CET 2005
On the website you have Adobe Reader 7.0.5 package file but it errors
out sometimes when you remove it. I have made a WSH script to take care
of the removal for us. It passes everytime. Ive yet to have to fail.
I called the file 'remove.js' and added it as the remove command for the
package
---------------------------------------------
//WScript.Echo("Uninstaller for Adobe Reader 7.0.X");
//WScript.Echo("----------------------------------");
//WScript.Echo("");
var adobe_7_reader_0 = 1;
var adobe_error = 1;
var objShell = WScript.CreateObject("WScript.Shell");
//WScript.Echo("...Checking registry for Adobe Reader 7.0.X")
try
{
var key1 = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Adobe\\Acrobat
Reader\\7.0\\InstallPath\\";
test = objShell.RegRead(key1);
// WScript.Echo("...Acrobat Reader 7.0.X found");
}
catch(e)
{
// WScript.Echo("...Adobe Reader 7.0.X NOT found");
adobe_7_reader_0 = 0;
}
if (adobe_7_reader_0 == 1)
{
try
{
// WScript.Echo("...Uninstalling Adobe Reader 7.0.X");
objShell.Run("MsiExec.exe /qb
/x{AC76BA86-7AD7-1033-7B44-A70500000002} REBOOT=ReallySupress",1,true)
}
catch(e)
{
// WScript.Echo("...Error uninstalling Adobe Reader 7.0.X\n");
// WScript.Echo(e.description+"\n")
// WScript.Echo(e.message+"\n")
// WScript.Echo(e.number+"\n")
}
}
//WScript.Echo("\nComplete.");
-----------------------------------------------
I hope this helps. there is probably a better way and more simple but it
works and that does it for me
--
Nam: Allan Stones
Com: Optiver Australia PTY LTD
Pos: Facilities Manager & Systems Administrator
Add: Suite A, 1-3 Brodie Street, Paddington, NSW, 2021, Australia
Bil: P.O. Box 271, Paddington, NSW, 2021, Australia
ABN: 54 077 364 366
Phn: +61(2)9333 4078
Fax: +61(2)9333 4044
Eml: axs at optiver.com.au
Web: http://www.optiver.com.au
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
More information about the wpkg-users
mailing list