Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Non Impersonate CA under Vista


2 replies to this topic

coluhandria

coluhandria
  • Full Members
  • 10 posts

Posted 06 January 2011 - 15:37

Hello!

I have a custom action that executes a vb writing information into a file using the %USERNAME% variable. The file is located in the ProgramFolder therefore the Custom Action needs to be elevated. The problem is, that as a result of the non impersonate custom action the variable %USERNAME% is not resolved as the user executing the installation but as SYSTEM. Is there a possiblity in Vista to solve this?

Thxs in advance

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 06 January 2011 - 17:12

You can use an immediate custom action to copy the value to a property, and then retrive that property value in your deferred in system context custom action. Look up CustomActionData in help for the required steps (sounds a bit complicated at first but is actually quite simply)

coluhandria

coluhandria
  • Full Members
  • 10 posts

Posted 14 January 2011 - 08:17

Thanks for your answer!