#207486 - 2013-07-24 10:14 AM
MessageBox not dispalying with Windows 7
|
yellowdog
Starting to like KiXtart
Registered: 2005-06-14
Posts: 102
|
Hello,
I have scripts for applications deployement launched as the PC starts up (Computer GPO Startup scripts), the problem is that the MessageBox command do not display any message. The script is runing fine (installs the application), but no message displayed.
When deploying applications, the user as to wait until the application is installed but without any message, it 's not easy and if the user opens the session while it's processing the installation, then the deployement fails.
What do I have to do to display messages at startup ?
|
|
Top
|
|
|
|
#207498 - 2013-07-26 09:23 AM
Re: MessageBox not dispalying with Windows 7
[Re: yellowdog]
|
yellowdog
Starting to like KiXtart
Registered: 2005-06-14
Posts: 102
|
Nobody has encountered that problem already ????????
|
|
Top
|
|
|
|
#207517 - 2013-07-26 04:28 PM
Re: MessageBox not dispalying with Windows 7
[Re: Glenn Barnas]
|
yellowdog
Starting to like KiXtart
Registered: 2005-06-14
Posts: 102
|
Glenn,
Indeed, I use startup scripts to install applications with administrators rights otherwise applications won't install correctly. Then being unable to deploy applications at logon scripts, what is the solution to display messages during startup scripts ?
|
|
Top
|
|
|
|
#207545 - 2013-07-29 10:44 PM
Re: MessageBox not dispalying with Windows 7
[Re: Glenn Barnas]
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Startup scripts are run under the System account which by default has probably a couple issues (untested just guessing at what might be going on)
The system account uses it's own profile - thus is not interactive with current user logon and aside from being able to see the underlying process run you may not be able to make the actual dialogbox visible to the current user.
There actually is a process to do that but is for debugging and is not for startup or logon scripting.
From TechNet: Beginning in Windows Vista, startup scripts are run asynchronously, by default.
Setting startup scripts to run synchronously may cause the boot process to run slowly.
In Windows 7 and Windows Vista, startup scripts that are run asynchronously will not be visible.
Enabling the Run Startup Scripts Visible policy setting will have no effect when running startup scripts asynchronously.
For a Windows 7 computer this might help some if you can get the script to be shown, but again I don't think it is designed to do that and is probably a tweak if you can get it to do it.
The Welcome screen may be displayed for 30 seconds, and the logon script interacts with me when I try to log on to a computer that is running Windows Vista or Windows Server 2008
REG_DWORD: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System DelayedDesktopSwitchTimeout=0
|
|
Top
|
|
|
|
#207553 - 2013-07-30 03:01 PM
Re: MessageBox not dispalying with Windows 7
[Re: NTDOC]
|
yellowdog
Starting to like KiXtart
Registered: 2005-06-14
Posts: 102
|
Thank you gentlemen for those answers.
I'm gonna test it to see if it suites to what I need.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Henriques)
and 2516 anonymous users online.
|
|
|