Windows Thread, Using PSexec To Install in Technical; I'm using psexec, I am trying to install the adobe acrobat 7.05 .msi along with a .mst file as well. ...
-
8th November 2005, 05:00 PM #1
- Rep Power
- 0
Using PSexec To Install
I'm using psexec, I am trying to install the adobe acrobat 7.05 .msi along with a .mst file as well. I have slipped down a bit and just tried to install using adobe setup .exe but so far I have been unable to achieve it. I have also tried this for the java.msi as well but I find that either the thing just fails or it takes a very long time and doesn't suceed in leaving any files in the target destination. (win 2000 server with xp and 2000 clients)
So could someone out there please explain how to install acrobat and java or link me to a very good page.
Also I've tried to install these using GPO and I got messages appearing on the load up screen saying installing Java/Acrobat/Flash but the files never appear on the local hard drive.
-
-
IDG Tech News
-
8th November 2005, 05:22 PM #2 Re: Using PSexec To Install
Do they successfully install if you do it manually if you go to a workstation?
-
-
8th November 2005, 05:34 PM #3 Re: Using PSexec To Install
i once remotely installed acrobat using a dos prog that enabled me to remotely create scheduled tasks that ran under admin credentials. i got this cunning idea from gfi languard as thats how it appeared to remotely install updates. i dont remember the name of the dos prog except it was probably on
a res kit. had to work out a silent install command line but worked great.
also acrobat had some wierd wrapper that has to extract but if you run it but dont do anything you can find the extracted install files in your temp directory and then use them instead.
-
-
8th November 2005, 05:41 PM #4 Re: Using PSexec To Install
Acrobat and Java are ideal candidates for GPO installation (as both are MSI based). When you tried this method, did you check the event logs for errors (on the workstations). If you got a message like 'installation source not available', it's possibly to do with the permissions on your central installation share point. You need to give 'authenticated users' RX permissions to all the folders and files that will be accessed during the install (including any parent folders up to and including the folder that is actually shared).
-
-
8th November 2005, 05:42 PM #5 Re: Using PSexec To Install
The GPMC can often explain why an MSI package isn't deploying correctly. Do a GP Results session on the affected machine/user and see what it throws up.
-
-
8th November 2005, 06:11 PM #6
- Rep Power
- 0
Re: Using PSexec To Install
it was the authenticated users permissions causing the problems, typical afternoon wasted because of a little issue like that...
Anyways I'll change the subject of the thread a bit and ask if I want to uninstall the versions of acrobat and java that were already on the PC before the MSI's were installed (installed manually) how would I go about removing them with psexec ? it seems the best bet
-
-
8th November 2005, 10:16 PM #7 Re: Using PSexec To Install
Are the older versions actually causing a problem?
-
-
9th November 2005, 09:33 AM #8
- Rep Power
- 0
Re: Using PSexec To Install
No problem as such, apart from each version of java taking up somewhere between 100-150mb of hard disk space.
-
-
9th November 2005, 01:41 PM #9
- Rep Power
- 0
Re: Using PSexec To Install
Is it failing to work on all your workstations or just certain ones?
-
-
11th November 2005, 05:45 PM #10 Re: Using PSexec To Install
If the original had also been deployed using Group Policy, you could have deployed the new version and marked it as 'upgrading' the old version. The old version would then have been removed automatically. You could try the following, but I've no idea if it would work...
1 - Load the old & new version of the app onto your distribution point
2 - Allocate the old version of the app with GP
3 - Allocate the new version of the app with GP and indicate that it upgrades the older version.
If you are lucky, GP might convert existing installations of the old version to 'managed' versions then upgrade them to the new versions. I would strongly suggest that you test this theory before trying it for real!
Another option would be to use something like WPKG to remove the old versions prior to installing the new ones. Again, I have never tried this, but WPKG looks quite flexible. I just don't know if it could uninstall something that it did not install in the first place.
Final possibility is to script it. As the installation is a Windows Installer one, it would be possible to remove it by issuing the following command;
msiexec /x {product code}
You can determine the product code of the old version of the app either by looking it up in the PROPERTY table of the MSI itself (use ORCA to load it), or by looking in the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UserData\S-1-5-18\Products
again, test, test, test!
-
-
16th November 2005, 03:31 PM #11
- Rep Power
- 0
Re: Using PSexec To Install
I have achieved the uninstalls with a psexec script to remove old .msi files
However. I was wondering how I could alter my script to:
a) not run if a user is logged onto the computer
b) keep a log of any failures or errors because at the moment I get no feedback.
This is my current script
psexec @"D:\scripts\lists\it18.txt" -s -d cmd /c msiexec /x beab52ab-833e-4f86-083e-8752bbb00015 /quiet /norestart
-
-
16th November 2005, 05:18 PM #12 Re: Using PSexec To Install
You could just check the username to see if its blank.
In VBscript
Code:
Set WshNetwork = WScript.CreateObject("WScript.Network")
strUserName = WshNetwork.UserName
if strUserName = "" 'nobody is logged on
' run your program
end if Put this in some kind of time delayed loop. All code untested!!!
-
-
16th November 2005, 05:41 PM #13 Re: Using PSexec To Install
@ChrisH:
But surely the script would execute under the context of the remote user if executed by PSTOOLS, which would mean that UserName would return a non-null value....?
-
-
16th November 2005, 05:42 PM #14 Re: Using PSexec To Install
Why not run the uninstall script as a computer startup script. That way it would execute when nobody was logged on.
-
-
16th November 2005, 06:31 PM #15 Re: Using PSexec To Install
Thats a good point
ops: Im sure i saw a little executable somewhere that could do this task to a remote computer. You can apparently get username from netbios as well with nbtstat I read. Uninstalling on bootup is probably the most sensible approach though.
-
SHARE:
Similar Threads
-
By Craig_W in forum MIS Systems
Replies: 27
Last Post: 22nd May 2008, 03:31 PM
-
By GrumbleDook in forum Educational Software
Replies: 0
Last Post: 5th October 2007, 10:01 AM
-
By russdev in forum General Chat
Replies: 6
Last Post: 23rd August 2007, 11:55 AM
-
By tosca925 in forum Learning Network Manager
Replies: 12
Last Post: 20th December 2006, 01:02 PM
-
By ZeroHour in forum Windows
Replies: 6
Last Post: 11th April 2006, 06:26 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules