run application at power up
WinXPTalk.com Forum Index WinXPTalk.com
Forums for Windows XP users.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winxptalk.com
run application at power up

 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Embedded System
Author Message
caribou
Guest





Posted: Sun Jan 02, 2005 5:13 pm    Post subject: run application at power up Reply with quote

When my XPe boot, I want to launch my application (dos mode)

I have created a compenent (including dll), and during this creation on
"compotement designer" I check runonce, whit flag=0.

after FBA the HKLM\.....\ run... is fill correctly.

afterboot, no application active???
If I change the name of mydll.dll to mydll.zzz, during boot I have a
message error, mydll.dll is missing please reinstal......

Please where is my error!

regards
Back to top
Slobodan Brcin (eMVP)
Guest





Posted: Sun Jan 02, 2005 5:33 pm    Post subject: Re: run application at power up Reply with quote

Hi,

1. Have you tried if you can execute your application from command prompt after XPe is booted?
2. mydll.dll is this dll statically linked with your application?
3. Do you use minlogon or winlogon?
4. Are you sure that your application did not terminate itself because some service/driver that it use is not available yet?

Regards,
Slobodan



"caribou" <caribou@discussions.microsoft.com> wrote in message news:F4FB4023-B26E-4713-9D7C-4027C64DE0DD@microsoft.com...
Quote:
When my XPe boot, I want to launch my application (dos mode)

I have created a compenent (including dll), and during this creation on
"compotement designer" I check runonce, whit flag=0.

after FBA the HKLM\.....\ run... is fill correctly.

afterboot, no application active???
If I change the name of mydll.dll to mydll.zzz, during boot I have a
message error, mydll.dll is missing please reinstal......

Please where is my error!

regards
Back to top
caribou
Guest





Posted: Sun Jan 02, 2005 6:03 pm    Post subject: Re: run application at power up Reply with quote

"Slobodan Brcin (eMVP)" wrote:

Quote:
Hi,

1. Have you tried if you can execute your application from command prompt after XPe is booted?
2. mydll.dll is this dll statically linked with your application?
3. Do you use minlogon or winlogon?
4. Are you sure that your application did not terminate itself because some service/driver that it use is not available yet?

Regards,
Slobodan

1/ Yes I have try it before and after modify the registry, firts test wac

done without create the compotement.
2/ I am harward/firmware maker, I have done the ddl for my customer an
application writter, the dll is a "information pakager" for an external
device .
3/ minlogon
4/ When a big driver (cardreader) is not load I have a same error message,
the other part is TCP/IP the system is black box, with card reader, specific
remote display and TCP/IP connection to some syster system and SQLsever.
Back to top
Slobodan Brcin (eMVP)
Guest





Posted: Sun Jan 02, 2005 6:47 pm    Post subject: Re: run application at power up Reply with quote

Hi,

Try putting some messagebox on the beginning of your application. So you will gain two things from this.
1. You will verify if your application is started.
2. You will add enough of delay to make sure that everything is loaded.

Let us know if this help.

Regards,
Slobodan


"caribou" <caribou@discussions.microsoft.com> wrote in message news:06C3A597-CA93-4645-9F38-6EA378CD30B3@microsoft.com...
Quote:


"Slobodan Brcin (eMVP)" wrote:

Hi,

1. Have you tried if you can execute your application from command prompt after XPe is booted?
2. mydll.dll is this dll statically linked with your application?
3. Do you use minlogon or winlogon?
4. Are you sure that your application did not terminate itself because some service/driver that it use is not available yet?

Regards,
Slobodan

1/ Yes I have try it before and after modify the registry, firts test wac
done without create the compotement.
2/ I am harward/firmware maker, I have done the ddl for my customer an
application writter, the dll is a "information pakager" for an external
device .
3/ minlogon
4/ When a big driver (cardreader) is not load I have a same error message,
the other part is TCP/IP the system is black box, with card reader, specific
remote display and TCP/IP connection to some syster system and SQLsever.
Back to top
caribou
Guest





Posted: Mon Jan 03, 2005 6:13 pm    Post subject: Re: run application at power up Reply with quote

Hi Slobodan,

Thank for your help.

I have wrote a small application "loaderXPe.exe", this is very nice to loose
lot of time... and to mantaine the windows open to see error message :

If iI launch direct the real-application some driver is not aviable.
If I wait less than 20 seconde after full boot(loaderXPe loose 25 sec), on
driver is loaded, but the device is not ready...
One parrametre files was in the application directory, and the application
look for it in current directory, windows\system32

The time between the HKLC....run and the full boot is arround 7 secondes

This item is close!

Thanks,

Regards,

Eric
Back to top
Slobodan Brcin (eMVP)
Guest





Posted: Mon Jan 03, 2005 6:34 pm    Post subject: Re: run application at power up Reply with quote

Hi Caribou,

Actualy I jsut wanted to see if this was a problem.
Since it is you can use CMP_WaitNoPendingInstallEvents with sleep(1) in loop to wait for your system to be ready.
You don't need to loose more time than it is actualy needed.
http://groups-beta.google.com/group/microsoft.public.windowsxp.embedded/search?group=microsoft.public.windowsxp.embedded&q=CMP_WaitNoPendingInstallEvents&qt_g=1

Regards,
Slobodan


"caribou" <caribou@discussions.microsoft.com> wrote in message news:683CAFFD-D22E-4EDE-B93B-1736646FA1D0@microsoft.com...
Quote:
Hi Slobodan,

Thank for your help.

I have wrote a small application "loaderXPe.exe", this is very nice to loose
lot of time... and to mantaine the windows open to see error message :

If iI launch direct the real-application some driver is not aviable.
If I wait less than 20 seconde after full boot(loaderXPe loose 25 sec), on
driver is loaded, but the device is not ready...
One parrametre files was in the application directory, and the application
look for it in current directory, windows\system32

The time between the HKLC....run and the full boot is arround 7 secondes

This item is close!

Thanks,

Regards,

Eric


Back to top
caribou
Guest





Posted: Thu Jan 06, 2005 9:33 am    Post subject: Re: run application at power up Reply with quote

Loose more time becam a feature of our product... it's some time for the
"technician" to have a cmd.exe acces for configuration activity...
yesterday the customer has califified the sample!
Next week I will try your idea, and comme back to you.

Regards,
Eric



"Slobodan Brcin (eMVP)" wrote:

Quote:
Hi Caribou,

Actualy I jsut wanted to see if this was a problem.
Since it is you can use CMP_WaitNoPendingInstallEvents with sleep(1) in loop to wait for your system to be ready.
You don't need to loose more time than it is actualy needed.
http://groups-beta.google.com/group/microsoft.public.windowsxp.embedded/search?group=microsoft.public.windowsxp.embedded&q=CMP_WaitNoPendingInstallEvents&qt_g=1

Regards,
Slobodan


"caribou" <caribou@discussions.microsoft.com> wrote in message news:683CAFFD-D22E-4EDE-B93B-1736646FA1D0@microsoft.com...
Hi Slobodan,

Thank for your help.

I have wrote a small application "loaderXPe.exe", this is very nice to loose
lot of time... and to mantaine the windows open to see error message :

If iI launch direct the real-application some driver is not aviable.
If I wait less than 20 seconde after full boot(loaderXPe loose 25 sec), on
driver is loaded, but the device is not ready...
One parrametre files was in the application directory, and the application
look for it in current directory, windows\system32

The time between the HKLC....run and the full boot is arround 7 secondes

This item is close!

Thanks,

Regards,

Eric





Back to top
 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Office Forums Access Forums Windows Server Exchange Server Help
New Topics Powered by phpBB