We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jean-pierre.moularde
Posts: 8
Joined: Mon Jan 30, 2006 9:31 am
Location: PARIS FRANCE

Need help to migrated VB6 to VB.net

For several years I had a small program in VB6 which was easily included in an AI msi package with the VB6 dll required to make it run.

As VB6 is not supported any more, I had to undergo the painful task of re-writing that program in VB.NET.
I'm through with that task, but I don't understand how to make an AI msi file to install the progream to other people's PC withouth them needing to care about the .NET framework.
I have even not understood how to use the 'prerequisite' function to make sure that the NET.framework be installed before the application. I thing I did as instructued, but I don't see anything happening when installing the application on another PC, so I must be wrong somewhere.

I suppose that hundreds of AI users have made it successfully before. Could any of these lucky people give clear instruction to a poor foreign old developer in need? :?: :wink:
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

There is a similar discussion on the forum about how to add .Net Framework as prerequisite, please see:
http://www.advancedinstaller.com/forums ... +framework

Please let me know if you encounter any problem.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jean-pierre.moularde
Posts: 8
Joined: Mon Jan 30, 2006 9:31 am
Location: PARIS FRANCE

Gheorghe

I read that discussion (and other ones) before giving up last Saturday and asking for help. As you recommend it, I will apply that guidance and let you know the result.

Regards
JP
gigi wrote:Hi,

There is a similar discussion on the forum about how to add .Net Framework as prerequisite, please see:
http://www.advancedinstaller.com/forums ... +framework

Please let me know if you encounter any problem.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jean-pierre.moularde
Posts: 8
Joined: Mon Jan 30, 2006 9:31 am
Location: PARIS FRANCE

Gheorghe

I tried again wiht no success.

The msi fil installs on my neighbour's PC, but does not say anything about NET framework. When he tries to launch the program, it crashes.
Apparently it's due to the fact that the framework dlls are not present.

Regards
JP
jean-pierre.moularde wrote:Gheorghe

I read that discussion (and other ones) before giving up last Saturday and asking for help. As you recommend it, I will apply that guidance and let you know the result.

Regards
JP
gigi wrote:Hi,

There is a similar discussion on the forum about how to add .Net Framework as prerequisite, please see:
http://www.advancedinstaller.com/forums ... +framework

Please let me know if you encounter any problem.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi Jean-Pierre,

Did your neighbour only run the .msi file? In order to run the prerequisite wizard he needs to run the .exe file, so when creating the package you need to make sure that you selected "Create EXE setup file" in the Media -> Bootstrapper section.

Regards,
Dennis
jean-pierre.moularde
Posts: 8
Joined: Mon Jan 30, 2006 9:31 am
Location: PARIS FRANCE

Dennis

OK, I'll make another test.
I thought it was something of that sort.
Regards
JP
Phobos wrote:Hi Jean-Pierre,

Did your neighbour only run the .msi file? In order to run the prerequisite wizard he needs to run the .exe file, so when creating the package you need to make sure that you selected "Create EXE setup file" in the Media -> Bootstrapper section.

Regards,
Dennis
    jean-pierre.moularde
    Posts: 8
    Joined: Mon Jan 30, 2006 9:31 am
    Location: PARIS FRANCE

    Dennis

    Sorry, there is something wrong again.
    When I install the application on my own PC, the program starts and crashes and proposes to send information to Microsoft.

    Is there a mail address where I could send you a zipped file with all the stuffs in it?

    Regards
    JP
    jean-pierre.moularde wrote:Dennis

    OK, I'll make another test.
    I thought it was something of that sort.
    Regards
    JP
    Phobos wrote:Hi Jean-Pierre,

    Did your neighbour only run the .msi file? In order to run the prerequisite wizard he needs to run the .exe file, so when creating the package you need to make sure that you selected "Create EXE setup file" in the Media -> Bootstrapper section.

    Regards,
    Dennis
        gigi
        Posts: 2103
        Joined: Tue Apr 11, 2006 9:55 am
        Contact: Website

        Hi,

        Please send the AIP file if not contain any confidential informations to support at advanced installer dot com in order to investigate the problem.

        Regards,
        Gigi
        ______________
        Gheorghe Rada
        Advanced Installer Team
        http://www.advancedinstaller.com
        jean-pierre.moularde
        Posts: 8
        Joined: Mon Jan 30, 2006 9:31 am
        Location: PARIS FRANCE

        How can I attach a file to a reply?
        gigi
        Posts: 2103
        Joined: Tue Apr 11, 2006 9:55 am
        Contact: Website

        Hi,

        Send a mail with the file attached to the e-mail address mentioned in my previous post.

        Regards,
        Gigi
        ______________
        Gheorghe Rada
        Advanced Installer Team
        http://www.advancedinstaller.com
        gigi
        Posts: 2103
        Joined: Tue Apr 11, 2006 9:55 am
        Contact: Website

        Hi Jean Pierre,

        The detections criteria (the default one) that you have used for .Net Framework prerequisite is not always successful. This is because the mscoree.dll is shared between versions and for example if you have .Net Framework 1.1 and 2.0 installed the mscoree.dll indicate to 2.0 version. After you uninstall .Net 2.0 the mscoree.dll is not removed or reverted to the 1.1 version (only the ref count it's decreased).

        If you need 2.0 as a particular version of .Net Framework the you can fallow the instructions from this forum post:
        http://www.advancedinstaller.com/forums ... +framework

        Hope this helps.

        Best Regards,
        Gigi
        _______________
        Gheorghe Rada
        Advanced Installer Team
        http://www.advancedinstaller.com
        jean-pierre.moularde
        Posts: 8
        Joined: Mon Jan 30, 2006 9:31 am
        Location: PARIS FRANCE

        Georghe

        Thanks for your answer.

        I don't believe the issue is in the detection criteria.
        What happens is that my application files get installed but there is nothing asked about the .Net framework, in spite of the fact 'mscoree.dll' is not present on the target machine.
        In order to avoid disturbing my colleague, I did it on my PC after renaming 'mscoree.dll' to something else temporarily, and it didn't do anyting either.

        By the way, what is exactly supposed to happen if the dll is absent?

        Regards
        JP
        gigi
        Posts: 2103
        Joined: Tue Apr 11, 2006 9:55 am
        Contact: Website

        Hi Jean Pierre,

        I cannot reproduce this on my computer. I do exactly like you, I rename the "mscoree.dll" to something else and the installer prompt me to download and install .Net Framework.
        By the way, what is exactly supposed to happen if the dll is absent?
        If a prerequisite is not found the "Prerequisites" wizard appears asking you to download and install missing prerequisites.

        Please try the instructions from my previous post and see how it works.

        Kind Regards,
        Gigi
        ______________
        Gheorghe Rada
        Advanced Installer Team
        http://www.advancedinstaller.com
        jean-pierre.moularde
        Posts: 8
        Joined: Mon Jan 30, 2006 9:31 am
        Location: PARIS FRANCE

        Georghe

        Thanks for your help. It seems to work now when installing from the 'exe' file after renaming the key 'HKLM\SOFTWARE\Microsoft\.NETFramework\policy\v2.0' in the Registryas ...\v2.0a.

        The first attempts I made consisted in launching the msi file rather than the exe file. That's in fact the big mistake I made

        Regards
        JP

        Return to “Common Problems”