Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Update the registry during install
 

Update the registry during install

Hi,

i would like to copy the Install path directory the user types duringsetupinto a registry key.

Any suggestions?

Thanks!

Francesc

capitapicard  Wednesday, November 15, 2006 10:44 PM
Create a registry item with the value [TARGETDIR] and it will resolve at install time to the actual path.
PhilWilson  Wednesday, November 15, 2006 11:11 PM

I did three articles here that should get you going:

http://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/

http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/

http://www.simple-talk.com/dotnet/visual-studio/updates-to-setup-projects/

The main documentation for properties like TARGETDIR is in the Windows SDK/Platform SDK, although it's not too obvious that the principles behind things like [TARGETDIR] can be applied to Visual Studio setup projects.

PhilWilson  Thursday, November 16, 2006 10:44 PM
Create a registry item with the value [TARGETDIR] and it will resolve at install time to the actual path.
PhilWilson  Wednesday, November 15, 2006 11:11 PM

Phil,

thank you very much. That took care of it.

I've been brosing other threads and i have not found documentation on how to do this basic stuff.Can you point me to a good blog or forum or whatever where i can teach myself?

Francesc

capitapicard  Thursday, November 16, 2006 7:47 PM

I did three articles here that should get you going:

http://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/

http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/

http://www.simple-talk.com/dotnet/visual-studio/updates-to-setup-projects/

The main documentation for properties like TARGETDIR is in the Windows SDK/Platform SDK, although it's not too obvious that the principles behind things like [TARGETDIR] can be applied to Visual Studio setup projects.

PhilWilson  Thursday, November 16, 2006 10:44 PM

Thanks Phil, this is excellent.

Francesc

capitapicard  Saturday, November 18, 2006 1:53 AM
ok
Anonymous13087  Wednesday, March 28, 2007 12:04 PM

You can use google to search for other answers

Custom Search

More Threads

• how to add a Remote Component as my custom prerequisites
• Installer Component OnBeforeInstall Problem!
• Embedding Window Form inside IE after installing app using ClickOnce
• Installation interrupted - asp.net web application setup.exe gives error : Vista : Visual Studio 2008
• How to use VBScript as a Custom Action DLL in .net setup ?
• Cannot download the application. The application is missing required files.
• Delete application files
• Vista UAC and ClickOnce Issues
• COM isolation warnings
• Setup driver and application in VS2005