Jump to content

DetachedProgram - 7zip


Recommended Posts


Well, I use the below code in my winnt.sif to extract my drivers (no need of 7za.exe). The file below is an SFX archive created with 7-Zip:

[GuiUnattended]
   DetachedProgram="%systemroot%\PnPdrvrs.exe"
   Arguments="-y /q /r:n"

So now, this will get extracted right into the folder where its located. In other words, after the above command has run, the folder "C:\Windows\PnPdrvrs\" exists, with the extracted files from the archive.

Link to comment
Share on other sites

thx a lot! i am going to test it in a few minutes!

EDIT: its not working.... what can be wrong??

[Data]
    Autopartition = 0
    MsDosInitiated = 0
    UnattendedInstall = Yes

[Unattended]
    UnattendMode = FullUnattended
    OemSkipEulA = Yes
    OemPreinstall = Yes
    TargetPath = "\WINXP"
    Repartition = No
    Unattendswitch = Yes
    WaitForReboot = No
    AutoActivate = No
    KeyboardLayout = "German"
    ProgramFilesDir = "%systemdrive%\ProgramFiles"
    CommonProgramFilesDir = "%systemdrive%\ProgramFiles\CommonFiles"

[GuiUnattended]
    AdminPassword = "admin"
    EncryptedAdminPassword = No
    OEMSkipRegional = 1
    TimeZone = 110
    OemSkipWelcome = 1
    ProfilesDir = "%systemdrive%\DocumentsandSettings\"
    DetachedProgram="%systemdrive%\7z.exe"
    Arguments="-y /q /r:n"

[Display]
    BitsPerPel = 32
    XResolution = 1024
    YResolution = 768
    Vrefresh = 85

[UserData]
    ProductKey = KEY-KEY-KEY-KEY-KEY
    FullName = "name"
    OrgName = "org"
    ComputerName = "computer"

[TapiLocation]
    CountryCode = 49
    Dialing = Pulse

[RegionalSettings]
    LanguageGroup = 1
    Language = 00000407
    SystemLocale = 00000407
    UserLocale = 00000407
    InputLocale = 0407:00000407

[Identification]
    JoinWorkgroup = "workgroup"

[Networking]
    InstallDefaultComponents = Yes

[Componants]
    msmsgs = off
    msnexplr = off
    OEAccess = off
    media_clips = off
    media_utopia = off
    Accessopt = off
    templates = off
    fax = off
    Clipbook = off
    hypertrm = off
    rec = off
    pinball = off
    freecell = off
    minesweeper = off
    solitaire = off
    spider = off
    hearts = off
    zonegames = off

[Shell]
    CustomDefaultThemeFile = "%WinDir%\Resources\Themes\my.theme"
    DefaultStartPanelOff = Yes

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...