Hello,
I'm confused about how Impersonate works. I want to run a console 
migration executable using the WiX CAQuitExec. The migration executable 
copies files from a previous version of the product to a new version of 
the product.
I want to run it as the installing user so I assumed that I should 
specify Impersonate='yes'.
See this code snippet (using WiX 3.7):
       <CustomAction Id='SilentMigrate50Settings_Cmd' 
Property="SilentMigrate50Settings"
          Value="&quot;[#conv50to51.exe]&quot; /auto" Execute="immediate"
       />
       <CustomAction Id="SilentMigrate50Settings"
          BinaryKey="WixCA" DllEntry="CAQuietExec"
          Impersonate='yes' HideTarget='no'
          Execute='commit' Return='ignore'
       />

       <InstallExecuteSequence>
          <Custom Action='SilentMigrate50Settings' After='DuplicateFiles'>
             NOT Installed
          </Custom>
       </InstallExecuteSequence>
However, the effect seems to be that the tool is called as the Installer 
process. The end effect is that the files are copied by the migration 
tool, but without the rights of the installing user in effect making the 
copied files read-only.
Any hints are tips are appreciated.
Theo


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to