Roundup Tracker - Issues

Issue 2550719

classification
Title: Install on Win 7, fails if not run as administrator
Type: Severity: minor
Components: Installation Versions: 1.4
process
Status: new Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ber, cscortes
Priority: Keywords:

Created on 2011-08-15 14:34 by cscortes, last changed 2011-08-16 18:50 by ber.

Messages
msg4375 (view) Author: [hidden] (cscortes) Date: 2011-08-15 14:34
When you go through the install process, you need to run the
installer as administrator (at least on Windows 7).  Otherwise some
registry values do not get set ( it tells you it fails to do so with
error messages). 

Don't know why, but the installer should be able to
request administrator or notify the user it needs admin.

The work around is to right click the icon with the shift key pressed
and select "run as administrator".
msg4378 (view) Author: [hidden] (ber) Date: 2011-08-15 15:09
Luis, 

I guess that quite a few people already believe that installation
should always happen as administrator. But you are right in that the
installer should give a reasonable message.
msg4380 (view) Author: [hidden] (cscortes) Date: 2011-08-16 15:37
I think, if you are using ISS installer, that you need to tell it to run
as administrator for the PrivilegesRequired flag.  Seems like a trivial
change to me.  What do you think??

=================================================================

here is a copy of their documentation:

A typical Inno Setup installation running on Windows NT/2000/XP/2003
does not require administrative or "power user" privileges. However,
there are exceptions as noted below.

Things that require administrative privileges on both Windows
NT/2000/XP/2003:

    Using "PrivilegesRequired=admin" in the script's [Setup] section.
This causes Setup to abort with an error message if the user lacks
administrative privileges.
    Using the "restartreplace" flag in the [Files] section. This flag
causes Inno Setup to call the MoveFileEx function, which attempts to
write to "HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Control\
Session Manager". Write access to this key is restricted to Administrators.
    Writing to any key under HKEY_USERS\.DEFAULT using the [Registry]
section. Write access to this key is restricted to Administrators.

Things that require either administrative or "power user" privileges on
Windows 2000/XP/2003:

    Using "PrivilegesRequired=poweruser" in the script's [Setup]
section. This causes Setup to abort with an error message if the user
lacks either administrative or "power user" privileges.
    Using the "regserver" flag in the [Files] section. In most cases
registering a DLL involves writing to HKEY_CLASSES_ROOT, a privilege not
granted to ordinary users.
    Using the "sharedfile" flag is the [Files] section. This flag causes
Inno Setup to create/update a value in "HKEY_LOCAL_MACHINE\ SOFTWARE\
Microsoft\ Windows\ CurrentVersion\ SharedDLLs". Ordinary users are not
allowed to write to that key.
    Using the FontInstall parameter in the [Files] section.
    Writing to any key under HKEY_LOCAL_MACHINE or HKEY_CLASSES_ROOT
using the [Registry] section. Ordinary users are not allowed to write to
those keys.
msg4381 (view) Author: [hidden] (ber) Date: 2011-08-16 18:50
> I think, if you are using ISS installer, that you need to tell it to run
> as administrator for the PrivilegesRequired flag.  Seems like a trivial
> change to me.  What do you think??

Sounds good, if you prepare a patch I'm willing to commit it.
I haven't done an Innosetup run for a long while.
Ideally we would also find someone to test the patch.

Thanks again for looking into this!
History
Date User Action Args
2011-08-16 18:50:14bersetmessages: + msg4381
2011-08-16 15:37:11cscortessetmessages: + msg4380
2011-08-15 15:09:58bersetnosy: + ber
messages: + msg4378
severity: normal -> minor
type: compile error ->
2011-08-15 14:34:56cscortescreate