Jump to content

Visual Task Tips


P1R4T3

Recommended Posts

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" /f
REG ADD %KEY%\035 /V 1 /D "%PP%\VISUALTASK\VisualTaskTips_20.exe /S" /f

It 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


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" -SomeSwitch

Note:

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

So I can run it like this:

REG ADD %KEY%\035 /VE /D "Visual Task Tips" /f
REG ADD %KEY%\035 /V 1 /D "%PP%\VISUALTASK\VisualTaskTips_20.exe /S" /f
REG 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. :thumbup

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...