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 to let custom action impersonates as SYSTEM
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 23, 2008
02:34 PM
How to let custom action impersonates as SYSTEM
I have a Basic MSI Project. In upgrade install, I want to use a CA to copy files to previous install folder. However, in order to protect the install folder, the security of that folder is set as only allow SYSTEM coping files to there. However, MSIEXEC lets the CA runs on local admin context, therefore copy file failed.
Can I change some settings in InstallShiled in order to let that CA runs on SYSTEM context?
Thanks a lot!
Can I change some settings in InstallShiled in order to let that CA runs on SYSTEM context?
Thanks a lot!
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 23, 2008
04:14 PM
Does the action setting Deferred in System Context do what you want?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 23, 2008
05:27 PM
Seems like it shoud work.
But when I set "In-Script Execution" of the CA to "Deferred Execution in system context", when upgrade intall, I got an error message "Error 2762. Cannot write script record. Transaction not started"
But when I set "In-Script Execution" of the CA to "Deferred Execution in system context", when upgrade intall, I got an error message "Error 2762. Cannot write script record. Transaction not started"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 23, 2008
05:40 PM
Deferred actions must be scheduled between InstallInitialize and -Finalize; ICE77 can catch this.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 23, 2008
05:57 PM
Yes,
I tried it again. It works perfectly!
Thanks!
I tried it again. It works perfectly!
Thanks!
