Wrox Programmer Forums
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 8th, 2004, 09:58 AM
Authorized User
Join Date: Jan 2004
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
Default Registry

How can I create a subkey in the registry that contains the installation directory. I am using the setup project that comes with Visual Studio .NET to install my program.

Thanks in advance.
Old September 8th, 2004, 10:40 AM
Authorized User
Join Date: Jun 2003
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts

You can create it on loading your 1st form :-

objRegKey = Registry.LocalMachine.OpenSubKey("<yourregistrypat h>", True)
objRegKey.SetValue("AppPath", Application.StartupPath)


you can do this via the registry editor from the setup project :-

right click your setup project click view then select registry. From the left window select where you want the key to go.
From the right window right click -> new -> string value

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autoplay and Registry leopoldstotch VBScript 0 March 11th, 2007 12:00 PM
Registry Akmal Shah BOOK: Access 2003 VBA Programmer's Reference 1 May 25th, 2005 06:30 PM
Registry Information bmains ASP.NET 1.x and 2.0 Application Design 1 April 19th, 2004 03:15 PM
Registry jake Pro VB.NET 2002/2003 5 November 6th, 2003 04:02 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.