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
- :
- How do I prevent Setup.exe from executing if user doesn't have Admin permissions
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
‎Sep 09, 2013
11:01 AM
How do I prevent Setup.exe from executing if user doesn't have Admin permissions
I have a basic MSI project that uses Setup.exe. If the user does not have Administrator permisions I want Setup.exe to stop before it even gets to the splash screen or unbundles the msi.
The MSI is set so that Administrator permissions are required to install, along with an installation Condition set to deliver a message to the user if (s)he doesn't have Administrator permissions. If I install the msi by itself (no Setup.exe) it stops and complains that the user needs administrator permissions as I expect.
The problem is that I want a message to appear when I launch Setup.exe rather than when the .msi executes. Right now, if the user doesn't have Administrator permissions, Setup.exe displays a splash screen and then stops to prompt the user for a location to store the expanded msi (cache MSI locally value set in release configuration <-desired). Finally, it notifies the user that Administrator permissions are required.
I have set the required execution level to Administrator on the Release definition Setup.exe tab but this does not seem to help.
Is there any way to do this?
Richard
The MSI is set so that Administrator permissions are required to install, along with an installation Condition set to deliver a message to the user if (s)he doesn't have Administrator permissions. If I install the msi by itself (no Setup.exe) it stops and complains that the user needs administrator permissions as I expect.
The problem is that I want a message to appear when I launch Setup.exe rather than when the .msi executes. Right now, if the user doesn't have Administrator permissions, Setup.exe displays a splash screen and then stops to prompt the user for a location to store the expanded msi (cache MSI locally value set in release configuration <-desired). Finally, it notifies the user that Administrator permissions are required.
I have set the required execution level to Administrator on the Release definition Setup.exe tab but this does not seem to help.
Is there any way to do this?
Richard
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 10, 2013
02:18 AM
Guess there's no way to have the setup.exe detect and abort the install before a splash screen is pop'd up.
What you can try is having a custom action in the very beginning of the User Interface sequence (before ISSetupFilesExtract)to see if that helps.
What you can try is having a custom action in the very beginning of the User Interface sequence (before ISSetupFilesExtract)to see if that helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 10, 2013
07:29 AM
I'll look into that. Thanks
Richard
Richard