Hi there,
I have made a setup project. Now when I install this product, it will create folder in "C:\Program Files\[PRODUCT NAME]\.........." as this is the default path. But user can customize this path. I need to find that where the product is installed after setup becuase I need to use that path dynamically in my code.
Please reply.
Thanks
Alistair ThrussellPosted Aug 22, 2007, 7:42 AM
String path = Environment.CurrentDirectory;
You can also use Environment to get things like machine name and current user name...blah blah blah
BYPsoftPosted Aug 22, 2007, 5:42 AM
from your code you can use
string startupPath = System.Reflection.Assembly.GetEntryAssembly().Location;