View Full Version : Failure to add Start Menu asInvoker
musabio
05-23-2021, 11:37 PM
I created an install package whose UAC Execution Level is set to "asInvoker" to avoid requiring elevation. (It doesn't install any modules into protected locations, except the Start Menu.) Under Windows 10 it works fine for non-administrator users, but when run by a administrator, it fails to add the Group and Program items to the Start Menu.
Does that make sense? Is there a way around? Can I request elevation only for administrator users?
Thanks,
Jack
linder
05-24-2021, 07:06 AM
Jack,
to handle a real asInvoker "per-user" (instead of a "machine wide") install, you can switch the installer into "per-user mode" and this will create the Add/Remove Programs entry and Shortcuts for the current user.
1. Set "UAC Execution Level" to "asInvoker" and make sure you do not install into a "protected" folder.
2. In the Script Editor, use "Set Installer Flag..." to switch the installation into per-user mode (do not mark the "Set Flag" checkbox option for the $SB_ALLUSERFLAG$" flag).
5031
This will create a "per-user" item for the current user.
Does this help?
Friedrich
musabio
05-24-2021, 11:13 AM
Friedrich -
Worked like a charm! Thank you!
-Jack
linder
05-24-2021, 01:24 PM
Jack,
PERFECT! Thanks for the update.
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.