You can't use a custom action with VS setup projects because as was mentioned, VS custom actions get called basically when the install is pretty much finished. The reason you can't use the setup project's Search Target System for this is probably because you mentioned searching for a *key* not an data value. If you were looking for an item under a key, Search Target Machine can do that, setting a property that you then use as the property associated with a custom folder.
See if there's anything here that helps: http://www.simple-talk.com/2005/04/25/getting-started-with-setup-projects/ Phil Wilson -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Petko Sent: Friday, December 02, 2005 9:00 AM To: [email protected] Subject: Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation This does not solve my problem, because custom actions can be run after the installation. I need this before the real installation. When the setup wizard runs, the second or third form is about the directory, where program will be installed. I need to read value from registry and set the property before this form is displayed, to have directory predefined. It really seems, this can't be done using VS2003, but I need to use some 3rd party installer tool. Ok, thanks for the ideas anyway, Stano. Peter Ritchie wrote: >See "Walkthrough: Creating a Custom Action" in the "Deploying with >Visual Studio.NET" help. (online at >http://msdn.microsoft.com/library/default.asp? >url=/library/en-us/vsintro7/html/vxwlkwalkthroughcreatingcustomaction.a >sp or tinyurl-ized: http://tinyurl.com/eyvbs) It's an example in >Visual Basic; but using C# instead would be trivial. > >http://www.peterRitchie.com/ > >On Fri, 2 Dec 2005 15:25:56 +0100, =?ISO-8859-2?Q?Stanislav_Pe=BBko?= ><[EMAIL PROTECTED]> wrote: > > > >>Do you have link to some resources about this? >> >>Stano >> >> >>Baris Acar wrote: >> >> >> >>>Well, >>>As far as I remember you can plug some of your routines in your setup >>>project, thus reach any framework class including Registry. >>> >>>baris >>> >>> >>> > >=================================== >This list is hosted by DevelopMentorŽ http://www.develop.com > >View archives and manage your subscription(s) at >http://discuss.develop.com > > > > =================================== This list is hosted by DevelopMentorŽ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŽ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
