Page 1 of 1 1
Topic Options
#75752 - 2003-07-08 04:30 PM Acrobat 5 uninstall, acrobat 6 install
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
I'm experimenting with a script to uninstall acrobat 5 and install acrobat 6. Doing a search I stumbled onto http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=14;t=000834

The uninstall works fine. Only one strange thing in the uninstall script posted by Radimus.

(Complete code available at: http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=14;t=000834)
code:
shell "$uninstkey -q"

What does the -q option do (I guess it's an option for a quit uninstall or something)? If I remove it nothing changes in the way the script runs or the way acrobat 5 uninstalls (lots of user input required).

I also added a piece of script (based on Radimus example posted at the top of this page) to install acrobat 6 after acrobat 5 uninstall is done. This part should run unattended but nothing happens. Below I included my code. Anyone any ideas? All files ussed by the script are present in the folder.

code:
[cut]
Shell '\\server\share\msiexec.exe /q ALLUSERS=2 /m MSILA3H3 /i "Adobe Reader 6.0.msi'
[/cut]



[ 08. July 2003, 16:34: Message edited by: R2D2 ]
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#75753 - 2003-07-08 04:33 PM Re: Acrobat 5 uninstall, acrobat 6 install
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
-q is for quiet.
in some utils you may need -s or even something totally different.

not sure that acrobat supports any of those.
_________________________
!

download KiXnet

Top
#75754 - 2003-07-08 04:35 PM Re: Acrobat 5 uninstall, acrobat 6 install
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
it might be -s or -y...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#75755 - 2003-07-08 04:41 PM Re: Acrobat 5 uninstall, acrobat 6 install
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4572
Loc: USA
Could it be that...
code:
 Shell '\\server\share\msiexec.exe /q ALLUSERS=2 /m MSILA3H3 /i "Adobe Reader 6.0.msi' 

is missing the second double quote?
code:
Shell '\\server\share\msiexec.exe /q ALLUSERS=2 /m MSILA3H3 /i "Adobe Reader 6.0.msi"'  

_________________________
(... better days ahead)

Top
#75756 - 2003-07-08 05:42 PM Re: Acrobat 5 uninstall, acrobat 6 install
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Sorry, typo.

Tried it but no luck unfortunately.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#75757 - 2003-07-08 05:44 PM Re: Acrobat 5 uninstall, acrobat 6 install
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
aha...

try
Shell 'msiexec.exe /q ALLUSERS=2 /m MSILA3H3 /i "\\server\share\Adobe Reader 6.0.msi"'
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#75758 - 2003-07-09 10:43 AM Re: Acrobat 5 uninstall, acrobat 6 install
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Houston we have a winner!

Thanx to Radimus.

For anyone who is interested I posted my script below.

The -y option in the uninstall acrobat 5 part makes the uninstall a little bit more silent, not completely silent but one mouse click on OK is not a problem (yet).

code:
;===============================================================================================
;**** Created with KiXscripts Editor | http://KiXscripts.com ****
;**** Last Modified on 09-07-2003 at 10:40:36 ****
;===============================================================================================
;
;Uninstall Acrobat 5.x and install 6.x.
;
;Check acrobat reader version.
$acrobat=ReadValue('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe','')
$acrover=GetFileVersion($acrobat)
If Left($acrover,1) = '5'
$UnInstKey=ReadValue('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Acrobat 5.0','UninstallString')
Goto acr5uninstall
EndIf
If Left($acrover,1) = ''
MessageBox('Acrobat is not installed.' + Chr(13) + Chr(10) + 'Acrobat 6 will be installed now. ', 'Acrobat 6 or up installation', 64)
Goto acr6install
EndIf
If Left($acrover,1) > '5'
MessageBox('Acrobat 6 or up already installed.' + Chr(13) + Chr(10) + 'Installation wil not continue', 'Acrobat 6 or up installation', 64)
Goto end
EndIf
;
;uninstall acrobat 5.x.
:acr5uninstall
?"Uninstalling Acrobat 5.x, please wait....."
$acr5uninst = MessageBox('Acrobat 5 will be uninstalled.' + Chr(13) + Chr(10) + 'Continue?', 'Acrobat 5 uninstallation', 68)
If $acr5uninst = '6'
Shell '$uninstkey -y'
Goto acr6install
Else
Goto end
EndIf
;
:acr6install
;install acrobat 6.
?"Installing Acrobat 6, please wait....."
Shell 'msiexec.exe /q ALLUSERS=2 /m MSILA3H3 /i "\\server\share\Adobe Reader 6.0.msi"'
;Remove unwanted features.
Del 'C:\Documents and Settings\All Users\Start Menu\Programs\PrintMe Internet Printing\Download Driver.lnk'
Del 'C:\Documents and Settings\All Users\Start Menu\Programs\PrintMe Internet Printing\Learn More.lnk'
RD 'C:\Documents and Settings\All Users\Start Menu\Programs\PrintMe Internet Printing'
;Add key to skip EULA notification.
$ak = AddKey('HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\6.0\AdobeViewer')
If $ak <> '0'
MessageBox('Acrobat 6 addkey failed.', 'Acrobat 6 installation', 64)
Else
;Add vallue to EULA key added above.
$wv = WriteValue('HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\6.0\AdobeViewer', 'EULA', '1', 'REG_DWORD')
If $wv <> '0'
MessageBox('Acrobat 6 writevalue failed.', 'Acrobat 6 installation', 16)
EndIf
EndIf
:end

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#75759 - 2003-07-10 12:56 AM Re: Acrobat 5 uninstall, acrobat 6 install
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
try -a for the silent uninstall
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#75760 - 2003-07-09 03:09 PM Re: Acrobat 5 uninstall, acrobat 6 install
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Thanx again Radimus.

-a option = complete silent uninstall [Smile]

Somehow I find it a bit weird -a for silent uninstall. -s or -q makes more sense to me but OK it works.

code:
[cut]
Shell '$uninstkey -a'
[/cut]



[ 09. July 2003, 15:11: Message edited by: R2D2 ]
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#75761 - 2004-01-21 11:37 AM Re: Acrobat 5 uninstall, acrobat 6 install
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Maybe an reply to an "old" topic but when acrobat 5 and 6 are installed it doesn't uninstall acrobat 5...

Edited by Co (2004-01-21 11:38 AM)
_________________________
Co


Top
#75762 - 2004-01-22 07:15 AM Re: Acrobat 5 uninstall, acrobat 6 install
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Acrobat is annoying in it's installs.. You need to insure that you have any previous version uninstalled. I ran into a Support Desk ticket a couple of weeks ago where the guy was running Acrobat 5, but when I cleaned it up there was a leftover from version 3.. Anyway, the point being, if you any leftovers from other versions, it will wreak havoc.. Here is a bit of code from ScriptLogic that may help - C1043 - Deploy Adobe Acrobat Reader 5.01

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#75763 - 2004-01-23 02:13 PM Re: Acrobat 5 uninstall, acrobat 6 install
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Code:

$acrobat=ReadValue('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe','')
$acrover=GetFileVersion($acrobat)
If Left($acrover,1) = '5'
? 'versie: '+$acrover
Sleep 2
$remove='"C:\WINDOWS\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" -q"'
$Install='"\\server\share\Adobe Reader 6.0\ENUBIG\setup.exe /s"'

Shell ('cmd /c'+$remove)
Shell ('cmd /c'+$install)
EndIf
Exit 0



Edited by Co (2004-01-23 02:14 PM)
_________________________
Co


Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 756 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.161 seconds in which 0.117 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org