Seite 1 von 1

UserLoginScripts

Verfasst: 21 Aug 2013, 13:00
von bobzbobz
Hi

We have just cofunded the User Profile Management module.
We have recieved it and installed it, but how excactly does the login-scripts work?

I have created a basic package with the following files:

control-file

Code: Alles auswählen

[Package]
version: 1
depends: 
incremental: False

[Product]
type: localboot
id: testlogonscript
name: testlogonscript
description: 
advice: 
version: 1.0
priority: 0
licenseRequired: False
productClasses: 
setupScript: setup.ins
uninstallScript: 
updateScript: 
alwaysScript: 
onceScript: 
customScript: 
userLoginScript: setup.ins
setup.ins

Code: Alles auswählen

[Actions]

if GetScriptMode = "Machine"
	Files_install
endif

if GetScriptMode = "Login"
	Files_install2
endif

[Files_install]
copy -s "%ScriptPath%\1.txt" "%CommonDesktopDir%\"

[Files_install2]
copy -s "%ScriptPath%\2.txt" "%CommonDesktopDir%\"
Now when i set the script for status "setup" in configed, it installes correctly, but when i login to the computer nothing seems to happen.
Is the login-script not supposed to run when someone logs on to the computer?

(Only 1.txt is on the desktop).

Best Regards,
Soren

Re: UserLoginScripts

Verfasst: 23 Aug 2013, 10:30
von bobzbobz
Anyone?

Have I missunderstood the concept of userloginscripts?

Re: UserLoginScripts

Verfasst: 23 Aug 2013, 18:05
von wolfbardo
Not sure if you already activated the event
event_user_login
see

http://download.uib.de/opsi4.0/doc/html ... serprofile

19.6. Configuration

regards,
bardo wolf