This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Running an app after installation at the user's level
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 04, 2008
04:40 PM
Running an app after installation at the user's level
Installscript project - Installshield 2008
I install an application (with a digital signature) at 'Required Execution Level' of Adminstrator.
After the installation I want the installed app to be launched at the user's level because otherwise anything created by the app has admin privileges associated with the files. When the user logs back in, the files created are not accessible to them unless they re-elevate the privileges. Nice unintented consequence.
I looked at LaunchApplication with LAAW_OPTION_USE_SHELLEXECUTE but my eyes started to roll in my head when I looked at ALL the parameters.
Anyone have a clear example of trying to launch an application using Installscript at the users level after the installation?
I install an application (with a digital signature) at 'Required Execution Level' of Adminstrator.
After the installation I want the installed app to be launched at the user's level because otherwise anything created by the app has admin privileges associated with the files. When the user logs back in, the files created are not accessible to them unless they re-elevate the privileges. Nice unintented consequence.
I looked at LaunchApplication with LAAW_OPTION_USE_SHELLEXECUTE but my eyes started to roll in my head when I looked at ALL the parameters.
Anyone have a clear example of trying to launch an application using Installscript at the users level after the installation?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 05, 2008
10:15 AM
It is, generally speaking, impossible for an elevated process to know what user to launch a non-elevated process as. I don't think the shell execute offers any options to specify a chosen user anyway.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)