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. ...
1. ## 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.

2. ## Re: Using PSexec To Install

Do they successfully install if you do it manually if you go to a workstation?

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.

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

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.

6. ## 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

7. ## Re: Using PSexec To Install

Are the older versions actually causing a problem?

8. ## 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.

9. ## Re: Using PSexec To Install

Is it failing to work on all your workstations or just certain ones?

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!

11. ## 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

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")
if strUserName = "" 'nobody is logged on
end if
Put this in some kind of time delayed loop. All code untested!!!

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....?

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.

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:
Page 1 of 2 12 Last