Results 1 to 21 of 21

Thread: [RESOLVED] VB App Giving Error Message During Install on Vista

  1. #1

    Thread Starter
    Hyperactive Member Hassan Basri's Avatar
    Join Date
    Sep 2006
    Posts
    324

    Resolved [RESOLVED] VB App Giving Error Message During Install on Vista

    Hello everybody,

    I have an application that works well on windows. I have a friend trying to install the application on windows Vista, it gives the following error:

    There was a problem registering this file
    msxml.dll

    Any ideas on how to fix this? Thanks,

  2. #2
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: VB App Giving Error Message During Install on Vista

    Remake the app in .Net as Vista does not fully support VB6 apps. Besides, even if you fix that error, you will probably find you get another different error after that, and so on...
    Chris

  3. #3
    Fanatic Member sessi4ml's Avatar
    Join Date
    Nov 2006
    Location
    Near San Francisco
    Posts
    958

    Re: VB App Giving Error Message During Install on Vista

    Does any know if a program compiled on VB6 / XP and move it to Vista with no problems ?

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB App Giving Error Message During Install on Vista

    It's probably mostly in the installation. Most of the files people were deploying (INCORRECTLY) will probably come to haunt them now...

  5. #5

    Thread Starter
    Hyperactive Member Hassan Basri's Avatar
    Join Date
    Sep 2006
    Posts
    324

    Re: VB App Giving Error Message During Install on Vista

    Quote Originally Posted by the182guy
    Remake the app in .Net as Vista does not fully support VB6 apps. Besides, even if you fix that error, you will probably find you get another different error after that, and so on...
    Actually that is not a solution at the moment. There are lots of large applications built in VB6 which don't have to be converted to .NET to work. How many companies out there have large applications, do you think Microsoft doesn't know that? And wants to lose all those users?

    Maybe in the version after Vista they won't work, but Microsoft says that any VB6 application that works on xp will work on Vista. There are some things to change in the installation package, like the location of where the dll is installed, etc...

    Besides, the VB6 application works in Vista, it is ONLY the installation of the msxml.dll that is causing the problem.

    Any ideas besides rebuilding the whole application in .NET anybody?

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB App Giving Error Message During Install on Vista

    Did you check the Vista installation for the existence of that file?

    And did you try to self register it to see if you get a more detailed message?

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: VB App Giving Error Message During Install on Vista

    Did you run the installation using an Admin account and right click on the setup.exe and click "Run as Administrator"?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: VB App Giving Error Message During Install on Vista

    Quote Originally Posted by Hassan Basri
    Actually that is not a solution at the moment. There are lots of large applications built in VB6 which don't have to be converted to .NET to work. How many companies out there have large applications, do you think Microsoft doesn't know that? And wants to lose all those users?
    They may make the claim but, as of the initial release of Vista, it's not completely true. Which is one of the reasons a lot of companies have no plans to change to Vista.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  9. #9

    Thread Starter
    Hyperactive Member Hassan Basri's Avatar
    Join Date
    Sep 2006
    Posts
    324

    Re: VB App Giving Error Message During Install on Vista

    Thanks for the comments.

    I don't have Vista, it is a friend of mine who is testing it out for me.

    I am using Tarma Installer, the installation package installs the msxml.dll in WinSysDir.

    My instalation package has the option of requiring Administrator rights from the user. I have this option set, so user must have administrator rights to install the package.

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: VB App Giving Error Message During Install on Vista

    Ok, then perhaps its got an error code too?

    Can you manually register the dll?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  11. #11

    Thread Starter
    Hyperactive Member Hassan Basri's Avatar
    Join Date
    Sep 2006
    Posts
    324

    Re: VB App Giving Error Message During Install on Vista

    I'll have to see with my friend.

    I was thinking also that maybe msxml.dll (version 2.0) is too old a version for Vista? Maybe if I try version 3 or 4?

    I know there is a version 6 of msxml out there however I do not know if it would work on win95 (as my application must be compatible back to win95).

    Could those be possibilities?

  12. #12

    Re: VB App Giving Error Message During Install on Vista

    Does any know if a program compiled on VB6 / XP and move it to Vista with no problems ?
    i just received an Email from one of my Customers
    who just purchased a new Laptop with Vista,
    he said no problems installing my VB6 Program in Vista.

    Customer reply...
    "Nope it works just fine, it was easier to load up on Vista turning off the
    firewall as needed than XP."

  13. #13
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB App Giving Error Message During Install on Vista

    What's the firewall got to do with installing your app?

  14. #14
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: VB App Giving Error Message During Install on Vista

    Its a user so he probably meant tunring off the UAC as it speeds up installations as you dont need to confirm things for security approvals
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  15. #15

    Re: VB App Giving Error Message During Install on Vista

    Quote Originally Posted by randem
    What's the firewall got to do with installing your app?
    randem....absolutely nothing



    i asked him if he had any problems running or installing my
    VB6 .EXE Program ..and he replied
    "Nope it works just fine,....."

    he added additional info about the Firewall,
    which i did not ask about .

  16. #16
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: VB App Giving Error Message During Install on Vista

    If you are accessing some protected area of doing anything that could invoke a firewall to block your request then it may be that its a permissions issue when running your app. Request that your app be run under Administrator permissions.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  17. #17

    Thread Starter
    Hyperactive Member Hassan Basri's Avatar
    Join Date
    Sep 2006
    Posts
    324

    Re: VB App Giving Error Message During Install on Vista

    I solved the issue by doing the following

    If your application uses msxml make sure you are using a minimum of version 3.0, under that i.e. version 2.0. Vista does not let the installation complete.

    I have tested msxml version 3 SP7 and it works on Me, Xp and Vista.

    Make sure to include the three files in your setup

    msxml3.dll
    msxml3r.dll
    msxml3a.dll

  18. #18
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    NY
    Posts
    497

    Re: [RESOLVED] VB App Giving Error Message During Install on Vista

    I am a compatibility quest. So far, my vb6 app installed great, no problems, I was so darn excited. But guess what....

    I have not even scratched the surface of what Vista is all about, but get this: by default, even if you're an "administrator" your app (vb6 at least) will run as a standard user. Not only that, even if you are an administrator you cannot write to the Program Files directory. In my case, my app installs with several folders used to write logs and other data, and those functions either report nothing so it looks like they worked, or report an "access denied" error--depends on what's going on.

    I started my journey with this blog:
    http://west-wind.com/WebLog/posts/4983.aspx

    I came to this forum hoping for some wisdom. My feeling is that we're all pretty stupid right now. I would recommend a new forum just for Vista on this site.
    end war
    stop greed

  19. #19
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] VB App Giving Error Message During Install on Vista

    If you right click on the shortcut to your app you can specify that it run as Administrator. This will help with most of the access issues. Yes, the File Virtualization is challenging but still possible to work with. Just remember that each user will have their own separate copy of whateveer files you are reading/writting to in the PF directory. If you need shared data then the files should be moved to the C:\Users\Public\ directory.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  20. #20
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    NY
    Posts
    497

    Re: [RESOLVED] VB App Giving Error Message During Install on Vista

    Thanks RobbDogg, I would guess that would work, but it's impractical. I see that if you want to avoid having the user enter an admin user name and pw, you need to add them to the local admin group--a step that I personally would do anyway for my clients.

    It's still impractical because you're never going to get users to remember to do that. I appreciate the info though as it helps in the understanding.
    end war
    stop greed

  21. #21
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] VB App Giving Error Message During Install on Vista

    Np,

    You could test your app under a limited user account and tweak it til it runs without admin permissions. This is the suggested method for making it Vista compatible without admin permissions.

    You can set the security level with a manifest file as there are three levels of access that can be required.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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