Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Need a directive to logoff current user when manually installation finished for inf install
for this
[Install]
BeginPrompt =BeginInst
RunPreSetupCommands =Create.i386:1
CopyFiles =program.files
AddReg =Uninst.AddReg
ProfileItems =Program.Addshortcut
RunPostSetupCommands=Delete.i386
EndPrompt =EndInst
----------------add Logoff directive here and with a prompt

From
http://windowsitpro.com/Articles/In..."On average, I receive a letter a month asking whether a command-line tool is available to force a logoff. Until recently, I've known of no such tool. But the Microsoft Windows NT Server 4.0 Resource Kit Supplement 4 contains two: a compiled program, logoff.exe, and a VBScript routine, logoff.vbs, that does even more than logoff.exe does.
You can call logoff.exe from a batch file. Its syntax is
logoff [/n] [/f]
When you invoke logoff without options, logoff asks whether you really want to log off and accepts a y (yes) or n (no) response. When you type y in response, NT logs you off unless an application has unsaved data, in which case the application stops the logoff process and asks you to verify that you really want to log off without saving your data. Clearly, a logoff command that requires confirmation isn't much help in a batch file. Enter the /n and /f options. . . . "
"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10

![]() |
OE .dbx files
|
Alt Codes not working
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |