Execute Program action (Run as Administrator)
Hello All,
I am preparing an installation that requires a specific folder share with permissions to be created on an installed folder. As far as I can tell there is nothing in Wise Install Studio that creates a share and allows for the setting up of share permissions. I have looked into this and can achieve it execting a NET SHARE or RMTSHARE.exe command to grant permissions on created shares.
The problem is that I need to run these commands/.exes as an administrator when I call them as a custom action. Can someone advise how I can configure file properties on files that are installed to "Run as Adminstrator" or simialry put a tick in the "Run this program as an adminstrator" box in the compatibility tab.
Many thanks for any assistance that can be provided.
Cheers
Comments
First of all, are you running on Vista, or are you trying to deploy using a non-admin user, or a local admin user with no domain credentials?
Running NET share is a solution that has been adopted by other packagers with great success, but you need to ensure that the installing account has the right permissions to complete the task.
If Vista is involved, you may need to create a manifest file to inform the operating system to run the install with elevation.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Would you like to reply?
Login or Register to post your comment.