P1R4T3 Posted July 21, 2006 Share Posted July 21, 2006 Hello everybody. Ive just created a CD and Im reviewing some mistakes. Most of them have been corrected but Im having a little problem after installing Visual Task Tips.Here's part of my runonceex:REG ADD %KEY%\035 /VE /D "Visual Task Tips" /fREG ADD %KEY%\035 /V 1 /D "%PP%\VISUALTASK\VisualTaskTips_20.exe /S" /fIt installs without any problem but I want it to start with windows.I've added a key to HKCU\Run which points out to "c:\program files\..."The problem here is that this registry key is valid only if the %programfiles% directory is found on C:\. Problems will arise of I'm installing windows on drive other than c:\Is there any way I can make this app start with windows?Thanks. Link to comment Share on other sites More sharing options...
mazin Posted July 22, 2006 Share Posted July 22, 2006 Add a script to your batch that creates that reg key, that is; do not use a reg file to import the key. Link to comment Share on other sites More sharing options...
ckislam Posted July 22, 2006 Share Posted July 22, 2006 hiREG ADD %KEY%\035 /V 1 /D "%PP%\VISUALTASK\VisualTaskTips_20.exe /S" /fhas to be changed toREG ADD %KEY%\035 /V 1 /D "%PP%\VISUALTASK\VisualTaskTips_20.exe" /S /f Link to comment Share on other sites More sharing options...
P1R4T3 Posted July 22, 2006 Author Share Posted July 22, 2006 Thanks for the reply.I'll try both your recommendations guys and I'll let you know.Thanks. Link to comment Share on other sites More sharing options...
mazin Posted July 22, 2006 Share Posted July 22, 2006 This code is one line, not two lines:REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Run/v VTTips /d "%SystemDrive%\Program Files\YourAppFolder\YourApp.EXE" -SomeSwitchNote:1- VTTips is a mere name. You can change it as you like.2- YourAppFolder is the name of directory under "Program Files" where your app is installed.3- YourApp.EXE is the executable of your app that you want to load when Windows starts.4- You can use %ProgramFiles% instead of %SystemDrive%\Program Files, but I like the latter one.5- If no switches are needed to start your app in queit mode, then delete -SomeSwitch.6- Again, the whole script above is in one line. Link to comment Share on other sites More sharing options...
P1R4T3 Posted July 22, 2006 Author Share Posted July 22, 2006 So I can run it like this:REG ADD %KEY%\035 /VE /D "Visual Task Tips" /fREG ADD %KEY%\035 /V 1 /D "%PP%\VISUALTASK\VisualTaskTips_20.exe /S" /fREG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Run/v VTTips /d "%SystemDrive%\Program Files\VisualTaskTips\VisualTaskTips.EXE"Thanks for the help man.You've saved me lots of time on this saturday. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now