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
- :
- solution
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 03, 2012
05:31 AM
MSI Custom action running with admin priviledge
I am working on a basic MSI project. I have a custom action which downloads some information from a server and writes it to my install folder.
At first i set the custom action to be "Immediately execution", but it failed to complete. Then I found out that the custom action needs to run with admin priviledge to create file under the folder in Program Files folder.
I did a search and found a solution to set the CA as "Deferred Execution in System Context". However my CA cant access the MSI properties with this setting...!
So I wanna ask if there is a setting for CA to run with admin right, and yet to be able to access MSI properties.
Or did i miss something here? Thanks.
At first i set the custom action to be "Immediately execution", but it failed to complete. Then I found out that the custom action needs to run with admin priviledge to create file under the folder in Program Files folder.
I did a search and found a solution to set the CA as "Deferred Execution in System Context". However my CA cant access the MSI properties with this setting...!
So I wanna ask if there is a setting for CA to run with admin right, and yet to be able to access MSI properties.
Or did i miss something here? Thanks.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 03, 2012
08:41 PM
i found the solution for my problem which is to use the CustomActionData property.
If you are facing similar issues please follow the link here
http://www.installshield.com/news/newsletter/0308-articles/CustomActionData.asp
If you are facing similar issues please follow the link here
http://www.installshield.com/news/newsletter/0308-articles/CustomActionData.asp
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 04, 2012
04:17 AM
you are true that setting a custom action in "Deferred Execution in System Context" will be executed with privileges.
But in deferred execution you can't access the MSI properties directly.
Check this for deferred custom actions.
But in deferred execution you can't access the MSI properties directly.
Check this for deferred custom actions.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 05, 2012
01:24 AM
rrinblue22 wrote:
you are true that setting a custom action in "Deferred Execution in System Context" will be executed with privileges.
But in deferred execution you can access the MSI properties directly.
Check this for deferred custom actions.
Thanks. I have found the solution which is to use CustomActionData 🙂