View Full Version : Set Feature to install
NewsArchive
11-11-2008, 02:54 AM
Hi Friedrich,
Is there an easy way to set the feature to install? I have two features in
the install, identical except for the folder structures. I need to be able
to set the feature to install without the dialog based on other variable
settings in the script.
I'm not sure if I can use Set Variable to set the %SB_FEATURESID% and what
to set it to;)
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
NewsArchive
11-11-2008, 02:54 AM
Hi Arnór,
> Is there an easy way to set the feature to install? I have two features
> in the install, identical except for the folder structures. I need to
> be able to set the feature to install without the dialog based on other
> variable settings in the script.
>
> I'm not sure if I can use Set Variable to set the %SB_FEATURESID% and what
> to set it to;)
In SB6, it is not possible to enable/disable Features programmatically.
In SB7, there will be a new function soon to handle this (it should be
available in one of the next SB7 Beta-1 builds).
BTW, please do not modify the %_SB_FEATURESID%!
Friedrich
NewsArchive
11-11-2008, 02:55 AM
Hi Friedrich,
> In SB6, it is not possible to enable/disable Features programmatically.
Darn! Seems I'm stuck with doing two installs for C6/C7 - features would
have been a perfect way to deal with it:) I'd rather not have to deal with
manually setting conditional folders etc. Any other ideas to deal with the
Clarion6/Clarion7 folder differences?
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
NewsArchive
11-11-2008, 02:56 AM
Arnór,
>> In SB6, it is not possible to enable/disable Features programmatically.
>
> Darn! Seems I'm stuck with doing two installs for C6/C7 - features would
> have been a perfect way to deal with it:) I'd rather not have to deal
> with manually setting conditional folders etc. Any other ideas to deal
> with the Clarion6/Clarion7 folder differences?
What about the following idea:
1. Create a "Feature" for C6 and another "Feature" for C7.
2. Create a "Setup Type" for C6 and assign the C6 Feature to the C6 Setup
Type. Create a "Setup Type" for C7 and assign the C7 Feature to the C7
Setup Type.
3. Use the "Set Active Setup Type..." script function to programmatically
enable/disable support for C6/C7.
What do you think?
Friedrich
NewsArchive
11-11-2008, 02:56 AM
Hi Friedrich,
> 1. Create a "Feature" for C6 and another "Feature" for C7.
Ok, that's what I have now...
> 2. Create a "Setup Type" for C6 and assign the C6 Feature to the C6 Setup
> Type. Create a "Setup Type" for C7 and assign the C7 Feature to the C7
> Setup Type.
>
> 3. Use the "Set Active Setup Type..." script function to programmatically
> enable/disable support for C6/C7.
>
> What do you think?
Aha! So I create a setup type to attach the feature to and then set the
setup type instead of trying to set the feature! That should work:) I'd
hate to have to use two installs - goes absolutely against the fundamental
laws of the LPS<g>
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
NewsArchive
11-11-2008, 02:57 AM
Hi Friedrich,
> What do you think?
Seems to work, but it seems that each file is included twice? That would
kind of make sense, but my install went from 6.2MB to 11.3MB :(
Any ideas?
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
NewsArchive
11-11-2008, 02:57 AM
Hi Arnor
Here's an idea that might work for you... Install the set of files to a temporary
folder on target machine, then depending on your variable, copy them to approprate
path. That way they will only appear once in the installer.
John Griffiths
NewsArchive
11-11-2008, 02:58 AM
Hi John,
> Here's an idea that might work for you... Install the set of files to a temporary
> folder on target machine, then depending on your variable, copy them to approprate
> path. That way they will only appear once in the installer.
I had thought of that, but then there is an issue with the uninstaller which
would then just uninstall from the temp folder. Looks like I'll end up with
two installs, one for C7, one for the old ide.
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.