Jump to content

alfreire

Members
  • Posts

    314
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by alfreire

  1. 40 minutes ago, Nguyen Anh Tuan said:

    please give me silent switches for avast pro anti-virus, avast internet security and avast premier anti-virus please ?

    Hi... to find switches you must do this:

    • Run offline installer in Virtual Machine and wait to the program is iddle (yo can see Google offfer window)
    • Go to %temp% folder and copy _av_iup.tm~a*** folder to other location
    • Finalize installation and then open C:\ProgramData\AVAST Software\Persistent Data\Avast\Logs\Setup.log file with Notepad
    • Search for instup.exe" /edition (in line 9 +-)
    Command: '"C:\Users\Administrador\AppData\Local\Temp\_av_iup.tm~a00668\instup.exe" /edition:1 /ga_clientid:124e581d-f162-47a7-a518-f372afb62e8d /guid:21e128e4-bea6-4bc6-b618-a46c75ccefec /prod:ais /sfx /sfxstorage:C:\Users\Administrador\AppData\Local\Temp\_av_iup.tm~a00668'
    • You can edit comand like this:
    Quote

    instup.exe /sfx /sfxstorage:C\AvastFiles /edition:1 /prod:ais /silent

    • You must run command from the folder that contain Avast files copied from temp folder
    • Change C:\AvastFiles for your own folder
    • edition:1 is Free version, you can discover the other version numbers by runing same steps installing other Avast versions

    Cheers... ;-)

  2. Quizá puedes adaptar esto a tu script detectando la versión de Windows... sería muy fácil si utilizaras Inno Setup...

    SaluII... ;-)

     

    @echo off
    
    ver | find "5.1" > nul
    if %ERRORLEVEL% == 0 goto win_xp
    
    ver | find "6.1." > nul
    if %ERRORLEVEL% == 0 goto win_7
    
    ver | find "6.2." > nul
    if %ERRORLEVEL% == 0 goto win_8
    
    ver | find "6.3." > nul
    if %ERRORLEVEL% == 0 goto win_81
    
    ver | find "10.0." > nul
    if %ERRORLEVEL% == 0 goto win_10
    
    :win_7
    echo El Sistema es Windows 7
    pause
    goto exit
    
    :win_xp
    echo El Sistema es Windows XP
    pause
    goto exit
    
    :win_8
    echo El Sistema es Windows 8
    pause
    goto exit
    
    :win_81
    echo El Sistema es Windows 8.1
    pause
    goto exit
    
    :win_10
    echo El Sistema es Windows 10
    pause
    goto exit
     @echo off
    cls
    REM Identify OS.
    ver | find /i "10.0." > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows 10
    ver | find /i "6.3." > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows 8.1
    ver | find /i "6.2." > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows 8
    ver | find /i "6.1." > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows 7
    ver | find /i "6.0." > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows Vista
    ver | find /i "5.1." > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows XP
    ver | find /i "5.2." > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows 2003
    ver | find /i "Windows 2000" > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows 2000
    ver | find /i "Windows NT" > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows NT
    ver | find /i ">Windows ME" > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows ME
    ver | find /i "Windows 98" > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows 98
    ver | find /i "Windows 95" > nul
    if %errorlevel%==0 set VERSIONWINDOWS=Windows 95
    
    REM Identify bit
    IF NOT EXIST "%programfiles(x86)%" set VERSIONBIT=32 bit
    IF EXIST "%programfiles(x86)%" set VERSIONBIT=64 bit
    
    REM Display result
    echo %VERSIONWINDOWS% %VERSIONBIT%
    echo.
    pause 

     

×
×
  • Create New...