Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > MSI - Adding registry key for start up
 

MSI - Adding registry key for start up

Hi everyone,
I'm working on an MSI installer and I would like the installer to add a registry key so that the application it installs starts with windows.

So I've added keys to the registry settings point to the run key:

HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Run

Now I can add the installation directory easily enough using [TARGETDIR] but I also want to be able to add the application name to this key so that the value would be something like:

"[TARGETDIR]\[<What goes here?>]"

I know that doing this will add the start up settings but I don't know any of the variables that go in the Brackets [] except for TARGETDIR and PROGRAMFILES

A straight up answer would be good, but also a link to a page containing a list of the Bracket Variable would be most appreciated.

Many Thanks.
Do Crabs Think We Walk Sideways??
Tyranin  Friday, September 11, 2009 10:15 AM
You're in the right track, the registry value would be [TARGETDIR]your.exe. There's no need for the \.

I must be missing something here - don't you know the name of the exe you want to put in there?
Phil Wilson
  • Marked As Answer byTyranin Saturday, September 12, 2009 4:05 PM
  •  
PhilWilson  Friday, September 11, 2009 10:38 PM
You're in the right track, the registry value would be [TARGETDIR]your.exe. There's no need for the \.

I must be missing something here - don't you know the name of the exe you want to put in there?
Phil Wilson
  • Marked As Answer byTyranin Saturday, September 12, 2009 4:05 PM
  •  
PhilWilson  Friday, September 11, 2009 10:38 PM
ooh right is that it? I was looking for something that takes the output and adds it in in the same way you can fill the deployment folder using the "Use output from <applicationName>". I didn't think it'd be that simple. Cheers for the reply.
Do Crabs Think We Walk Sideways??
Tyranin  Saturday, September 12, 2009 4:05 PM

You can use google to search for other answers

Custom Search

More Threads

• VS2008 setup project with dynamic localization
• setup/deployment using windows Installer
• Error received after installing SSL cert on DB server...
• Error during installation
• VS 2008 SP1, Click Once, Prerequisites, Client Profile option + 3.5 SP 1 option
• ClickOnce Deployment / MSI Installer
• ClickOnce WindowsService Publication
• VS 2008 - bug in Walkthrough: Deploying a Windows-based Application
• FileNotFoundException
• Urgent: Mage.exe Issue with -RequiredUpdate