Results 1 to 3 of 3

Thread: Need help creating an installer

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2022
    Posts
    26

    Need help creating an installer

    Hello,

    I have just finished my migration from WEBBROWSER to WEBVIEW2 but I encounter a problem when creating my installer with INNOSETUP.

    Indeed, the file that I have been using for several years no longer seems to do the job. The exe is created well and the installation is done well but when I try to open my software, it appears well in the processes but it does not appear.

    Here is my code:

    Code:
     
    [Setup]
    AppName=NomAppli
    AppVersion=7.00.1
    DefaultDirName={pf}\NomAppli
    DefaultGroupName=NomAppli
    OutputBaseFilename=NomAppli_Setup
     
    [Files]
    Source: "C:\Users\PC\Desktop\Nom\bin\Release\NomAppli.exe"; DestDir: "{app}"; Languages: French
    Source: "C:\Users\PC\Desktop\Nom\bin\Release\NomAppli.exe.config"; DestDir: "{app}"
    Source: "C:\Users\PC\Desktop\Nom\bin\Release\dotNetFx40_Full_setup.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
     
     
    [Icons]
    Name: "{userdesktop}\NomAppli"; Filename: "{app}\NomAppli.exe"; WorkingDir: "{app}"
    Name: "{group}\NomAppli"; Filename: "{app}\NomAppli.exe"; WorkingDir: "{app}"
    Name: "{group}\Désintaller NomAppli"; Filename: "{uninstallexe}"; WorkingDir: "{app}"
     
    [Run]
    Filename: "{tmp}\dotNetFx40_Full_setup.exe"; WorkingDir: "{tmp}"; Flags: waituntilterminated
     
    [Languages]
    Name: "French"; MessagesFile: "compiler:Languages\French.isl"
    I think I am missing a file. I then compared the BIN/RELEASE folders of my application before and after switching to WEBVIEW2 and I note the presence of 6 files and 2 more folders.

    FILES: 3.dll and 3.xml of type 'webview2'
    FOLDERS: NomAppli.exe.webview2 and runtimes

    Having no idea what to do so I turn to the connoisseurs that you are to get me out of it !

    Thank you !

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    108,499

    Re: Need help creating an installer

    This question has nothing to do with VB.NET. This site has a forum dedicated to Application Deployment and I have asked the mods to move it there.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2022
    Posts
    26

    Re: Need help creating an installer

    Please excuse my english

    I have software developed with VB.NET that uses WEBBROWSER.

    With the end of internet explorer I am moving to Webview2. The adaptation went well but I encounter a problem for the creation of the installation file (by inosetup). The file that I have been using for several years does not work, after installation, at launch, nothing happens.

    I added :

    Code:
    Microsoft.Web.WebView2.Core.dll
    Microsoft.Web.WebView2.Winforms.dll
    Microsoft.Web.WebView2.WPF.dll
    After installation and launch, the application is visible in the task manager but not visible.

    Passing through the .exe of BIN/RELEASE the application works normally.

    I noticed that in my application folder in 'program files' I am missing the 'runtimes' and 'My_Application.exe.WebView2' folders

    'Runtimes' is installed fine on my PCs (1 in W7 and 1 in W10) and it happens on the 2 different apps I just adapted from Webbrowser to Webwiew2

    Thank you for your precious help because I'm going crazy !

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