Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6477591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:58:01+00:00 2026-05-25T06:58:01+00:00

I have a custom action and need to get below values for copying some

  • 0

I have a custom action and need to get below values for copying some parts from installation folder to VS2010 folder

  1. VS2010 directory path (VS2010DEVENV property)
  2. Installation path (INSTALLLOCATION property)

To give enough privileges, I’ve set custom action as Execute='deferred' Impersonate='no'. But when running the installer, it logged the message:

Cannot access session details from a non-immediate custom action

It seems we cannot access a property in a “deferred” custom action (i.e session["VS2010DEVENV"])

Is there any other way so that I can retrieve those values as needed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:58:02+00:00Added an answer on May 25, 2026 at 6:58 am

    This must be helpful. Pay special attention to the bottom of the page, a guideline of 2 steps how to pass values via CustomActionData.

    Here is the excerpt:

    To write the value of a property into the installation script for use
    during a deferred execution custom action:

    1. Insert a small custom action into the installation sequence that sets the property of interest to a property having the same name as
      the deferred execution custom action. For example, if the primary key
      for the deferred execution custom action is “MyAction” set a property
      named “MyAction” to the property X which you need to retrieve. You
      must set the “MyAction” property in the installation sequence before
      the “MyAction” custom action. Although any type of custom action can
      set the context data, the simplest method is to use a property
      assignment custom action (for example Custom Action Type 51).
    2. At the time when the installation sequence is processed, the installer will write the value of property X into the execution script
      as the value of the property CustomActionData.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom validation attribute derived from action filter attribute. Currently the attribute
I need to setup a custom action within WiX 3.0. I have the following
I need to execute some additional configuration after installation so I have created a
I have a custom installer action that updates the PATH environment, and creates an
I have added a custom action to the CustomList type. For testing purposes I
I have a basic WIX custom action: UINT __stdcall MyCustomAction(MSIHANDLE hInstaller) { DWORD dwSize=0;
I have managed to create a custom action in C# using MakeSfxCA which is
I have two custom ActionFilters on an action. In first of the actionfilters, I
Projects have many tasks and a task has a custom RESTful action called 'approve'.
I have a gwt application which I need to apply custom themes for specific

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.