PDA

View Full Version : Use compile variable to set UAC Execution Level



NewsArchive
03-27-2014, 07:37 AM
Hi Friedrich,

Got to say that I really love SetupBuilder. It has sooo much flexibility
and, while there is quite a learning curve to get it to jump through the
hoops, it's amazing what it can do.

Just a small tweak that would be really useful, is to be able to set the UAC
Execution Level with a compile variable. At present, I have 2 scripts - 1
for first time installers (to run as admin) - this is useful to create
folders and set the access to them, setup firewall exceptions, etc. For
existing installs I have an update install (pretty much the same without the
admin features required for a first time install) that updates the
executables (mostly) - this runs asInvoker (so does not require admin
login). The novelty of keeping 2 install scripts in sync is wearing off ;)

Another option that would be great is an xml export to compare the 2
scripts. But this would be low on the list if the above is possible.

Geoff

NewsArchive
03-27-2014, 07:37 AM
Hi Geoff,

See 'UACLEVEL' #pragma ;-)

Does this help?

Friedrich

NewsArchive
04-02-2014, 01:58 AM
Hi Friedrich,

That looks like exactly what I'm after. And I discovered the text export as
well.

It looks like I'm needing a numeric value - as requireAdministrator ends up
in a compile error (see Capture1 and Capture2). I had a look through the
Common Definitions.sbi, but could not find anything there (that would be
suitable for an equate).

Any hints at the value I need for requireAdministrator?

Thanks very much.

Geoff

NewsArchive
04-02-2014, 01:59 AM
Hi Geoff,

> That looks like exactly what I'm after. And I discovered the text export
> as well.
>
> It looks like I'm needing a numeric value - as requireAdministrator ends
> up in a compile error (see Capture1 and Capture2). I had a look through
> the Common Definitions.sbi, but could not find anything there (that would
> be suitable for an equate).
>
> Any hints at the value I need for requireAdministrator?
>
> Thanks very much.

I think you have updated to 8.1 via WebUpdate but you have not updated to
the latest documentation (Help | Check for Documentation Updates...). The
'UACLEVEL' #pragma is pretty new.

Please enter 3 to define 'requireAdministrator'.

Does this work?

Friedrich