Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Alex Smotritsky
I didn't know about Wix, is it really helpful? -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Eames, Andrew Sent: Friday, December 02, 2005 3:23 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Reading registry k

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Vince P
Do you plan for the case where somehow the application makes it way onto a machine via a means other than Windows Installer? What will your app do when the stuff you want to do during Setup hasn't been done? -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PRO

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Wilson, Phil D
I think perhaps you're overestimating what Installer classes do. MSI setups existed before .NET came along. The vast majorty of install work (copying files, registering COM classes, type libraries, installing Services, starting/stopping Services, file extension handlers, putting things in the reg

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Peter Ritchie
As far as I can tell, there is at least one Installer-derived class whose Install override peforms the file copy. If you could get your Installer- derived object to be the first item in the Installers collection you should be able to do something before the file copy. It that's correct, you shoul

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Eames, Andrew
While we're on the subject of setup projects being lame, if you want to localize your installer, you need create a new project for every culture you want to localize into - for this reason alone, we decided to go with Wix Andrew -Original Message- From: Discussion of advanced .NET topics.

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Wilson, Phil D
It *is* pretty basic to want to do something before files are copied, and people do it all the time, but VS setup projects have never exposed all the functionality of Windows Installer and MSI files. There are a whole bunch of tools to create MSI files these days, some expensive, some free (like

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Peter Ritchie
I haven't used them personally; but, does anyone know if an "installer class" has the same limitation as a "custom action". Or, is a "custom action" implemented as an "installer class"? Seems pretty basic to be able to do something before files are copied during deployment. On Fri, 2 Dec 2005 1

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Wilson, Phil D
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 a

Re: [ADVANCED-DOTNET] Gacutil problems

2005-12-02 Thread Peter Partch
In answer to the question about why VS seems to be ignoring the environment path setting (to find gacutil): Visual Studio .Net 2003 ignored the environment settings by default and I'm assuming VS 2005 does the same. You probably need to keep the path set in your post build step or launch VS with

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Stanislav Peťko
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

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Ryan Reid
If I understand you correctly, I think you need some sort of bootstrapper to accomplish this. If it's really this simple, then you could write a simple console application that read the key and then called msiexec with the TARGETDIR specified on the command line. If you could ensure that you alread

Re: [ADVANCED-DOTNET] Gacutil problems

2005-12-02 Thread Christopher Reed
I am able to use GACUTIL.EXE directly; however, I installed the SDK first, prior to VS 2005, so my path is: C:\Program Files\Microsoft.NET\SDK\v2.0\Bin When I updated by Path environment variable, I used the variable information contained the SDK batch files. I believe that while the paths are d

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Peter Ritchie
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.asp or tinyurl-ized: http://tinyurl.com/eyvbs) It's an example in Visual Basic

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Baris Acar
Stano, As far as I remember (it has been almost 2 years since I struggled with it :) ), you must be able to do it using custom actions. Some part of your dll must be attributed with setup specific attributes. Before_install, after_install events are in your reach then... baris On 12/2/05, Stani

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Stanislav Peťko
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 On 12/2/05, Stanislav Peťko <[EMAIL PROTECTED]> wrote: This is not my case,

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Baris Acar
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 On 12/2/05, Stanislav Peťko <[EMAIL PROTECTED]> wrote: > This is not my case, because I have "setup project" (deployment), not > windows application projec

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread David Lanouette
OH, I think I understand now. You want to use an existing value as a "default" in one of your setup dialogs? [Disclosure: I'm no expert on setup tools] If so, I think it will depend on your setup tool. I don't think you can do that with the VS.NET setup project. You may have to use a 3rd party

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Stanislav Peťko
This is not my case, because I have "setup project" (deployment), not windows application project, so I do not have any class in it and it uses standard setup dialogs. Stano. David Lanouette wrote: Take a look at the Registery class. It has methods to read and write entries in the registery

Re: [ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread David Lanouette
Take a look at the Registery class. It has methods to read and write entries in the registery. Getting it into a property in one of your classes will require writing a little code - maybe in a constructor. HTH. On 12/2/05, Stanislav Peťko <[EMAIL PROTECTED]> wrote: > Hello everyone. > > I have

[ADVANCED-DOTNET] Reading registry key and writing it into propety during installation

2005-12-02 Thread Stanislav Peťko
Hello everyone. I have a setup project in VS.NET 2003. I know how to write a registry key during installation. But I already need the opposite. I need to read a key from registry and write its value into some property. To be concrete, I need to read a value from HKLM\Software\[Manufacturer]\SomeK