By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,361 Members | 1,929 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,361 IT Pros & Developers. It's quick & easy.

store install folder to registry not possible

P: n/a
To anyone who is willing and able to help me!

I have developed a Windows application in VB .NET and wish to deploy it from
a CD using a typical install program. I have created a deployment project
in VS .NET, and all works as expected, except for one thing.

The requirement is that I need to record the folder selected by the user
during install as where the VB program application will be installed to,
into the registry key:
HKEY_LOCAL_MACHINE\Software\[Manufacturer]\InstallPath.

I have entered [TARGETDIR] into the Value field of a registry key I created
in the Registry Editor (within the set up project). But alas, when compiled
and executed, the literal string [TARGETDIR] is stored rather than the
actual folder name!

Surely I am not the first person who has this problem or needs this
requirement?

Kindest Regards

Brent
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I know the install project in VS.NET is very limiting. You might try
creating a custom action that will take that path and add it to the
registry.

"Brent Shire" <br***@softpac.biz> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
To anyone who is willing and able to help me!

I have developed a Windows application in VB .NET and wish to deploy it from a CD using a typical install program. I have created a deployment project
in VS .NET, and all works as expected, except for one thing.

The requirement is that I need to record the folder selected by the user
during install as where the VB program application will be installed to,
into the registry key:
HKEY_LOCAL_MACHINE\Software\[Manufacturer]\InstallPath.

I have entered [TARGETDIR] into the Value field of a registry key I created in the Registry Editor (within the set up project). But alas, when compiled and executed, the literal string [TARGETDIR] is stored rather than the
actual folder name!

Surely I am not the first person who has this problem or needs this
requirement?

Kindest Regards

Brent

Jul 21 '05 #2

P: n/a
Thank you for the suggestion. I created a custom action that calls a small
VB program I wrote, which accepts a command line argument (from the
Installer which passes the install folder via the [TARGETDIR] value as an
argument to the command line) and the small VB program then retrieves the
command line argument and updates the registry accordingly.

I am a happy chappy now :-)

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ur*************@TK2MSFTNGP10.phx.gbl...
I know the install project in VS.NET is very limiting. You might try
creating a custom action that will take that path and add it to the
registry.

"Brent Shire" <br***@softpac.biz> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
To anyone who is willing and able to help me!

I have developed a Windows application in VB .NET and wish to deploy it

from
a CD using a typical install program. I have created a deployment project in VS .NET, and all works as expected, except for one thing.

The requirement is that I need to record the folder selected by the user
during install as where the VB program application will be installed to,
into the registry key:
HKEY_LOCAL_MACHINE\Software\[Manufacturer]\InstallPath.

I have entered [TARGETDIR] into the Value field of a registry key I

created
in the Registry Editor (within the set up project). But alas, when

compiled
and executed, the literal string [TARGETDIR] is stored rather than the
actual folder name!

Surely I am not the first person who has this problem or needs this
requirement?

Kindest Regards

Brent


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.