473,750 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reboot after deployment

Hi

I deploy a Windows Service which requires a reboot after setup. The setup
project, however, does not automatically recognize this requirement.How do I
force a reboot (or set a reboot property) in the setup project (VS 2003)?
Any hints are appreciated.

Thanks, Urs

Nov 21 '05 #1
4 1881
I dont know how to do it using a native framework technique, but here is a
tip: An ExitWindowsEx API call can be used to shutdown, logoff, restart,
power off ...

"Urs Vogel" <uv****@msn.com > wrote in message
news:ei******** ******@tk2msftn gp13.phx.gbl...
Hi

I deploy a Windows Service which requires a reboot after setup. The setup
project, however, does not automatically recognize this requirement.How do
I force a reboot (or set a reboot property) in the setup project (VS
2003)? Any hints are appreciated.

Thanks, Urs

Nov 21 '05 #2

Hi,

You need orca.exe to edit the setup msi. Open the msi with orca.
Go to the properties table and right click in the table and select add
new
row. Add the property REBOOT and set its value to FORCE. Set the
property
folderForm_allu sers to all if you want to install for everyone instead
of
me. Orca is part of the windows installer sdk.

http://www.microsoft.com/msdownload/...sdk/sdkupdate/

or see
http://msdn.microsoft.com/library/de...oot_action.asp

"Urs Vogel" <uv****@msn.com > wrote in message news:uv****@msn .com:
Hi

I deploy a Windows Service which requires a reboot after setup. The setup

project, however, does not automatically recognize this requirement.How do
I
force a reboot (or set a reboot property) in the setup project (VS 2003)?

Any hints are appreciated.

Thanks, Urs


Nov 21 '05 #3
Thanks. I'll download the SDK then.

"scorpion53 061" <sc************ @nospamhereyaho o.com> schrieb im Newsbeitrag
news:ud******** *******@TK2MSFT NGP14.phx.gbl.. .

Hi,

You need orca.exe to edit the setup msi. Open the msi with orca.
Go to the properties table and right click in the table and select add new
row. Add the property REBOOT and set its value to FORCE. Set the
property
folderForm_allu sers to all if you want to install for everyone instead of
me. Orca is part of the windows installer sdk.

http://www.microsoft.com/msdownload/...sdk/sdkupdate/

or see
http://msdn.microsoft.com/library/de...oot_action.asp

"Urs Vogel" <uv****@msn.com > wrote in message news:uv****@msn .com:
Hi

I deploy a Windows Service which requires a reboot after setup. The setup

project, however, does not automatically recognize this requirement.How
do
I
force a reboot (or set a reboot property) in the setup project (VS 2003)?

Any hints are appreciated.

Thanks, Urs

Nov 21 '05 #4
Depends on what your using for an OS but if it is xp or 2003 you can shell
out the command to reboot
Shutdown /r
There are lots more options

"Urs Vogel" <uv****@msn.com > wrote in message
news:ei******** ******@tk2msftn gp13.phx.gbl...
Hi

I deploy a Windows Service which requires a reboot after setup. The setup
project, however, does not automatically recognize this requirement.How do
I force a reboot (or set a reboot property) in the setup project (VS
2003)? Any hints are appreciated.

Thanks, Urs

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4454
by: Ben Allen | last post by:
Is there a way (through a variable) to show the date of the last server reboot i.e. when PHP last started running? As I am trying to show the server uptime, which of course only works from the last reboot, therefore my %ages are very low. Cheers, Ben
5
1290
by: ray well | last post by:
hi, are reboots needed after installing mdac ? are reboots needed after installing .net framework? i'm planning out an install, and need to know what to expect. thanks,
1
1570
by: Aaron | last post by:
Not sure if this is the best spot to post this question, but I am not going to pay money to ask an installation question.... Anyways I am trying to install C# standard 2003 and it analyzes the system and then say I need to install some prerequisite stuff. So I click on the link that says that and then I get a message the that some application is already requesting a reboot. This is a brand new Compaq laptop purchased yesterday. I have...
14
1927
by: Dave | last post by:
My deployment contains sevral projects, one of which is a service. The installation does not automatically carry out a reboot at the end of the installation process, which is required to start the service. Is there any way I can put something into the deplyment project to make the target system reboot at the end of the setup? -- Dave
1
1271
by: PhilBray | last post by:
Hi, I am currently adding a deployment project to my C# solution which installs a windows service and I have been trying to find a property that will make the installer prompt the user to reboot the system once installation has completed. I would prefer to simply set a property rather than create a small application that I run at the end of the install. Does anyone know if this is possible?
3
4014
by: iamsiju | last post by:
Hi, I am facing a problem with the Perl Telnet Object. My Telnet Object hangs just after issueing reboot command on the remote host. Please help me who faced this problem !!! Thanks in advance Siju Maliakkal
3
1348
by: gnih | last post by:
Hi, I'm using VS2005 and .net 2.0, my project using Windows Installer deployment to make setup package. the question is how can i invoke a dialog let user choose reboot or not at the end of uninstall process?
2
4692
by: =?Utf-8?B?VHJhY2tz?= | last post by:
When I run my setup of a vb.net app made in VS2005 and setup made with the setup wizard and then modified in the ide, The .net 2 setup runs and installs and then asks to reboot. If you answer ok then the reboot happens and when the system comes back it says it cant find the setup1.msi file (my setup) and so wont continue and install my app. So how do I make it find setup1.msi and continue the setup after reboot (to setup my app) or even...
3
1696
by: cj | last post by:
My program shuts itself down and reboots the pc it's running on at 2:00am twice a week and has been doing so without fail for over a year. But twice in the past month it's been found running in the AM with an unhandled exception on the screen. As best I can tell this exception occurs while it's trying to reboot the pc. This has me thinking it might be nice to have it do a reboot whenever it has an unhandled exception but then again I'm...
0
9000
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4713
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2804
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.