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

  • Home
  • SEARCH
  • 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 6215933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:08:43+00:00 2026-05-24T07:08:43+00:00

Has anyone experienced an error in which the custom action’s temporary extraction path is

  • 0

Has anyone experienced an error in which the custom action’s temporary extraction path is appended when creating a file?

I have a managed custom action (64-bit C# DLL using Microsoft.Deployment.WindowsInstaller) that performs some system checks. It writes an inf style key=value file in a deferred CA. There’s really nothing fancy going on here just a File.Create(FullPathToFile).

But when I attempt to write the file the temporary directory the CA is extracted to is included for some reason.

MSI (s) (3C:E4) [10:19:36:712]: Hello, I’m your 64bit Elevated custom action server.

SFXCA: Extracting custom action to temporary directory: C:\Windows\Installer\MSIC451.tmp-\

SFXCA: Binding to CLR version v2.0.50727

System.IO.DirectoryNotFoundException: Could not find a part of the path ‘C:\Windows Installer\MSIC451.tmp-*C:\Program Files\Path the property file should be written to*‘. at
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at …..

Is there something strange with the way managed CA’s use stream writer?

  • 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-24T07:08:43+00:00Added an answer on May 24, 2026 at 7:08 am

    I finally figured out that the variable I was trying to use included a property ie:[TARGETDIR]\otherstuff. When I used the variable for as a file path I expected the path C:\Program Files\productname\otherstuff\mystuff. But not the property. When used with some operations (StreamWriter in this case) the property would not resolve properly gave me the error above.

    After I figured out that part of the path was actually resolved from a property I was able to make changes to resolve the path I needed from the property and everything works as expected.

    session.Format(Property) or session[Property]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

has anyone else experienced this . I have SP1 but i have to kill
Has anyone else experienced this? I have uninstalled and reinstalled TortoiseSVN as well as
I have controller action in which I update a simple value in domain object:
I have an app which saves its user data into a file in the
Has anyone had experience using these two technologies in tandem? What are (if any)
Has anyone had experience taking a full-fledged Java desktop application and replicating the functionality
Has anyone had experience using SSL with net.tcp binding in WCF? Ive read its
Has anyone had any experience targetting WSH in the way that VBScript , JScript
Has anyone got much experience deploying applications to Amazons EC2? I am considering doing
Has anyone had any experience in building a 'real world' application with the Smart

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.