Page 1 of 2 12>
Topic Options
#168756 - 2006-10-03 01:00 AM Add/Remove software with kixtart
wrender Offline
Fresh Scripter

Registered: 2006-09-25
Posts: 22
Hello,

I've looked around and I can't seem to find information on adding/removing software using kixtart. Does anyone know of any how-to's for this? What I need to do is remove Netop Remote Control from all of our computers, and install Crosstec Remote Control.

I want to be able to uninstall Netop Remote Control with a login script that has Administrative privilages. A lot of the computers on our network are down at different times during the day.

I'm going to deploy the new crosstec remote with Active Directory, GPOs and an MSI Package.

Top
#168757 - 2006-10-03 01:32 AM Re: Add/Remove software with kixtart
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
I think many consider it bad practice to use alternate credentials with admin privileges during logon.
I have never done this, but I think you can use
- KiXCrypt
- Kix2Exe
- AdminScriptEditor
- ...
You would pack the script together with the kix32.exe or wkix32.exe in an executable. The exe will unpack the script to a temp folder and launch it with the alternate credentials you provided.
But at that very moment, your users would be able to catch that script and get your admin credentials.

Top
#168758 - 2006-10-03 04:02 AM Re: Add/Remove software with kixtart
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Or use a GPO Startup script.
Top
#168759 - 2006-10-03 05:36 AM Re: Add/Remove software with kixtart
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
As Les says. Use a GPO with the appropriate calls to remove the software just as you're planning on installing software with it, it can be removed as well.
Top
#168760 - 2006-10-03 05:57 AM Re: Add/Remove software with kixtart
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Code:

msiexec /I"NetOp Remote Control.msi" /qr REMOVE="ALL"


will uninstall Netop Remote Control
_________________________
There are two types of vessels, submarines and targets.

Top
#168761 - 2006-10-03 12:16 PM Re: Add/Remove software with kixtart
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
using the guid for the specific applications is prefered, tho - usage of your way makes recognizing what program refering to easier.
And the way you're calling the uninstall is for me a uncommon method.


Top
#168762 - 2006-10-03 12:18 PM Re: Add/Remove software with kixtart
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
since your'e planning to do this via ad and gpo and with msi, add a package install for the new package, and in that add a script for removal, or even better, add the uninstallation of the old package in the new one.
Top
#168763 - 2006-10-03 05:35 PM Re: Add/Remove software with kixtart
wrender Offline
Fresh Scripter

Registered: 2006-09-25
Posts: 22
We have two version of Netop, 8 and 9. Only with 9 where they installed with MSI packages.... the others were just installed using a regular setup.exe file. Will this make a difference if I create a GPO to remove the netop 8 and 9?
Top
#168764 - 2006-10-03 06:47 PM Re: Add/Remove software with kixtart
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
IIWY, I would try it interactive on one computer to see that the V8 or even the V9 MSI would be able to remove the software.
Top
#168765 - 2006-10-03 07:46 PM Re: Add/Remove software with kixtart
wrender Offline
Fresh Scripter

Registered: 2006-09-25
Posts: 22
Ok thanks Witto. I am trying to use the latest Netop V9 MSI to uninstall the older versions.
Top
#168766 - 2006-10-03 10:01 PM Re: Add/Remove software with kixtart
wrender Offline
Fresh Scripter

Registered: 2006-09-25
Posts: 22
No luck with uninstalling using a GPO and MSI. This is what I tried....

Created a test workstation within the OU I am testing GPOs with. Install Netop 7.5 from a non msi setup. (This probably the case for a lot of workstations on our real network)

Added the Netop 9 MSI Package to the policy, and set to assigned.
Added the new Crosstec MSI Package to the polciy, and set it to replace/upgrade Netop 9 Msi.

Crosstec installs, but nothing happens with the Netop Stuff. Is there anyway I could use a script that would just check for any versions of netop, and then uninstall them silently?

Top
#168767 - 2006-10-03 10:07 PM Re: Add/Remove software with kixtart
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
You could have a look at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, find the stuff you need to uninstall and read the value of UninstallString. Unfortunately this most likely requires admin privileges and therefore can not be run at logon if the user does not have admin privs. You could schedule a task on each machine to run a script or something that uninstalls the app. The task could even be scheduled by a remote admin script so the users will never know and can keep working.

Edited by Mart (2006-10-03 10:07 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#168768 - 2006-10-03 10:50 PM Re: Add/Remove software with kixtart
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Les was talking about a Startup script. Not about a assigned installation.
I think he was talking about something like described here:
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=137939&an=0&page=0

What I wanted to say was:
I would first install the V8.exe on a workstation and see if I was able to remove it with the v8.msi as suggested by sealeopard. Not directly implement a GPO Installer Package.
I am sorry if you misunderstood me.

Top
#168769 - 2006-10-04 01:00 AM Re: Add/Remove software with kixtart
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Huh? I don't think there is anything in that link about Startup scripts, only logon scripts.
Top
#168770 - 2006-10-04 10:20 AM Re: Add/Remove software with kixtart
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Les,
Maybe I am wrong but this is a quote from the link
Quote:


Computer Configuration/Windows Settings/Scripts (Startup/Shutdown) << This should be by machine




I thought startup scripts had to be defined there?

Top
#168771 - 2006-10-04 03:41 PM Re: Add/Remove software with kixtart
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Ja, that one liner does make reference to Startup scripts, but 99% of the thread is devoted to logon GPO and removing legacy scripts.

So, I stand corrected. I don't think there is MUCH OF anything in that link about Startup scripts, only logon scripts.

Top
#168772 - 2006-10-04 05:42 PM Re: Add/Remove software with kixtart
wrender Offline
Fresh Scripter

Registered: 2006-09-25
Posts: 22
So... I guess I am in a bad situation for this scenario.. We have multiple versions of netop on the workstations, and they were all installed different ways..
Looks like we will have to manually go to each site and remove the software from add/remove programs.

Top
#168773 - 2006-10-04 05:50 PM Re: Add/Remove software with kixtart
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
I just did a quick search on the board about startup scripts in policies.
This was one of the first links I found. It helps to locate where they are situated.
I never wanted to say that the text itself was about startup scripts. Sorry if I was not clear.
There is other valuable info on the same link about startup scripts
Quote:


Note: a per-machine script (computer configuration - Startup/Shutdown) runs under SYSTEM context (meaning admin privs).




and
Quote:


But not network access unlesss SYSTEM is specifically granted network access, so I remember.




Top
#168774 - 2006-10-04 06:59 PM Re: Add/Remove software with kixtart
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Just create your own MANUAL uninstaller. Often can be even performed remotely.

Kill the running process with WMI and then delete the Files and Folder, and remove any of the Registry entries.

Top
#168775 - 2006-10-05 07:14 PM Re: Add/Remove software with kixtart
wrender Offline
Fresh Scripter

Registered: 2006-09-25
Posts: 22
Quote:

I think many consider it bad practice to use alternate credentials with admin privileges during logon.
I have never done this, but I think you can use
- KiXCrypt
- Kix2Exe
- AdminScriptEditor
- ...
You would pack the script together with the kix32.exe or wkix32.exe in an executable. The exe will unpack the script to a temp folder and launch it with the alternate credentials you provided.
But at that very moment, your users would be able to catch that script and get your admin credentials.




Ok, Thanks again for all the info. Witto, I just wanted to comment on this security issue. I'm guessing when the script is decrypted before it is run, the script is then run in clear text? Is this really a big worry? The user would have to know exactly when and where to look to get the password, wouldn't they?

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
2 registered (morganw, mole) and 414 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.073 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org