I found the solution to writing to the registry, and thought I would post it here for sake of the archive and anyone else who was interested. There ia a "reg" command that can be executed at the command line (or assumedly from a NAnt script using an exec task).
REG.exe (NT Resource Kit, W2K Support Tools, XP) Read, Set or Delete registry keys and values The REG command was updated in NT Resource Kit supplement 2 - the syntax for Win 2K/XP is different. SYNTAX: REG QUERY RegistryPath ["String"] [/S] [/size] [/list] REG ADD RegistryPath=Value [DataType] REG UPDATE RegistryPath=Value REG DELETE RegistryPath [/FORCE] REG COPY Source [\\Machine] Dest [\\Machine] REG SAVE RegistryPath FileName REG RESTORE FileName KeyName REG LOAD FileName KeyName REG UNLOAD KeyName REG FIND [ROOTKEY\]Key [DataType] SearchStr [ReplaceStr] [-y] [-z[R]] REG DUMP RegistryPath FileName REG COMPARE [ROOTKEY\]Key [ROOTKEY\]Key [-o[M][D]] [-q] [-e] You can apply any of the above commands to a remote machine by adding \\MachineName to the command line. More at: http://www.ss64.com/nt/reg.html -Kelly > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Gary Feldman > Sent: Friday, October 07, 2005 10:08 AM > To: nant-users@lists.sourceforge.net > Subject: Re: [Nant-users] Write to the Registry > > Anderson, Kelly wrote: > > >I want to write a variable to the registry from my NAnt > script. There is > >a very nice task for reading the registry, why isn't there one for > >writing to the registry? Is it too easy to have to resort to a task? > > > >I would like to write what was built last, build numbers and > such in the > >registry, but I'm not sure what the best way of doing this would be. E-Mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Sender is not liable for any loss or damage arising from this message. The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized. ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users