Results 1 to 7 of 7

Thread: Setup Builder and XML files

  1. #1

    Default Setup Builder and XML files

    Hello Friedrich,

    Does SB have the ability to read and edit XML files?

    Also, I do not remember where I saw it in the SB IDE but isn't there a
    dialog which asks the question about installing an app for a specific
    user or "all users?"

    Thanks my friend!

    Don

  2. #2

    Default Re: Setup Builder and XML files

    Hi Don,

    >
    > Does SB have the ability to read and edit XML files?
    >

    There is no built-in support for XML files yet.

    > Also, I do not remember where I saw it in the SB IDE but isn't there a
    > dialog which asks the question about installing an app for a specific user
    > or "all users?"
    >
    > Thanks my friend!

    In modern Windows operating systems (which support UAC), the "Install for
    Joe User only" / "Install For All Users" option is obsolete. Of course, it
    is still possible with SetupBuilder, but the question is, does your own
    application really support this installation type?

    - Do you have to write to protected areas from the installer (e.g.
    HKEY_LOCAL_MACHINE or the Windows folder tree)?

    - Do you have to register OCX files?

    To provide a "Specific User" / "All Users" option, you have to:

    1. Create a "loader" with SetupBuilder which runs "asInvoker". Means, it
    starts (by default) without administrator execution level privileges. This
    loader displays the "Install for Joe User" or "Install for All Users"
    option.

    2. Create the "real" installer to install your application. This real
    installer will be embedded into the "loader". So you have only one
    setup.exe.

    What happens is the following: if the user selects "Joe User" then the real
    installer will be executed non-elevated to install for Joe User only. If
    "All Users" is selected, then the real installer will be executed elevated
    to install your app for all users.

    Please note that the non-elevated installer can't write to any protected
    Windows resource (HKEY_LOCAL_MACHINE, Windows folder, etc.).

    If you would like to provide such a "Specific User" / "All Users" option,
    just let me know and I can help you with this my friend.

    Friedrich

  3. #3

    Default Re: Setup Builder and XML files

    Thank you for the fast reply!

    No sir, i have no need to write to protected areas.

    I appreciate the clarification on that!!

    Don

  4. #4

    Default Re: Setup Builder and XML files

    Hi Don,

    > Thank you for the fast reply!
    >
    > No sir, i have no need to write to protected areas.
    >
    > I appreciate the clarification on that!!

    I'll develop a demo and post it within the next two hours.

    Friedrich

  5. #5

    Default Re: Setup Builder and XML files

    Hi Don,

    I have developed a single-file solution demo:

    http://www.lindersoft.com/projects/UserOption.zip

    This lets you install the application for all users (per-machine) or for the
    current user (per-user).

    If the user would like to install per-machine, the installer restarts itself
    elevated to do a machine wide setup. If the user would like to install for
    the current user, it handles the installation non-elevated.

    What do you think? Does this help?

    Friedrich
    Attached Images Attached Images   

  6. #6

    Default Re: Setup Builder and XML files

    Crafty!

    jf

  7. #7

    Default Re: Setup Builder and XML files

    Thank you!!!!!!!!

    Don

Thread Information

Users Browsing this Thread

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

Posting Permissions

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