views:

140

answers:

2

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!

+1  A: 

This will be the [SOURCEDIR] property.

This question may point you in the right direction.

dkackman
Thanks, I tried searching google and SO for bin, root, etc folders, but didn't think of Source.
Dinoo
A: 

I am bit confused of your question, in my point of view if your problem is to copy certain folders or files to where you installed setup file its very simple.

  1. Right Click Setup (Project) > Click View > click File System.
  2. A new interface is created.
  3. Right click on the Application Folder > click Add > click Folder.
  4. Specif a Folder name > Right click on the newly created folder > click Add > Click File.
  5. Select all the file that you wants to be in the setup installation folder.
  6. That's it. you are done.
Maxymus