[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,855
    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
    818
    518
    30
    He posted hashes of V51 by accident..
     
  3. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,556
    15,565
    270
    kk, thanks.
     
  4. GrofLuigi

    GrofLuigi MDL Novice

    Sep 17, 2016
    7
    1
    0
    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,855
    90
  8. CHEF-KOCH

    CHEF-KOCH MDL Expert

    Jan 7, 2008
    1,194
    1,184
    60
  9. retest

    retest MDL Junior Member

    Nov 2, 2010
    80
    37
    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
    199
    196
    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
    13,766
    69,161
    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
    266
    475
    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 Member

    Sep 21, 2012
    232
    98
    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!????
     
  14. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,167
    1,827
    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,111
    24,336
    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 Member

    Sep 21, 2012
    232
    98
    10
    It is work now. Thanks.
     
  17. burfadel

    burfadel MDL EXE>MSP/CAB

    Aug 19, 2009
    2,627
    3,855
    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,855
    90