fasilak
Posts: 11
Joined: Thu Mar 16, 2006 10:07 am

Conditional folder installation

Hi,

This is the folder structure of my final build of MSI

Code: Select all

Setup.msi
setup.exe
-->APPDIR [Folder]
  -->Folder 1
  --> Folder 2
  ---> Folder 3

Now I dont want folder 2 to be installed. while the MSI runs.. How can I achieve this?

I have created 3 features
folder 1 feature
folder 2 feature
folder 3 feature

I know it can be achieved through custom actions! But I dont know how?
Can you please help me out in this regards,

Thanks in advance.

:wink:
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

There is no need for a custom action.

If all the files and folders from "Folder 2" are placed in a single feature (feature 2) all you have to do is go to the "Feature Properties" pane ("Organization" page) and set the "Install Level" for this feature to 0(Disabled). The components from this feature will not be installed.

Please let me know if you have any more questions.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”