Jump to content

Need a directive to logoff current user when manually installation finished


bjfrog

Recommended Posts

I need send a logoff directive to make registry entries take effects when manually installation finished

[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

I have Googled internet,only found directives to reboot machine like below

Reboot =  1
SmartReboot =A / N

any help is appreciated.

Link to comment
Share on other sites

  • 2 weeks later...
I need send a logoff directive to make registry entries take effects when manually installation finished

[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

I have Googled internet,only found directives to reboot machine like below

Reboot =  1
SmartReboot =A / N

any help is appreciated.

I think that the command would be

CMD /Q /C shutdown -l

just add this to Delete.i386 section and should work, or create another section under RunPostSetupCommands

check with ricktendo64 on syntax for the inf, but "shutdown -l" is logoff user

Edited by Jonnyboy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...