This I think is the final hurdle before I can start regularly building and using nant. 
Basically I want to vary the command line arguments of a custom action based on the OS 
that I am running. Currently I only care about the differences between Windows 2000 
and XP/Windows 2003 Server. I have found a property called VersionNT that seems to 
hold just the information that I want and it is set at install time so this will 
reflect my target machine. The problem is that I want now to vary the command line 
arguements of a custom action based on the value of the property. I want to run <if> 
or <ifnot> with in the <msi> task. Is that possible? One really brute force way would 
be to make the command line arguments themselves properties that are set by a custom 
action that is run at install time. I would rather not do that but I guess if that is 
the only way?

-----Original Message-----
From: Burton, Kevin 
Sent: Wednesday, September 29, 2004 6:48 PM
To: 'Holmes, Jim (Space Technology)'; [EMAIL PROTECTED]
Subject: RE: [Nant-users] What is the best way to tell the OS version
that I am running?


This would be perfect information. Is there a way to incorporate this in with <msi> so 
that this information is available for the TARGET machine?

Kevin

-----Original Message-----
From: Holmes, Jim (Space Technology) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 6:15 PM
To: Burton, Kevin; [EMAIL PROTECTED]
Subject: RE: [Nant-users] What is the best way to tell the OS version
that I am running?


Did you look at the <sysinfo> task?

http://nant.sourceforge.net/help/tasks/sysinfo.html

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Burton,
> Kevin
> Sent: Wednesday, September 29, 2004 6:17 PM
> To: [EMAIL PROTECTED]
> Subject: [Nant-users] What is the best way to tell the OS 
> version that I
> am running?
> 
> 
> What is the best way to tell the OS version that I am 
> running? I need to set some permissions on some registry 
> settings. For Windows NT, ASP.NET (IIS) runs as the ASPNET 
> account but for XP and Windows 2003 it runs under the 
> "NETWORK SERVICE" account. So I need to give read access to 
> some registry settings on install based on the version of OS 
> that is hosting the installation. I am assuming that I would 
> use something like <search> as part of <msi> but I am not 
> sure what registry entry to search for. Any ideas?
> 
> Thank you.
> 
> Kevin
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on 
> ITManagersJournal
> Use IT products in your business? Tell us what you think of 
> them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to 
> find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to