How can I implement the executing when turning on the computer during the deployment
-
there seems to be some code to operate the registrykey(add a key in "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"),but how can I use these codes or where can I use them in the deployment project. and in the deployment project,there is also registry management in the deployment,can I set the attributes to implement the executing of the application when turning on the computer. joypain
-
there seems to be some code to operate the registrykey(add a key in "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"),but how can I use these codes or where can I use them in the deployment project. and in the deployment project,there is also registry management in the deployment,can I set the attributes to implement the executing of the application when turning on the computer. joypain
I think you answered your own question there... The Deployment project's registry editor.
Try code model generation tools at BoneSoft.com.
-
I think you answered your own question there... The Deployment project's registry editor.
Try code model generation tools at BoneSoft.com.
I add a new item in HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\ CurrentVersion\Run,and then I add a key, and set the key value to the path of the application,can it work? by the way how can I get the path of the application in the registry editor and write it to the keyvale? joypain
-
I add a new item in HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\ CurrentVersion\Run,and then I add a key, and set the key value to the path of the application,can it work? by the way how can I get the path of the application in the registry editor and write it to the keyvale? joypain
Looking at the properties of the
Application Folder
in File System, the default location is probably something like this...[ProgramFilesFolder][Manufacturer]\[ProductName]
which is equal to this...
[TARGETDIR]
I don't know of a way to get the EXE's name, but you should know what that is anyway. So add your reg string with a value like this...
[TARGETDIR]myExe.exe
Try code model generation tools at BoneSoft.com.
-
Looking at the properties of the
Application Folder
in File System, the default location is probably something like this...[ProgramFilesFolder][Manufacturer]\[ProductName]
which is equal to this...
[TARGETDIR]
I don't know of a way to get the EXE's name, but you should know what that is anyway. So add your reg string with a value like this...
[TARGETDIR]myExe.exe
Try code model generation tools at BoneSoft.com.
-
"[TARGETDIR]" works!:) I've been searching on the internet and msdn for a few days to solve the problem.Thank you for your guide! joypain
Sure. I wish I could find a list of all the variables that are available, but those are the only 4 I'm aware of. That may be all of them.
Try code model generation tools at BoneSoft.com.