#65 Unattended install broken in 230b25

open
nobody
None
5
2012-12-07
2003-01-10
No

When I run "7z230b25.exe -y /Q", the installer displays
a "You must restart your computer" dialog and waits for
user interaction. This did not happen with b24.

Discussion

  • Igor Pavlov

    Igor Pavlov - 2003-01-10

    Logged In: YES
    user_id=65083

    I'm not sure. But probably b24 also sometimes can show
    it.
    Restarting question can be asked when installer cannot
    rewrite some file (exe or dll).

     
  • Patrick J. LoPresti

    Logged In: YES
    user_id=308329

    You are right; this happened because I had just uninstalled
    b24 before installing b25. A fresh install of b25 does not
    have this problem.

    But still... Shouldn't there be a way to avoid any user
    interaction completely? Microsoft's installers, for
    instance, usually just exit with status 194 when they are
    invoked in "silent" mode but want to reboot the machine.

     
  • Igor Pavlov

    Igor Pavlov - 2003-01-12

    Logged In: YES
    user_id=65083

    I use Microsoft's IExpress installer. Seems there is no
    such function there.
    So only installer changing can help. But now it's
    difficult, since IExpress installer has some specific
    features. I'm not sure that other small installers have
    such features too.

     
  • Patrick J. LoPresti

    Logged In: YES
    user_id=308329

    Ohhh, IExplore...

    See
    <http://unattended.sourceforge.net/installers.html#hotfixes>
    for my discussion of it.

    To always suppress the reboot dialog, you have to use the
    "/r:n" switch. And in fact, this works for 7-zip's installer.

    To confirm for yourself:

    Install 7-zip and reboot (to make the files "in use")

    Uninstall 7-zip

    Re-install with "-y /q" and observe the reboot dialog (bad)

    Uninstall again

    Re-install with with "-y /q /r:n" and observe NO reboot
    dialog (good)

    So the full unattended installation switches are "-y /q /r:n".

     
  • Igor Pavlov

    Igor Pavlov - 2003-01-13

    Logged In: YES
    user_id=65083

    Thanks for info about /r:n. It works.

    Some notes. It can ask rebooting, if file is in use.
    Usually file can be in use in these cases:
    1) It is executing (for exe).
    2) Some application uses some dll. For example,
    sometimes Explorer locks 7-zip.dll after first using of
    context menu. And then Explorer doesn't free that dll.

    In such case after installing but before rebooting 7-Zip
    will use old files. In most cases it's safe. But in some
    cases (dll interface changing) some functions will not
    work until rebooting.

     
  • Nobody/Anonymous

    Logged In: NO

    Hi ( please help me )

    I have a problem with unattended file, I want to create 2
    partitions, c: & d: with file system NTFS in both
    This is my file ,what kind of line I need to write and were :

    I need it to win2k pro/server
    Winxp/2k3SE

    Best Regards
    10x

    ;SetupMgrTag
    [Data]
    AutoPartition=1
    MsDosInitiated="0"
    UnattendedInstall="Yes"

    [Unattended]
    Repartition=yes
    ExtendOemPartition=1
    FileSystem=ConvertNTFS
    UnattendMode=FullUnattended
    OemSkipEula=Yes
    OemPreinstall=No
    TargetPath=\WINNT

    [GuiUnattended]
    AdminPassword=asas
    OEMSkipRegional=1
    OemSkipWelcome=1
    TimeZone=135

    [UserData]
    FullName=*******************
    OrgName="******************"
    ComputerName=win2kpro
    ProductID=*****************************

    [Display]
    BitsPerPel=16
    Xresolution=1024
    YResolution=768
    Vrefresh=75

    [RegionalSettings]
    LanguageGroup=12

    [Identification]
    JoinWorkgroup=*******************

    [Networking]
    InstallDefaultComponents=No

    [NetAdapters]
    Adapter1=params.Adapter1

    [params.Adapter1]
    INFID=*

    [NetClients]
    MS_MSClient=params.MS_MSClient

    [NetServices]
    MS_SERVER=params.MS_SERVER

    [NetProtocols]
    MS_TCPIP=params.MS_TCPIP
    MS_NetMon=params.MS_NetMon

    [params.MS_TCPIP]
    DNS=Yes
    UseDomainNameDevolution=No
    EnableLMHosts=No
    AdapterSections=params.MS_TCPIP.Adapter1

    [params.MS_TCPIP.Adapter1]
    SpecificTo=Adapter1
    DHCP=Yes
    WINS=No
    NetBIOSOptions=1

    [RegionalSettings]
    LanguageGroup=12

     

Log in to post a comment.