473,216 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,216 software developers and data experts.

Getting at actual install directory for .NET Setup

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
Dec 15 '05 #1
2 6317
Don't use the registry. Use a config file.

--

Derek Davis
dd******@gmail.com

"Grant Schenck" <sc******@optonline.net> wrote in message
news:OS*************@TK2MSFTNGP10.phx.gbl...
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

Dec 15 '05 #2
Never mind... found it [TARGETDIR].

"Grant Schenck" <sc******@optonline.net> wrote in message
news:OS*************@TK2MSFTNGP10.phx.gbl...
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

Dec 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Craig D | last post by:
I got really tired of unpacking a distutils package, installing then cleaning up. So I wrote distinstall.py - it reads a zip file, unpacks it, installs the bits and cleans up. I've only used it on...
3
by: RichG | last post by:
I have a new computer that has a new instalation of XP Pro then a new install of XP Office then a new XP SP2 install. I just downloaded EN_VS.NET_ENT_DEV_FULL.exe into c:\Temp and extracted it...
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
by: David Hearn | last post by:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current...
0
by: dotnetprogrammer via DotNetMonster.com | last post by:
I am using Visual Studio 2005. I wrote a Setup Project to install my application. After setup is complete, I need to get the destination folder that the user chose to install to (not the default...
5
by: seberino | last post by:
It appears that apps distributed as Python Eggs are either a single compressed blob in site-packages directory or a directory under site-packages directory. Is this ALWAYS true? So by just...
3
by: =?Utf-8?B?WmlhbmdpIEpvbmVz?= | last post by:
Hi, I m using VS .NET 2003 to create a website. Using the setup package I create a setup as well. But this setup has files with actual code in it & not pre-compiled DLLs. Please let me know...
3
by: Jean-Marc Blaise | last post by:
Hi, I've been trying for 2 hours to install in silent mode a DB2 9 runtime client. Why didn't you make this process as simple as for the CLIENT install ? It is not the same setup command, you...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.