|
-
July 21st, 2009, 09:58 PM
#1
how to start an exe after reboot
Hi People,
I created and running one win32 exe.
I want to let the exe to run after the reboot the system also.So i put the entry in registry under the following path.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
In XP, It's working fine and the exe runs after the reboot also. But in the case of Vista and Windows7 it does not. Someone told i have to add manifest file.But i could not get the clue about that.
Can anyone tell me the solution to resolve this issue.
Thanks in advance.
By
Riyas
Growing developer
-
July 21st, 2009, 11:04 PM
#2
Re: how to start an exe after reboot
The format of manifest file is as below..
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
processorArchitecture="*"
version="5.1.0.0"
type="win32"
name="MyApp.exe"/>
<description>App_Name</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="*"/>
</dependentAssembly>
</dependency>
<!-- Identify the application security requirements. -->
<!-- level can be "asInvoker", "highestAvailable", or "requireAdministrator" -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="highestAvailable"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
I had also used this manifest file in my app... to give XP look to the app... an to run the application as administrator.... but the problem i faced was that even if i add the manifest file to the project... Windows defender always blocks my app when launched on startup...!!!!
Thanks,
-
July 22nd, 2009, 11:59 PM
#3
Re: how to start an exe after reboot
-
July 23rd, 2009, 06:00 AM
#4
Re: how to start an exe after reboot
Did you tried with the UAC turned off in windows vista..???
-
July 23rd, 2009, 02:47 PM
#5
Re: how to start an exe after reboot
Hi man
just try to use
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
instead of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
BYe..
-
July 24th, 2009, 02:28 AM
#6
Re: how to start an exe after reboot
If i use HKCU it's working fine.
Since i want to let my exe to run under all the users, I want to use HKLM only.
At the same time , I dont want to switch off the UAC.
Thanks in advance,
Riyas
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
|