Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / December 2005

Tip: Looking for answers? Try searching our database.

Getting at actual install directory for .NET Setup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Grant Schenck - 15 Dec 2005 18:27 GMT
I developed a C# application which needs several data files.  I want to
install them in a subdirectory of my install directory.  In addition, I want
to set some registry strings to point to these files.  I can get setup to
install the files fine.  I can set the registry string values to the correct
paths if I use something like:

[ProgramFilesFolder][Manufacturer]\[ProductName]\WaveFiles\InvalidInput.wav

However, if, at the time of install, I specify a different directory then
the proposed default then this still sets my registry key to the c:\program
files... directory.

How do I set a registry string value from setup to contain the actual
location my location was installed too?

Thanks!

Grant Schenck
carion1 - 15 Dec 2005 19:03 GMT
Don't use the registry.  Use a config file.

Signature

Derek Davis
ddavis76@gmail.com

>I developed a C# application which needs several data files.  I want to
> install them in a subdirectory of my install directory.  In addition, I
[quoted text clipped - 17 lines]
>
> Grant Schenck
Grant Schenck - 15 Dec 2005 19:27 GMT
Never mind... found it [TARGETDIR].

> I developed a C# application which needs several data files.  I want to
> install them in a subdirectory of my install directory.  In addition, I want
> to set some registry strings to point to these files.  I can get setup to
> install the files fine.  I can set the registry string values to the correct
> paths if I use something like:

[ProgramFilesFolder][Manufacturer]\[ProductName]\WaveFiles\InvalidInput.wav

> However, if, at the time of install, I specify a different directory then
> the proposed default then this still sets my registry key to the c:\program
[quoted text clipped - 6 lines]
>
> Grant Schenck

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.