windows installer - GetDirectories call in msi CustomAction throws security exception ONLY when All Users -
I have a custom action that I'm using to deploy some files that are available in the handoff package for MSI My custom verb is sitting beside the MSI path through the original database parameter and I am checking to see that it has a folder, nothing is crazy, but to detect pain in the butt There was a pain.
Installing single or multiple users with locally copied files like installing a single user works well when a winner is running setup.exe from a network share, but when I If I install all users from a network share, then I'm getting a security exception.
The query in question is:
directoryinfo [sub subdirectory = functional InfoGate Directory ("foo");
Runs with custom action SecurityAction.Demand
, so I need all the access that I need.
Any input that anyone can provide
I believe that when you install every user, there is no need to make progress to server-side transactions, so it impersonates the interactive user and can access the files. When you install it for all users, it will have to be raised, now it is basically running as a system that uses a machine account to access files and to get you the permission error Will use the boom.
Can I ask why these files are not in your installer? Is there no way in which you can include them so that you do not have to do a custom action? Otherwise, you may have to write a custom action that detects the original database on a network share and stop it until the user copies all the files before they run.
Comments
Post a Comment