+ Reply to Thread
Results 1 to 5 of 5

Thread: Setting _SB_FEATURESID and SB_SETUPTYPEID

  1. #1

    Default Setting _SB_FEATURESID and SB_SETUPTYPEID

    Hi all,

    My Installer (SB, of corz!) installs only an .exe (=feature1) and the same .exe with some DB and .chm files (=feature2). The feature/setup type is stored in the Registry.

    A second Script applies updates and patches to the former installation.
    To avoid stupidities by DAU's (German: Dümmste Anzutreffende Users --> Most stupid users), I do not want to let the users select the type of actualization, but fetching the formerly chosen feature/setuptype from the Registry and setting the corresponding values to _SB_SETUPTYPEID and _SB_FEATURESID.

    Yes, I know that there is a warning not to do so, but I want to make this work somehow (any other approach is highly appreciated!).

    I checked the correct settings for these two variables (values taken from the initial installation script), but it seems that the manually setted values are ignored, no matter where I set them (e.g. directly preceeding the [ Install Files ] section).

    Any hint or workaround is highly appreciated!

    Thanks in advance, regards, André

    (SB 8.1 Developer Edition. Windows 7)

  2. #2
    Join Date
    Mar 2004
    Posts
    4,308

    Default Re: Setting _SB_FEATURESID and SB_SETUPTYPEID

    André,

    To set the Setup Type or Feature(s) programmatically, you have to use the "Set Active Setup Type..." or "Set Feature State..." script functions. Never "manipulate" the %_SB_FEATURESID% and %_SB_SETUPTYPEID% runtime variables.

    Does this help?

    Friedrich

  3. #3
    Join Date
    Mar 2004
    Posts
    4,308

    Default Re: Setting _SB_FEATURESID and SB_SETUPTYPEID

    André,

    If you are interested, please see this:

    http://www.lindersoft.com/forums/showthread.php?p=68874

    Friedrich

  4. #4

    Default Re: Setting _SB_FEATURESID and SB_SETUPTYPEID

    Hi Friedrich,

    thanks a bunch! It works very nice with "Set feature state".
    Thanks also for the link with some interesting examples.

    regards, André

  5. #5
    Join Date
    Mar 2004
    Posts
    4,308

    Default Re: Setting _SB_FEATURESID and SB_SETUPTYPEID

    You are very welcome, André. Glad it's working fine now.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •