Run an application in a startup

  • Thread starter Thread starter Jose Reinaldo
  • Start date Start date
J

Jose Reinaldo

How can I make an application run automatically when my embedded system
starts? As the HelloWorld for example.

Thanks
J Reinaldo
Sao Paulo - Brazil
 
Run Key. My application runs a batch file then locks itself on startup:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Startup"="c:\\startup\\startup.bat"
"lock"="rundll32 user32.dll,LockWorkStation"
 
Do you know if exist only this way to run an application automatically? I
though that there was one way inside the TD or with another tool.

Heidi Linda eMVP said:
Run Key. My application runs a batch file then locks itself on startup:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Startup"="c:\\startup\\startup.bat"
"lock"="rundll32 user32.dll,LockWorkStation"

Jose Reinaldo said:
How can I make an application run automatically when my embedded system
starts? As the HelloWorld for example.

Thanks
J Reinaldo
Sao Paulo - Brazil
 
You can add that reg key to a component...you can import reg files into
component designer, though beware of anthing with spaces in as it tends to
strip them.

Jose Reinaldo said:
Do you know if exist only this way to run an application automatically? I
though that there was one way inside the TD or with another tool.

Heidi Linda eMVP said:
Run Key. My application runs a batch file then locks itself on startup:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Startup"="c:\\startup\\startup.bat"
"lock"="rundll32 user32.dll,LockWorkStation"

Jose Reinaldo said:
How can I make an application run automatically when my embedded system
starts? As the HelloWorld for example.

Thanks
J Reinaldo
Sao Paulo - Brazil
 
Would you have any link that explain how I can make this thing? Thank you.

Heidi Linda eMVP said:
You can add that reg key to a component...you can import reg files into
component designer, though beware of anthing with spaces in as it tends to
strip them.

Jose Reinaldo said:
Do you know if exist only this way to run an application automatically? I
though that there was one way inside the TD or with another tool.

Heidi Linda eMVP said:
Run Key. My application runs a batch file then locks itself on startup:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Startup"="c:\\startup\\startup.bat"
"lock"="rundll32 user32.dll,LockWorkStation"

How can I make an application run automatically when my embedded system
starts? As the HelloWorld for example.

Thanks
J Reinaldo
Sao Paulo - Brazil
 
As in you need instructions on how to create a component?

Jose Reinaldo said:
Would you have any link that explain how I can make this thing? Thank you.

Heidi Linda eMVP said:
You can add that reg key to a component...you can import reg files into
component designer, though beware of anthing with spaces in as it tends to
strip them.
automatically?
I
though that there was one way inside the TD or with another tool.

"Heidi Linda eMVP" <[email protected]> escreveu na mensagem
Run Key. My application runs a batch file then locks itself on startup:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Startup"="c:\\startup\\startup.bat"
"lock"="rundll32 user32.dll,LockWorkStation"

How can I make an application run automatically when my embedded system
starts? As the HelloWorld for example.

Thanks
J Reinaldo
Sao Paulo - Brazil
 
I need instructions how to create a component that initialize on boot
without shells or other that is not essencial. I apologize you for my poor
english.

Heidi Linda eMVP said:
As in you need instructions on how to create a component?

Jose Reinaldo said:
Would you have any link that explain how I can make this thing? Thank you.
tends
to
strip them.

Do you know if exist only this way to run an application
automatically?
I
though that there was one way inside the TD or with another tool.

"Heidi Linda eMVP" <[email protected]> escreveu na mensagem
Run Key. My application runs a batch file then locks itself on startup:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Startup"="c:\\startup\\startup.bat"
"lock"="rundll32 user32.dll,LockWorkStation"

How can I make an application run automatically when my embedded
system
starts? As the HelloWorld for example.

Thanks
J Reinaldo
Sao Paulo - Brazil
 
Hey

You open your component designer. Create a new component.
Add as registry data:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi
on\Run]
"Yourapp"="c:\yourapp\yourapp.exe"
So the name = Yourapp
Type=reg_sz
Data =c:\yourapp\yourapp.exe
Remove the "

Save your component and add it to your database.

goodluck
-----Original Message-----
I need instructions how to create a component that initialize on boot
without shells or other that is not essencial. I apologize you for my poor
english.

Heidi Linda eMVP said:
As in you need instructions on how to create a component?
this thing? Thank
you. import reg files
into spaces in as it
tends
to application
automatically?
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi
on\Run]

.
 
Ok, this is a good hint! Thanks!
But where do I put "myapp=c:\myapp\myapp.exe"?
Where do I put the line "Data=c:\myapp\myapp.exe" ?
How can I put the DLL file that my application needs?

JB said:
Hey

You open your component designer. Create a new component.
Add as registry data:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi
on\Run]
"Yourapp"="c:\yourapp\yourapp.exe"
So the name = Yourapp
Type=reg_sz
Data =c:\yourapp\yourapp.exe
Remove the "

Save your component and add it to your database.

goodluck
-----Original Message-----
I need instructions how to create a component that initialize on boot
without shells or other that is not essencial. I apologize you for my poor
english.

Heidi Linda eMVP said:
As in you need instructions on how to create a component?

Would you have any link that explain how I can make
this thing? Thank
you.
"Heidi Linda eMVP" <[email protected]> escreveu na mensagem
You can add that reg key to a component...you can
import reg files
into
component designer, though beware of anthing with
spaces in as it
tends
to
strip them.

Do you know if exist only this way to run an application
automatically?
I
though that there was one way inside the TD or with another tool.

"Heidi Linda eMVP" <[email protected]> escreveu na mensagem
Run Key. My application runs a batch file then locks itself on
startup:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi
on\Run]
"Startup"="c:\\startup\\startup.bat"
"lock"="rundll32 user32.dll,LockWorkStation"

How can I make an application run automatically when my embedded
system
starts? As the HelloWorld for example.

Thanks
J Reinaldo
Sao Paulo - Brazil


.
 
Hey jose

For your first question. Open the target designer. Put a
registry key with the: Extra Registry Data. Use the add
function to add one key. Browse the the key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi
on\Run]
In the box value name put the name of your app, example
myapp
Change the type to reg_sz.
Put in the value box the path of your app in your build,
like c:\myapp.exe.

The dll and the rest of your application is already in
your build. This key is meant to start an application that
is installed.

-----Original Message-----
Ok, this is a good hint! Thanks!
But where do I put "myapp=c:\myapp\myapp.exe"?
Where do I put the line "Data=c:\myapp\myapp.exe" ?

I meant with this line that the registry value must be
c:\myapp\myapp.exe

good luck
 
Back
Top