Quantcast
Channel: Uninstalling Altiris
Viewing all articles
Browse latest Browse all 5

RE: Uninstalling Altiris (zyaqub)

$
0
0
Thanks for the help, Sherry. I was making things more complicated than necessary - thought I had to create a script, when it turns out I can do it all with command lines. So I've been testing the various uninstall commands, first from the command line, and then by creating a package and advertisement.
 
So, I have the three command lines I need to uninstall and remove directories and reg keys.
 
Uninstall: c:\Altiris\aclient\aclient.exe /remove /silent
Remove directory: rd /s /q "c:\altiris"
Remove reg key: reg delete HKLM\Software\Altiris /f
 
I tested the uninstall and it worked great, both from command line and when I advertised it - completed silently, no reboot necessary.
 
I ran into a problem when I tested the remove directory command. I didn't worry about staging the sequence (figured I'd deal with that later) - just created a separate package, and advertised it after the uninstall completed successfully. It runs fine when I run it from the command line (with administrator rights). However, when I advertise the package, I get a failure with the following error:
 
An error occurred while preparing to run the program for advertisement "LA220012" ("LA200004" - "Remove Altiris directory"). The operating system reported error 2147942402: The system cannot find the file specified. Additional program properties:
Command line: rd /s /q "c:\altiris"
Working directory:
Drive letter (? = any):
Possible cause: This message most commonly occurs when the program’s command-line executable file could not be found, when a required drive letter connection to a distribution point could not be established, or when the program is configured to use the SMS Software Installation Account but the account is not specified, could not be found, or does not have the appropriate permissions.
Solution: Check each of the items listed above.
 
I've checked all the program properties, and think I've set it up correctly (but obviously not):
Command line: rd /s /q "c:\altiris"
Start in: empty
Run: Hidden
Program can run: Whether or not a user is logged on
Run mode: Run with administrative rights
Advanced: Suppress program notifications
 
It's probably something simple that I'm missing. Anyone have any ideas?
 
Once I've figured that out, what is the best way to run the 3 command lines? I'm guessing I need to create three seprate programs, one for each of the command lines. And for both the "remove directory" and the "remove reg key" command lines, select to run the "uninstall Altiris" command first. Does that sound right?

Viewing all articles
Browse latest Browse all 5

Trending Articles