none
VSTO ClickOnce auto reboot after installtion Visual Studio 2010 for Office runtime RRS feed

  • Question

  • Hello all,

    We have developed a VSTO Office application (Click Once) with as prerequisite the Visual Studio 2010 for Office runtime. As soon as the Clickonce installation detects that Visual Studio 2010 for Office runtime is not installed it starts installing (Good!). But...

    Now we have found that the clients PC reboots without any warning (and closes all open files/programms) after the installation of the Visual Studio 2010 for Office runtime.

    Any idea how to prevent this (if it gives a warning its much better).

    regards

    Arie

    Thursday, May 15, 2014 1:05 PM

Answers

  • Hi,

    Based on my understanding, the system rebooted when you were installing ClickOnce prerequisite component named Office Developer Tools for Visual Studio 2012.

    When you create a custom prerequisite package, you can set Reboot property as “None” or “Defer” in the Commands element. The Reboot property defines the Reboot behavior about specified prerequisite package in product.xml.

    The possible values for Reboot are 'None', 'Defer', 'Immediate', and 'Force'.

    A value of None indicates no reboot.  Even if every package file returned success reboot the Bootstrapper does nothing.

    A value of Defer means to acknowledge the reboot but don't do it yet.  Hold the reboot until either a reboot is forced or until the end of all Bootstrapper packages are installed.

    Immediate means if a reboot is encountered reboot immediately after the current package is finished installing (that is all package files have been executed).

    Force means reboot regardless.  Even if Success was returned reboot anyways. 

    (Ref: http://blogs.msdn.com/b/chrsmith/archive/2005/09/02/rebooting-in-the-bootstrapper.aspx)

    Regards,

    Marvin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Marvin_Guo Wednesday, May 21, 2014 1:42 AM
    Friday, May 16, 2014 7:52 AM

All replies

  • Hello Arie,

    Most probably you keep an instance of Visual Studio opened/running when you install the VSTO runtime. Try to check out the list of running processes before running the installer. Is this the case?

    Anyway, you can add a message box to the installer. Try asking such questions in the ClickOnce and Setup & Deployment Projects forum instead.

    Thursday, May 15, 2014 3:41 PM
  • See Deploying an Office Solution by Using ClickOnce . It describes all aspects of creating ClickOnce installers for VSTO based add-ins. Also you can find the Troubleshooting Office Solution Deployment article in MSDN helpful.
    Thursday, May 15, 2014 3:43 PM
  • Hi,

    Based on my understanding, the system rebooted when you were installing ClickOnce prerequisite component named Office Developer Tools for Visual Studio 2012.

    When you create a custom prerequisite package, you can set Reboot property as “None” or “Defer” in the Commands element. The Reboot property defines the Reboot behavior about specified prerequisite package in product.xml.

    The possible values for Reboot are 'None', 'Defer', 'Immediate', and 'Force'.

    A value of None indicates no reboot.  Even if every package file returned success reboot the Bootstrapper does nothing.

    A value of Defer means to acknowledge the reboot but don't do it yet.  Hold the reboot until either a reboot is forced or until the end of all Bootstrapper packages are installed.

    Immediate means if a reboot is encountered reboot immediately after the current package is finished installing (that is all package files have been executed).

    Force means reboot regardless.  Even if Success was returned reboot anyways. 

    (Ref: http://blogs.msdn.com/b/chrsmith/archive/2005/09/02/rebooting-in-the-bootstrapper.aspx)

    Regards,

    Marvin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Marvin_Guo Wednesday, May 21, 2014 1:42 AM
    Friday, May 16, 2014 7:52 AM
  • Hello,

    Thanks very much for your info. I'm going to check it out...

    regards

    Arie

    Friday, May 16, 2014 4:21 PM