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
- :
- Custom Actions with admin rights
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
Dec 31, 2010
02:35 AM
Custom Actions with admin rights
I am creating a MSI project with Installshield 2010. I want to XCopyFiles some files in system32 folder in 64bit machines.
So I created a custom action which first disables file system redirection and then tries to copy files in system32 folder.
This works fine when I run setup.exe with admin rights (right click and run as Administrator) but when I simply double click setup.exe it fails with the permission related message.
Please advise on how I can launch custom actions with admin rights even when I double click setup.exe.
Thanks in advance
Ankur
So I created a custom action which first disables file system redirection and then tries to copy files in system32 folder.
This works fine when I run setup.exe with admin rights (right click and run as Administrator) but when I simply double click setup.exe it fails with the permission related message.
Please advise on how I can launch custom actions with admin rights even when I double click setup.exe.
Thanks in advance
Ankur
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 31, 2010
04:12 AM
In the Release you can set the Require Administrative Privilage to "Yes". So while installation it will be elevated.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)