Results 1 to 5 of 5

Thread: Visual Studio Installer: shared legacy file must = true problem

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    new zealand (kiwi)!
    Posts
    202

    Visual Studio Installer: shared legacy file must = true problem

    hi all
    with Visual Studio Installer & and VB6 program:
    I sometimes get the error message when making a MSI
    "the property 'SharedLegacyFile' must be true for isolated file 'myprogram.exe' "
    I have set this property to true, but I cant fix the problem.
    I have even deleted all instaaler files and started again, no luck.
    Any help anyone?

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    Re: Visual Studio Installer: shared legacy file must = true problem

    1. There is a post dealing with this issue on this very forum: https://www.vbforums.com/showthread....acyFile-Errors. Always search before posting.
    2. Have you tried using compatibility settings?
    3. You could post the relevant parts of your project here so others can have a look in order to better help you.

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Visual Studio Installer: shared legacy file must = true problem

    .Local isolation was never safe for program units (EXE, DLL, OCX) created using VB6.

    What are you attempting to do that took you down this rabbit hole?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    new zealand (kiwi)!
    Posts
    202

    Re: Visual Studio Installer: shared legacy file must = true problem

    thanks all
    I had done a search, but missed that post.
    My problem is that it is the main program .exe which causes the error.
    I cant see have I can just add it using Explorer as suggested in that link.
    I have a simple program, which only needs deploying on a few PCs (win7, 10)
    It uses only the MSComm ocx

    This error has occurred in the past with other programs also, even after many builds.
    I can't figure out what causes it to occur.

    What is 'compatability settings'? how do I alter them?

  5. #5
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    Re: Visual Studio Installer: shared legacy file must = true problem

    Compatbility settings are explained here:
    https://www.laptopmag.com/articles/s...ode-windows-10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width