I have an application that makes some changes in Windows , some of these changes require Windows restart to take effect . So , my question is : How can i restart the computer only for the first tool execution ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can keep restart option in the registry. Depending on the type of changes you make, use either
HKEY_CURRENT_USERorHKEY_LOCAL_MACHINE\ Software \ your brand \ your program \ create a DWORD key called RestartRequired.If you have installation process, you can initially create this key with a value of 1. Then set to 0 just before closing and doing the restart. If you don’t install anything, you can check whether RestartRequired=0 exists in the registry at a certain location. If it does not, it will create this value and commence restart.