Acrobat Reader 7 install problem in controlled desktop environment
Hello..
I've been rolling out Acrobat Reader 7 using the silent install method listed here (thank you very much! [:)]), and it's been working like a charm. And then it started to go wrong for certain machines, where MISEXEC would sit in the task list, doing very little at all.
After a quick bit of experimenting, I found the problem was only appearing in 2K/XP rooms where we lock down the desktops/start menus via a custom policy.
To get around this, I've put together a KIX file which I run remotely using psexec which resets the start menu, desktops etc back to what is normal, runs the installer, and then pops the desktop/start menu etc settings back to what they were (or else, you could just reboot the PC and let the custom .pol set them back)..
Here's the KIX script here... Please excuse my poor coding - I know enough to get by :-)
Oh, and the reason the all users is set to %systemroot%\Profiles, rather than c:\documents and settings is so that the profiles are in the same location as our NT boxes.
For that reason, change the $blah1 to $blah2 in the WRITEVALUE section, as in:
WRITEVALUE($USFKEY, "Common Desktop", $DESK1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Programs", $PROG1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Start Menu", $MENU1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Startup", $STRT1, "REG_SZ")
Hope this helps someone?
; Install Acrobat Reader 7 silently
;
; Checks for customised Desktop/Start Menu, and resets to allow the
; installer to work properly
;
; 2K or XP only
; Normal All Users profile locations (2K or XP)
$PROF1="%SystemRoot%\Profiles\All Users"
$PROF2="C:\Documents And Settings\All Users"
$DESK1=$PROF1+"\Desktop"
$DESK2=$PROF2+"\Desktop"
$PROG1=$PROF1+"\Start Menu\Programs"
$PROG2=$PROF2+"\Start Menu\Programs"
$MENU1=$PROF1+"\Start Menu"
$MENU2=$PROF2+"\Start Menu"
$STRT1=$PROF1+"\Start Menu\Programs\Startup"
$STRT2=$PROF2+"\Start Menu\Programs\Startup"
$USFKEY="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
$COMMDESK=READVALUE($USFKEY, "Common Desktop")
$COMMPROG=READVALUE($USFKEY, "Common Programs")
$COMMMENU=READVALUE($USFKEY, "Common Start Menu")
$COMMSTRT=READVALUE($USFKEY, "Common Startup")
; Reset the values to normal system values
WRITEVALUE($USFKEY, "Common Desktop", $DESK1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Programs", $PROG1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Start Menu", $MENU1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Startup", $STRT1, "REG_SZ")
; Install Acrobat 7
$CMD="C:\SECURITY_PATCH\AdbeRdr70_enu_full.exe /v" + CHR(34) + "/qb EULA_ACCEPT=YES"
SHELL $CMD
; Reset the values back to what they were at
WRITEVALUE($USFKEY, "Common Desktop", $COMMDESK, "REG_SZ")
WRITEVALUE($USFKEY, "Common Programs", $COMMPROG, "REG_SZ")
WRITEVALUE($USFKEY, "Common Start Menu", $COMMMENU, "REG_SZ")
WRITEVALUE($USFKEY, "Common Startup", $COMMSTRT, "REG_SZ")
; Import Acrobat registry keys
; Disable EULA
$ARREGKEY = "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\AdobeViewer"
WRITEVALUE($ARREGKEY, "EULA", "1", "REG_DWORD")
; Remove EBook menu and Internet PrintMe, update and purchase options from the File menu
$ARREGKEY = "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe"
ADDKEY($ARREGKEY)
$ARREGKEY = $ARREGKEY + "\Acrobat Reader"
ADDKEY($ARREGKEY)
$ARREGKEY = $ARREGKEY + "\7.0"
ADDKEY($ARREGKEY)
$ARREGKEY = $ARREGKEY + "\FeatureLockdown"
ADDKEY($ARREGKEY)
WRITEVALUE($ARREGKEY, "bEFIPrintMe", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bPurchaseAcro", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bUpdater", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bRegisterProduct", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bShowEbookMenu", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bShowAdsAllow", "0", "REG_DWORD")
; Delete icon from all users desktop
DEL "%WINDIR%\Profiles\All Users\Desktop\Adobe Reader 7.0.lnk"
DEL "C:\Documents And Settings\All Users\Desktop\Adobe Reader 7.0.lnk"
DEL "%WINDIR%\Profiles\All Users\Start Menu\Programs\Adobe Reader Speed Launch.lnk"
DEL "C:\Documents And Settings\All Users\Start Menu\Programs\Adobe Reader Speed Launch.lnk"
EXIT
I've been rolling out Acrobat Reader 7 using the silent install method listed here (thank you very much! [:)]), and it's been working like a charm. And then it started to go wrong for certain machines, where MISEXEC would sit in the task list, doing very little at all.
After a quick bit of experimenting, I found the problem was only appearing in 2K/XP rooms where we lock down the desktops/start menus via a custom policy.
To get around this, I've put together a KIX file which I run remotely using psexec which resets the start menu, desktops etc back to what is normal, runs the installer, and then pops the desktop/start menu etc settings back to what they were (or else, you could just reboot the PC and let the custom .pol set them back)..
Here's the KIX script here... Please excuse my poor coding - I know enough to get by :-)
Oh, and the reason the all users is set to %systemroot%\Profiles, rather than c:\documents and settings is so that the profiles are in the same location as our NT boxes.
For that reason, change the $blah1 to $blah2 in the WRITEVALUE section, as in:
WRITEVALUE($USFKEY, "Common Desktop", $DESK1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Programs", $PROG1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Start Menu", $MENU1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Startup", $STRT1, "REG_SZ")
Hope this helps someone?
; Install Acrobat Reader 7 silently
;
; Checks for customised Desktop/Start Menu, and resets to allow the
; installer to work properly
;
; 2K or XP only
; Normal All Users profile locations (2K or XP)
$PROF1="%SystemRoot%\Profiles\All Users"
$PROF2="C:\Documents And Settings\All Users"
$DESK1=$PROF1+"\Desktop"
$DESK2=$PROF2+"\Desktop"
$PROG1=$PROF1+"\Start Menu\Programs"
$PROG2=$PROF2+"\Start Menu\Programs"
$MENU1=$PROF1+"\Start Menu"
$MENU2=$PROF2+"\Start Menu"
$STRT1=$PROF1+"\Start Menu\Programs\Startup"
$STRT2=$PROF2+"\Start Menu\Programs\Startup"
$USFKEY="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
$COMMDESK=READVALUE($USFKEY, "Common Desktop")
$COMMPROG=READVALUE($USFKEY, "Common Programs")
$COMMMENU=READVALUE($USFKEY, "Common Start Menu")
$COMMSTRT=READVALUE($USFKEY, "Common Startup")
; Reset the values to normal system values
WRITEVALUE($USFKEY, "Common Desktop", $DESK1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Programs", $PROG1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Start Menu", $MENU1, "REG_SZ")
WRITEVALUE($USFKEY, "Common Startup", $STRT1, "REG_SZ")
; Install Acrobat 7
$CMD="C:\SECURITY_PATCH\AdbeRdr70_enu_full.exe /v" + CHR(34) + "/qb EULA_ACCEPT=YES"
SHELL $CMD
; Reset the values back to what they were at
WRITEVALUE($USFKEY, "Common Desktop", $COMMDESK, "REG_SZ")
WRITEVALUE($USFKEY, "Common Programs", $COMMPROG, "REG_SZ")
WRITEVALUE($USFKEY, "Common Start Menu", $COMMMENU, "REG_SZ")
WRITEVALUE($USFKEY, "Common Startup", $COMMSTRT, "REG_SZ")
; Import Acrobat registry keys
; Disable EULA
$ARREGKEY = "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\AdobeViewer"
WRITEVALUE($ARREGKEY, "EULA", "1", "REG_DWORD")
; Remove EBook menu and Internet PrintMe, update and purchase options from the File menu
$ARREGKEY = "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe"
ADDKEY($ARREGKEY)
$ARREGKEY = $ARREGKEY + "\Acrobat Reader"
ADDKEY($ARREGKEY)
$ARREGKEY = $ARREGKEY + "\7.0"
ADDKEY($ARREGKEY)
$ARREGKEY = $ARREGKEY + "\FeatureLockdown"
ADDKEY($ARREGKEY)
WRITEVALUE($ARREGKEY, "bEFIPrintMe", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bPurchaseAcro", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bUpdater", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bRegisterProduct", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bShowEbookMenu", "0", "REG_DWORD")
WRITEVALUE($ARREGKEY, "bShowAdsAllow", "0", "REG_DWORD")
; Delete icon from all users desktop
DEL "%WINDIR%\Profiles\All Users\Desktop\Adobe Reader 7.0.lnk"
DEL "C:\Documents And Settings\All Users\Desktop\Adobe Reader 7.0.lnk"
DEL "%WINDIR%\Profiles\All Users\Start Menu\Programs\Adobe Reader Speed Launch.lnk"
DEL "C:\Documents And Settings\All Users\Start Menu\Programs\Adobe Reader Speed Launch.lnk"
EXIT
0 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.