PDA

View Full Version : Setup Builder and XML files



NewsArchive
02-07-2019, 06:23 AM
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

NewsArchive
02-07-2019, 06:23 AM
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

NewsArchive
02-07-2019, 09:14 AM
Thank you for the fast reply!

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

I appreciate the clarification on that!!

Don

NewsArchive
02-07-2019, 09:14 AM
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

NewsArchive
02-07-2019, 09:16 AM
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

NewsArchive
02-08-2019, 08:27 AM
Crafty!

jf

NewsArchive
02-08-2019, 08:27 AM
Thank you!!!!!!!!

Don