Announcement

Collapse
No announcement yet.

Extract .cab file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Extract .cab file


    Hello everyone



    I need to extract a .cab file during the installation process. I have tried with Shell.Exectute and launch the cmd.exe with the ''extract'' argument but the console is launched and the content is not extracted.



    Thanks in advance.

  • #2
    Google is your friend. Cabinet files are not created or handled by Setup Factory, by you can extract contents with command line tools.
    https://www.thewindowsclub.com/extra...g-command-line

    Ulrich

    Comment


    • #3

      Hello Ulrich,


      Thank you very much for answering me so soon. I have just used the page that you indicate me and this would be my code in setup factory ... but it is not extracting anything


      path = "C:\\Users\\Desktop\\Microsoft .WebView2.FixedVersionRuntime.100.0.1185.44.x86.ca b"
      SessionVar.Set("%path%", path)

      path2 = "C:\\Users\\ana.spatacean\\Desktop\\ANA"
      SessionVar.Set("%path2%", path2)

      Shell.Execute(SessionVar.Expand("%SystemFolder%\\c md.exe"), "open", "/C expand "..SessionVar.Expand("%path%").. " -F:* "..SessionVar.Expand("%path2%"), "", SW_SHOWNORMAL, true);


      I don't see what could be wrong.




      Comment


      • #4

        Thank you very much Ulrich. I have got it.

        Comment

        Working...
        X