[wpkg-users] Vista service

Tomasz Chmielewski mangoo at wpkg.org
Tue Oct 28 21:36:49 CET 2008


Michael Ugilt schrieb:
> Thanks for helping out!
> I install the service by a login script from a samba share (KIX script)

Logon script?

Perhaps not everyone noticed, but we're not in times of ancient DOS and 
Windows 9x, where every user had full administrative privileges over the 
whole system.

Just don't install any programs via logon script, that's not what it's for.
Regular users SHOULD NOT BE ABLE TO INSTALL APPLICATIONS. There may be 
some exemptions, i.e. home users which happen to be administrators, but 
to in schools, companies etc. - where WPKG is used.


> LOGIN SCRIPT
> ============
> ;
> ; install wpkg as a service
> ;
> if not exist("c:\programmer\wpkg\wpkgsrv.exe") 
> 	MESSAGEBOX ("Installerer WPKG...", "Info", 0, 10)
> 	SHELL "l:\wpkg-inst.bat"
> 	SHUTDOWN ("","Genstart af PC nødvendig...", 5, 1)
> endif
> 
> ; Make sure latest settings.xml is in use at next boot
> SHELL "c:\programmer\wpkg\wpkginst --SETTINGSFILE=l:\settings.xml"
> 
> 
> Wpkg.inst-bat
> =============
> echo Installing WPKG...
> mkdir "c:\program files\wpkg" > nul:
> COPY L:\wpkginst.exe "c:\program files\wpkg" > nul:
> COPY L:\wpkglogon.dll "c:\program files\wpkg" > nul:
> COPY L:\wpkgsrv.exe "c:\program files\wpkg" > nul:

Where did you get that idea from? That you'd just copy executables and 
libraries, and it'd just work?
It *might* work if you do some additional changes here and there, but 
certainly, it's not supported.


> c:\programmer\wpkg\wpkgsrv.exe /install
> c:\programmer\wpkg\wpkginst --SETTINGSFILE=l:\settings.xml
> 
> I have attached my settings.xml
> 
> If I check the running processes after login I do not see wpkg service
> running so my guess is that it's not launched during boot!?!?!

Regular users can't stop/start services.


> Digging into the windows eventviewer I see an error (translated) in the
> lines of "Service WPKG is marked as inactive service. The system is not
> configured to allow inactive services"

Just use WPKG Client installer.
Your users should not be administrators.

And get yourself some "system administration basics" book ;)

-- 
Tomasz Chmielewski
http://wpkg.org



More information about the wpkg-users mailing list