|
-
Sep 9th, 2007, 05:14 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2005] - Reboot Check
In my application the user must reboot the pc, after the first usage...
What's the best way, to see if the user really did the reboot?!
-
Sep 9th, 2007, 05:39 AM
#2
Re: [2005] - Reboot Check
Well for starters, why do you need the user to reboot?
-
Sep 9th, 2007, 05:56 AM
#3
Thread Starter
Frenzied Member
Re: [2005] - Reboot Check
The application adds a key to registry in the run key, to start with windows.
See this -> My App
-
Sep 9th, 2007, 07:21 AM
#4
Re: [2005] - Reboot Check
That doesn't make any sense. Your app is running so you need the user to reboot so that your app can run? If it's already running what's the point of that? Even if it's another app you want to run, you just put the path in the registry so you know what it is, so why not just call Process.Start to run it? I can't see that there's a need to reboot just to run this app that you can just run anyway.
-
Sep 9th, 2007, 08:09 AM
#5
Thread Starter
Frenzied Member
Re: [2005] - Reboot Check
i'll try to explain...
the application runing in normal use, it's fullscreen and the user can't access anything (start,task,etc)...
But in the first run of the program i need to create the user account, configure the registry with some data, add the autologon, add the autorun, but all this things must be done before the application starts in fullscreen, so i detect if it's the first time the application runs then after all configurations i need that the user restart the system to the application starts like i want.
-
Sep 9th, 2007, 08:19 AM
#6
Thread Starter
Frenzied Member
Re: [2005] - Reboot Check
-
Sep 9th, 2007, 09:38 AM
#7
Re: [RESOLVED] [2005] - Reboot Check
Would you mind sharing your solution so that others can get help from this thread in the future?
-
Sep 9th, 2007, 10:06 AM
#8
Thread Starter
Frenzied Member
Re: [RESOLVED] [2005] - Reboot Check
Simple...
I have a folder in registry with all that info of my application, when the configuration phase ends, i create 2 new keys in the registry and one file.
1 - In my application folder create one value (ex. Reboot)
2 - Other in the RunOnce with this command "regedit.exe /s |AppDir|\file_to_remove.reg"
3 - Create in my application folder one file (file_ro_remove.reg) with something like this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\MyAPP]
"Reboot"=-
Then when the windows starts it calls the reg file that deletes the Reboot value in the registry
Last edited by mickey_pt; Sep 9th, 2007 at 10:10 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|