PDA

View Full Version : Have installation detect a drive for installation



the_grove_man
08-23-2010, 05:26 PM
We have a requirement for a C drive or D drive installation for one of our programs. What I need the installation to do is if the installation detect a D drive that has a certain folder structure like so:

D:\AppData

If it finds it, it will install it there. If it doesn't find it, it will install it here:

C:\AppData

It is a .NET 3.5 program

Kevin.Wan
08-23-2010, 08:37 PM
ExistsDir("D:\\AppData");

the_grove_man
08-24-2010, 09:56 AM
Thank you.