» Site Navigation |
|
|
» Stats |
Members: 10,090
Threads: 12,230
Posts: 57,322
Top Poster: Nick (4,991)
|
| Welcome our newest member, garcia |
» September 2010 |
| S |
M |
T |
W |
T |
F |
S |
| 29 | 30 | 31 |
1
|
2
|
3
|
4
|
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
|
26
|
27
|
28
|
29
|
30
| 1 | 2 |
|
 |
09-04-2008, 04:09 PM
|
#1 (permalink)
|
Status: Junior Altiris Admin
Join Date: 04-23-2008
Location: Virginia, USA
Posts: 24
|
SWD Job Fails When Run with System Rights
Whether I'm using a VBS or Batch or just the command line "msiexec.exe /uninstall /myapp.msi /quiet" it will fail when run with System rights! Any of the above methods work fine when tested locally on the machine by any administrator account.
This is a SWD and if I specify a user it will fail since we have Security Groups as administrators on the local machine. Can I specify a local user account like "administrator"? This job would run on many computers with different names. I tried %computername% in the "Domain" field, %computername%/admin in the “User” field, and left the “Domain” filed blank, none of it worked. I don't want to hard code a username or password in a script.
Any ideas would be helpful!!
Thanks.
|
|
|
09-05-2008, 06:48 AM
|
#2 (permalink)
|
Status: Super Altiris Admin
Join Date: 11-09-2006
Location: London
Posts: 905
|
I think you should try and find out why the uninstall will not work using the system account. Two things to try:
1/ Open a command prompt as the system account using the AT command and then run the msi so you can see what's failing.
AT 13:45 /interactive "cmd.exe"
2/ add /lie* c:\temp\myapp.log to the uninstall command abnd then look at the log.
You can't use local users in an SWD task.
You could create a Domain User and make that a member of a Security Group that is administrator on all your machines but solving the original problem is better.
|
|
|
09-05-2008, 11:34 AM
|
#3 (permalink)
|
Status: Altiris Admin
Join Date: 06-16-2008
Location: UK
Posts: 37
|
Intalls that do not require interaction with network resources should install fine using the local system account. However, your command line looks a little suspect. I always deliver msi packages using %comspec% as it usually prevents any path issues and should mean you don't need to type 'msiexec' try this:-
%comspec% /c myapp.msi /x /qn
If your install needs access to anything other than the local machine then you must provide credentials that have the required access rights
Ff you are having problems using setup.exe (esp Installshield) files then this may be assosciated with them impersonating interactive user sessions, google it, you may need to modify iiscript.msi or the registry.
__________________
Steve Adams
Altiris Engineer
London, England.
|
|
|
09-05-2008, 07:03 PM
|
#4 (permalink)
|
Status: Super Altiris Admin
Join Date: 07-02-2007
Location: Alexandria, VA
Age: 30
Posts: 116
|
I've ran into problems with some software (especially scanner software), requiring everyone modify rights to part of the registry. I usually do a manual instal first using msiexec /i some.msi /qb, and then if I encounter errors I use something like MS process monitor in order to figure what the error is. Once I got it figured out we deploy the package using msiexec /i some.msi /qb! so the user gets a notification that it is installing, but they can't cancel the operation.
|
|
|
09-11-2008, 02:41 PM
|
#5 (permalink)
|
Status: Junior Altiris Admin
Join Date: 04-23-2008
Location: Virginia, USA
Posts: 24
|
Sorry I have not gotten back to you sooner, it has been busy! Thanks for all of the suggestions I have tried them still with no luck. I have found that if I run the uninstall with System rights I get the following error.
Quote:
|
This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
|
I have verified that SYSTEM had all the appropriate rights. Here is the best part, if I run the uninstall with ANY OTHER admin rights it will uninstall fine with no error. Because of the above error the .log file would not write. This product is on hundreds of machines and I need to remove it. If it helps the product I'm trying to uninstall is MS Live Meeting 2005 Replay Wrapper. Any new ideas?
|
|
|
09-15-2008, 05:00 AM
|
#6 (permalink)
|
Status: Super Altiris Admin
Join Date: 11-09-2006
Location: London
Posts: 905
|
Quote:
Originally Posted by MoAltiris
I have found that if I run the uninstall with System rights I get the following error.
|
Do you mean "run the uninstall from a command prompt run as the local system account"?
Where is the msi? Where was the orignal install performed from?
|
|
|
09-15-2008, 07:21 AM
|
#7 (permalink)
|
Status: Super Altiris Admin
Join Date: 07-02-2007
Location: Alexandria, VA
Age: 30
Posts: 116
|
I have to agree with andykn, this isn't an uniinstall MSI error this is unable to find file error. Is the MSI on a network share or somewhere inaccessible from the system account?
I suggest you do this, make the command for the task "cmd /k", run it only when someone is logged on, interactively, run as system, and set it to manual. Then run this task; you should get an cmd propmt being ran as system admin where you can try your unistall command and any other test to figure out what your problem is.
|
|
|
09-15-2008, 05:15 PM
|
#8 (permalink)
|
Status: Junior Altiris Admin
Join Date: 04-23-2008
Location: Virginia, USA
Posts: 24
|
The uninstall MSI is in the program and part of the SWD job. I have used a .bat,, .vbs, and just the command line in Altiris SWD. All of these execute locally in the same SWD cache folder. Using the AT command I have setup jobs browsing directly to the cache folder runas System and they fail with the above error. If an administrator browses directly to the cache folder and run the .bat or .vbs it uninstalls with no issues. I'm stumped!!
|
|
|
09-15-2008, 06:05 PM
|
#9 (permalink)
|
Status: Super Altiris Admin
Join Date: 07-02-2007
Location: Alexandria, VA
Age: 30
Posts: 116
|
Product code in Registry
The other thing you can do is find out the MSI product code from the registry, should be in the uninstall string for the application. Once you have this, you can use this for the uninstall; the command is:
msiexec /x {89890-78AD..} /qb!
Just replace {89890-78AD..} with the product GUID. Then the uninstall will kick off without having to know the path to the MSI, it instead reads the information from the registry and preforms the uninstall.
|
|
|
09-16-2008, 05:12 AM
|
#10 (permalink)
|
Status: Super Altiris Admin
Join Date: 11-09-2006
Location: London
Posts: 905
|
Hmmm.
Just to confirm.
You open a command prompt when logged in as a user with local admin rights, change directory to the ...\software delvery\ {guid}\cache directory and then run
Code:
msiexec.exe /uninstall /myapp.msi
where myapp.msi is in the cache directory and it uninstalls.
You open a command prompt as the Local NT Authority\System account, do exactly the same thing and get the message about the installation package could not be opened.
Don't involve .bat or .vbs files at this point. - Check permissions on the \cache directory and all files.
- Try another msi with the system account
- Try another installer option with the system account /f or /a maybe.
- check permissions on the Windows Installer Service in Group Policy, I think it is set to Manual and starts when invoked by a comand.
- Are there any Event Viewer messages relating to Windows Installer that are different between the Admin User and Local System account attempts?
The next thing I would do is use Sysinternals Process Monitor (Regmon and Filemon in one new package).
|
|
|
09-16-2008, 08:33 AM
|
#11 (permalink)
|
Status: Super Altiris Admin
Join Date: 07-02-2007
Location: Alexandria, VA
Age: 30
Posts: 116
|
Nooooo, no, no not the Altiris GUID the internal MSI product GUID. This should be easy to find since you have the MSI and the application is already installed which it is in this case.
To find the product GUID from the MSI see here:
VBScript get MSI ProductCode « A little work blog
To find it from the installed system registry see here:
See Method 2
and then /uninstall is not a valid msiexc switch, you want to use msiexec /x {someProductGUID}
see here: Command-Line Options (Windows)
|
|
|
09-17-2008, 10:33 AM
|
#12 (permalink)
|
Status: Junior Altiris Admin
Join Date: 04-23-2008
Location: Virginia, USA
Posts: 24
|
I have to change gears now, I have found out the problem. The problem is that this MSI is set to install on a 'per user' basis. System did not install this so System cannot uninstall this. I found this out by using a newly created admin account, I was using the same admin accounts to install and uninstall during this whole process. Sorry this has dragged out so far, that is a tier 1 mistake I should have caught.
Is there a way to uninstall a MSI of this type if you don't know who installed it? I can't think of a way, but that does not mean it can't be done.
|
|
|
 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|