Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Web project - Force Restart
 

Web project - Force Restart

Hi,

I'v created a web setup project and i want to restart the computer (not the IIS service)
I'm using VS 2008. How can i force restart at the end of the installation?

Thanks!
kghkuykjh  Sunday, February 22, 2009 3:07 PM

Hi,

The answer is to use the MSI standard action "ForceReboot" to force reboot. Open the resulting MSI package withOrca and sequence the ForceReboot actionbetween InstallInitialize and InstallFinalize in the action sequence of the InstallExecuteSequence table.

For more information on the ForceReboot standard action, refer to the following document:
http://msdn.microsoft.com/en-us/library/aa368607(VS.85).aspx

Hope this helps.

Sincerely,
Linda Liu

Linda Liu  Thursday, February 26, 2009 9:09 AM

Hi,

The answer is to use the MSI standard action "ForceReboot" to force reboot. Open the resulting MSI package withOrca and sequence the ForceReboot actionbetween InstallInitialize and InstallFinalize in the action sequence of the InstallExecuteSequence table.

For more information on the ForceReboot standard action, refer to the following document:
http://msdn.microsoft.com/en-us/library/aa368607(VS.85).aspx

Hope this helps.

Sincerely,
Linda Liu

Linda Liu  Thursday, February 26, 2009 9:09 AM

You can use google to search for other answers

Custom Search

More Threads

• Configuring setup.exe
• Changing the Webpage the Application is Run From
• Click once doesn't launch installer
• ClickOnce StartupNextInstance Parameter Problem
• Deploy DLL
• Running the program in background
• Publish Program
• How to activate User Interface after installation?
• ClickOnce Redeployment Issues
• Guidelines for ensuring success with ClickOnce