Search code examples
c#visual-studio-2008visual-studio-2010windows-installersetup-deployment

Custom setup project for "Setup and Deployment Visual Studio"- How to get the contents of the folder where the .msi file resides?


Does anyone know how to find the path of the installer while it is installing?

My goal is to get either none, 1, or 2 folders that are also in the same folder with the setup, and copy them to a destination the user chooses before installing. Those folders may or may not be there.

Through lots of pain I have found out how to use the custom actions through installer classes, and even with that its still ugly, but cannot go further unless I can check whats in the same folder with the installer. I'm about to throw a kitchen sink at how difficult the process is for making a custom setup.

Any help or suggestions in this matter will be greatly appreciated!


Solution

  • This will be the [SOURCEDIR] property.

    This question may point you in the right direction.