PDA

View Full Version : Wish: Sometimes skip a folder



NewsArchive
10-18-2012, 12:17 AM
We have a rather largish solution with many exe's and stuff. Instead of
offering separate installers for each part of the solution we've got one big
installer with everything in it. Now, sometimes an update affects only part
of the solution and it would be nice to be able to exclude whats not
relevant - without deleting it from the script!

I know it's possible to skip a file if not already on the target machine.
It's also possible to combine that with "never replace" and the file will
effectively _not_ be installed or updated. But I can't do that with a
folder.

Part of our solution is a NetTalk web app and the accompanying web-folder
can be huge. It would be nice with a "Skip" check box on the Conditions tab
of the Folder Properties (and it wouldn't hurt on the File Properties
either).

Just a wish.
Peter

NewsArchive
10-18-2012, 12:18 AM
Peter,

>
> Just a wish.
>

Very easy to do. Just put an "If" Statement around it and you are done.

Friedrich

NewsArchive
10-18-2012, 12:18 AM
Hi Friedrich,

Yes, of course. What did you think I was asking? <g>

Peter

NewsArchive
10-18-2012, 12:19 AM
BTW, you have so many completely different options to handle this scenario.
But you need a deployment strategy.

You can add the folder tree to a Feature, assign the Feature to a Setup Type
and then enable/disable it with a single command ("Set Active Setup
Type...").

Or you can use Features and Setup Types for a new install and for an update.
The new install will install all Features, the update will skip specific
Features that are only relevant for new installs. You can do all this from
the same script. No need to delete anything.

Hope this helps.

Friedrich

NewsArchive
10-18-2012, 12:19 AM
Helps a lot!

>But you need a deployment strategy
is the key.

Thanks
Peter

NewsArchive
10-18-2012, 12:20 AM
Similar to the attached screenshots.

Add folders, files, shortcuts, etc. that you need for both new and update
installs to the "Always Install" Feature. Add new install specific stuff to
the "New Install Only" Feature and update specific stuff to the "Update
Install Only" Feature.

The "New Install Only" Feature is part of the "New Install" Setup Type. The
"Update Install Only" Feature is part of the "Update Install".

At runtime, you can then decide whether this is a new install or an update.
If it is a new install, set the active Setup Type to "New Install" and it
will install all objects from the "Always Install" and the "New Install
Only" Features.

Set Active Setup Type to "New Install"

If it is an update, set the active Setup Type to "Update Install" and it
will install all objects from the "Always Install" and the "Update Install
Only" Features.

Set Active Setup Type to "Update Install"

Friedrich