Jump to content

[AIO] Microsoft Visual B/C++/F#/J# Redistributable x86/x64


ricktendo

Recommended Posts

The "problem" is not a problem and has nothing to do with this installer. Its photosop wanting to install the original vc10, it fails because there is a newer version installed, then it craps out... Other than removing the latest runtime and replacing it with rtm I cannot do anything about this, you will need to uninstall the latest, install photoshop, let it install older runtimes, uninstall those and re-run this installer with /aiX to ONLY install the vc10 runtimes

 

Photoshop only tries to installs it's own VC10 if i'm using the AIO-Pack if i install the orginal Visual C++ 2010 SP1 than Photoshop won't try to install it's own VC10.

Edited by SuperLOL
Link to comment
Share on other sites

OK now I understand the cause of the error, it was because after I apply the MSP update to the MSI it changed the Package Code, if I change it back to what RTM had it photosop will attempt to install and it will simple do a repair install of the current installed vc2k10 (I do a similar thing with my .net packs)

Updated

Link to comment
Share on other sites

When installing on Windows 7 SP1 x64 I'm getting the following error on the 2005 and 2008 x64 / x86 libraries:

 

"An error ocurred during the installation of assembly"

 

For more details of the error, please see the attached filed.

post-57037-0-53481600-1397435413_thumb.j

Link to comment
Share on other sites

In this case I was trying to install it on my fresh Windows 7 installation, but I forgot the silent /y and /gm2 switches, will it make any difference? If so, can't it be installed on Windows 7 fresh installations?

 

I had other installer which worked fine, but didn't had the 2012 libraries your installer had.

 

Only those 2 failed, the F#, J#, 2010, 2012 & 2013 libraries installed with no problems.

Edited by Neo2x
Link to comment
Share on other sites

Neo2x, if I understand correctly, I think Rick was asking exactly when, or by what means, are you triggering the installer?  He explained that those errors occur when the install is attempted before log in has completed.
 
Cheers and Regards

Link to comment
Share on other sites

Ok, I just want to know if there is any place your installer could work on a Windows 7 DVD. I just want to automate the install process.

 

You can stick it in your autounattend.xml file.  I do it like this:

 

1. Create the $OEM$ folder in the Windows source to dump the switchless into the %SystemRoot%\Temp folder, like so:

(Windows installer source root)||-- $OEM$  |  |-- $$    |    |-- Temp

2. Copy the switchless to "Temp".

 

3. Set up your autounattend.xml to do a "SynchronousCommand" under "FirstLogonCommands" in the "Microsoft-Windows-Shell-Setup" settings, "oobeSystem" pass.  Here's a snippet from my autounattend.xml (Win7 Ultimate x64) using the VB/C++-only installer:

<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend">    <settings pass="oobeSystem">        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">            <FirstLogonCommands>                <SynchronousCommand wcm:action="add">                    <CommandLine>%SystemRoot%\Temp\VBCRedist_AIO_x86_x64.exe /ai</CommandLine>                    <Description>Microsoft Visual B/C++ Redistributables (AIO)</Description>                    <Order>1</Order>                </SynchronousCommand>            </FirstLogonCommands>        </component>    </settings>    <cpi:offlineImage cpi:source="wim:c:/win7dvd/grmculxfrer_en_dvd/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /></unattend>

You can run multiple commands as well if you only install certain components.  For example, to do VC++ 2005 and 2008 only executing the /ai5 and /ai8 switches:

            <FirstLogonCommands>                <SynchronousCommand wcm:action="add">                    <CommandLine>%SystemRoot%\Temp\VBCRedist_AIO_x86_x64.exe /ai5</CommandLine>                    <Description>Microsoft Visual C++ 2005 Redistributable</Description>                    <Order>1</Order>                </SynchronousCommand>                <SynchronousCommand wcm:action="add">                    <CommandLine>%SystemRoot%\Temp\VBCRedist_AIO_x86_x64.exe /ai8</CommandLine>                    <Description>Microsoft Visual C++ 2008 Redistributable</Description>                    <Order>2</Order>                </SynchronousCommand>            </FirstLogonCommands>

Add as many commands as you need, just bumping the "<Order>" number for each successive entry.

 

 

Notes:

-- You can change the install directory to whatever you want, so long as you put it in the proper $OEM$ folder structure.  I chose Windows\Temp so the installer gets auto-deleted after use.

-- It must go under the "oobeSystem" pass to launch after user creation, or else you'll get the same errors as before.

-- Same method should work for most programs that have the same requirement of being run after user creation.

-- There are probably other methods of doing it which other posters could elaborate, but this one has worked flawlessly for me with this particular switchless.  And is good if you already use autounattend.xml and want to keep things nicely consolidated there.

-- WSIM automates creation of autounattend.xml graphically if you don't want to deal with raw XML syntax.  Download the Windows ADK from Microsoft (http://www.microsoft.com/en-us/download/details.aspx?id=30652) if you need that tool.

Link to comment
Share on other sites

I did what you suggested, created the same autounattend.xml (on the root of my DVD) as the one on step 3 (only changed the switch to /y) but after Windows installation and restart it didn't do anything. The only thing I noticed was that the VBCRedist_AIO_x86_x64.exe ended up in c:\windows\temp as the $OEM$ folder structure indicated. Another thing I changed was the "cpi:offlineImage cpi:source" to:

"wim:d:/sources/install.wim#Windows 7 ULTIMATE", but don't know what is the criteria for this property (my Windows is also Win 7 Ultimate x64).

 

BTW I'm using WinToolkit to integrate updates and silent installers into Windows.

Edited by Neo2x
Link to comment
Share on other sites

I did what you suggested, created the same autounattend.xml (on the root of my DVD) as the one on step 3 (only changed the switch to /y) but after Windows installation and restart it didn't do anything. The only thing I noticed was that the VBCRedist_AIO_x86_x64.exe ended up in c:\windows\temp as the $OEM$ folder structure indicated. Another thing I changed was the "cpi:offlineImage cpi:source" to:

"wim:d:/sources/install.wim#Windows 7 ULTIMATE", but don't know what is the criteria for this property (my Windows is also Win 7 Ultimate x64).

 

BTW I'm using WinToolkit to integrate updates and silent installers into Windows.

 

The cpi:offlineimage line would be unique to your installation and what folder you use for building your image, so mine probably isn't applicable.  Likewise, the syntax on the component name line can differ depending on whether you're doing an x86 or x64 image, and possibly by edition.  I'd use WSIM or some other off-shelf autounattend.xml generator to set up a default file for your installation.  Maybe just doing some placeholder setting in oobeSystem > Microsoft-Windows-Shell-Setup to make sure there's no syntax differences there, either.  Then if you want to raw-edit the XML just template and build it out from there.

 

If it's dropping the file in the correct $OEM$ folder you should be able to execute it with any switch as if it were a normal command line if set up as a FirstLogonCommands > SynchronousCommand execution.  The only thing that does is time the execution after user creation when you're safely in the clear to install any of the packages in this switchless installer; what you execute and what command line switches you use are no different at that point than they'd be with any other standard means of integrating a switchless into Win7/8.

 

 

 

I built mine in WSIM on Win7 Ultimate x64 as the first-and-only command in FirstLogonCommands, so I can confirm that method + the correct $OEM$ placement produces a working switchless installation.  I don't use WinToolkit myself, opting instead for a combo of Windows Hotfixes Downloader for update/driver integration, WINNT True Integrator for addons and switchlesses, and WSIM/autounattend for settings and switchlesses with special post-logon requirements like this one.  If you're having no luck you may want to try creating the autounattend file with WSIM--at least as far as setting up this installer--to produce a reliably working template before doing as you wish with the rest of your XML file via manual edit or adding/merging to it in some other program.  That's the most fail-safe troubleshooter I can suggest, since I'm not terribly adept at writing or debugging XML by hand.

Edited by RP1
Link to comment
Share on other sites

you could also:

 

put the vbcredist_aio_x86_x64.exe in "wim":\temp\vbcredist_aio_x86_x64.exe

 

create "wim":\windows\setup\scripts\setupcomplete.cmd

 

with this code in it:

@echo offset startupcmd="%programdata%\microsoft\windows\start menu\programs\startup\runonce.cmd"> %startupcmd% echo @echo off>>%startupcmd% echo start /w "%systemroot%\temp\vbcredist_aio_x86_x64.exe /y">>%startupcmd% echo del /f /q %systemroot%\temp\vbcredist_aio_x86_x64.exe>>%startupcmd% echo del /f /q "%%~f0" 2^>nul ^& exit
Edited by Profess0r1011000
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...