Can I eliminate folders from an installation.

Got a problem you cannot solve? Try here.
Post Reply
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Can I eliminate folders from an installation.

Post by bokkie »

The attached screencap shows an example folder I'm testing my installer on. I have about 200 of them in total I want to install. Now, there are some files and subfolders I don't want to install. For example, in the screencap I've marked with an X the items I don't want to install. As you can see I don't want to include some files and for the most part the standard VS produced bin and obj folders which in turn may have subfolders inside them. But, I do want to include the Properties folders for example. I tried adding wildcards to exclude them but they still get created.

Is there a simple way I can do this in the IDE without having to go through all 200 VS.Net projects and cherry pick the files and folders I only require?
Attachments
Example folder listing.
Example folder listing.
Example folder.jpg (53.19 KiB) Viewed 3301 times
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Can I eliminate folders from an installation.

Post by giaviv »

Dear Peter,

How are you installing these files exactly?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Can I eliminate folders from an installation.

Post by bokkie »

Hi Aviv. I've attached another screencap showing what I've tried so far. I've never had a need to be selective about the folders I use before so this is the first time I'm looking into it.
Attachments
Screencap.jpg
Screencap.jpg (141.56 KiB) Viewed 3297 times
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Can I eliminate folders from an installation.

Post by bokkie »

Aviv,

I think I've partly answered my question once I appreciated the syntax in the MSIcode of the Install Files statement. That got me thinking that perhaps the best way is for me to write a .Net program that recursively processes all the files and folders in my source folders. I can then do the wildcard checks for files and subfolders I don't want. Those that remain I can copy to another location and then have that location as the source of my Install Files. That would certainly work providing I remember to repopulate the (temporary) source folders before I rebuild my setup. On paper that should work.

If you come up with another alternative I'll be glad to hear about it.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
Post Reply