Conditional Installation of .NET Applications

  • Thread starter Mr Utkal Ranjan Pradhan
  • Start date
M

Mr Utkal Ranjan Pradhan

Hi I've developped a VB.NET Windows Application. I want to install my
application in a freshly installed Windows 2000 machine. I need the
following during my application installation ...

1. Check whether .NET Framework is installed or not, if not install the
..NET Framework first
2. Check MySQL server and MySQL ODBC driver is installed or not, if not
install them
3. Check for Sound card, if not present inform to user
4. Check for printer, if not attached inform to user
5. Check the OS and the latest service pack (say Windows 2000 with SP4
minimum)
6. Check Administrator Previledge to install the application
7. Want to change the target machine's IP Address during installation

Can any one help me with the above queries ???
(plz explain in detail if possible)

Thanx 4 ur kind replay.

Mr Utkal Ranjan, New Delhi.
 
K

Ken Tucker [MVP]

Hi,

1) Plugin for vs.net 2003. Adds bootstrap to install framework in setup
projects.
http://www.gotdotnet.com/community/workspaces/workspace.aspx?ID=2F8F0A23-F529-4158-8E0A-D187D16F41F1

3) Add a reference to system.management. This will list all sound devices.
Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_SoundDevice")

moReturn = moSearch.Get

For Each mo In moReturn

Debug.WriteLine(mo("Name"))

Next

4) Same as above. Use Win32_Printer instead.

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top