[Update - V56] Visual C++ Runtime Installer by burfadel

Discussion in 'Application Software' started by burfadel, Apr 27, 2015.

  1. burfadel

    burfadel MDL EXE>MSP/CAB

    Aug 19, 2009
    2,627
    3,856
    90
    Wow, the new text editor seems to be broken for some things! Finally got it out properly though.
     
  2. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    819
    520
    30
    He posted hashes of V51 by accident..
     
  3. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    kk, thanks.
     
  4. GrofLuigi

    GrofLuigi MDL Member

    Sep 17, 2016
    209
    499
    10
    vc_runtimeMinimum_x86.msi seems to be not installing. If I run the .msi only (no /q switch), throws an eror.

    Also, vc_runtimeMinimum_x64.msi doesnt err out, but some files in /system32 are not replaced.

    Might be that the .msi's from Microsoft are wrong. Should check with Orca, but I don't have it here.

    Edit: both are vcredist_2015-2017
     
  5. Thiersee

    Thiersee MDL Novice

    Nov 3, 2013
    41
    41
    0
    #66 Thiersee, Apr 26, 2017
    Last edited: Apr 26, 2017
    Confirmed.
    And does not uninstall older version (.25008, on x86).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. DukiSync

    DukiSync MDL Junior Member

    May 12, 2010
    86
    31
    0
    No vc redist 2017 minimum x86, not installed...
     
  7. burfadel

    burfadel MDL EXE>MSP/CAB

    Aug 19, 2009
    2,627
    3,856
    90
  8. CHEF-KOCH

    CHEF-KOCH MDL Expert

    Jan 7, 2008
    1,192
    1,185
    60
  9. retest

    retest MDL Junior Member

    Nov 2, 2010
    85
    38
    0
    Thanks for v52a.
    Please update OP, I still haven't figured out how to go to 'last unread post' for MDL forum threads.
    Actually, if you could mention the latest version in the thread title it would be v useful.
     
  10. pal1000

    pal1000 MDL Member

    May 1, 2017
    246
    243
    10
    #71 pal1000, May 1, 2017
    Last edited: May 3, 2017
    Here is an improvement. It allows Command Prompt to spawn a User Account Control dialog if not running as administrator. Should make your script work with double-click, no need to manually run as admin anymore:

    Code:
    @echo off
    
    :: BatchGotAdmin
    :-------------------------------------
    REM  --> Check for permissions
        IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
    >nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
    ) ELSE (
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    )
    
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
        echo Requesting administrative privileges...
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        set params = %*:"=""
        echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
        "%temp%\getadmin.vbs"
        del "%temp%\getadmin.vbs"
        exit /B
    
    :gotAdmin
        pushd "%CD%"
        CD /D "%~dp0"
    :--------------------------------------
    
    This should replace the current admin check. May not work with admin accounts with no password. In that case it may fail to elevate due to Windows default runas policy. It actually works even for admin accounts with no password, tested in a VM. The code restores the current directory from before elevation.
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,740
    340
    Adding admin request to the program embedded manifest is easier
    Code:
    <requestedPrivileges><requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel></requestedPrivileges>
     
  12. wilenty

    wilenty MDL Senior Member

    Jan 15, 2014
    270
    494
    10
    #73 wilenty, May 2, 2017
    Last edited: May 2, 2017
    or add line: MiscFlags="4", to SFX config: Visual C++ Redist Installer ***.txt
    Code:
    ;!@Install@!UTF-8!
    GUIFlags="2+4+16+32"
    GUIMode="1"
    ;+
    MiscFlags="4"
    ;---
    ExtractTitle="Preparing files..."
    ExtractDialogText="This shouldn't take too long!"
    RunProgram="x86:x86.cmd"
    RunProgram="x64:x64.cmd"
    ;!@InstallEnd@!
    
     
  13. amajmon

    amajmon MDL Senior Member

    Sep 21, 2012
    274
    120
    10
    This does not work on new Insider win 10. Just beep when you want to type "Y" in CMP. Can you make it do automatically without typing Y for yes in CMD!????
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,351
    2,307
    60
    You can always extract (7zip) the .exe file and edit the installer.cmd (Remove lines that prompt choices), save, then run x86.cmd or x64.cmd (Your OS) - worked for me
     
  15. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    #76 s1ave77, May 13, 2017
    Last edited: May 13, 2017
    Change the tool due to 1 borked IP build ... doubt that Sir :cool2:.

    @Atari800XL found the culprit:
    Code:
    reg add "HKCU\Console" /v "ForceV2" /t REG_DWORD /d "0" /f
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. amajmon

    amajmon MDL Senior Member

    Sep 21, 2012
    274
    120
    10
    It is work now. Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. burfadel

    burfadel MDL EXE>MSP/CAB

    Aug 19, 2009
    2,627
    3,856
    90
    Thanks for all the suggestions! I'll update the admin code for the next release :). Thanks for reporting it!
     
  18. burfadel

    burfadel MDL EXE>MSP/CAB

    Aug 19, 2009
    2,627
    3,856
    90