I use VS2010 to create a setup project, I have a custom action which should create a file in My Documents folder.
But Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
returns me an incorrect value. My Documents folder was redirected to another folder in D: drive.
When I test the custom action, I fount this method returns me an empty value, but it could return me a correct value in console applications, can anyone help?