We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

VC++ Redist pre-req

We need to add the x86 VC++ runtime to our installer. When I turn on that prerequisite in the AI installer I see that it downloads the 14.0.23506 version of the vc_redist.x86.exe...but I would like to change it so that the required VC runtime does not get installed on the end-users machines if they already have a 14.0.x version installed.

Can you help me with the correct "install conditions" settings?

Thanks in advance.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: VC++ Redist pre-req

Hello,

You need to go to "Prerequisites" Page, select your Visual C++ prerequisite and go to "Install Conditions" tab. There will be a predefined "Registry value containing a version" install condition. You should click [Edit] and enter

Code: Select all

14.0.0
in the "Minimum" field. Now the prerequisite will only install if the version installed on your computer is less than 14.0.0.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: VC++ Redist pre-req

Hi Daniel,
Thank you, yes, that seems to have done the trick for me.

Now, the next thing I'm not altogether clear on is how to make this VC++ 2015 (i.e. version 14.x) redistributable install with just the dialog + info text + progressbar shown to the end user. I know with the older (2008, 2010) vcr_redist executables that the "/qb!" parameter was effective in making it a non-clickable or cancellable UI for the end user. That would be ideal for this 2015 pre-req as well.

I've tried using this

Code: Select all

"/install /quiet /norestart" 
in all three of the "Install Command Line" entries on the pre-requisite but that ends up effectively being an invisible phase of the install; the end user doesn't ever see that the Visual C++ redist is being installed, it's just a long pause during the regular installation phase.

Do you have any hints at what is the /qb! equivalent in VC++ 2015 redist, that what we do with the VC++ 2008 pre-req so it would be nice if we could have them consistent.

Thanks in advance,
Kevin
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: VC++ Redist pre-req

Hello Kevin,

The command line for VC++ 2015 Redistributable EXE setup for minimum UI with no prompts is:

Code: Select all

/install /passive
These command lines are specific for each setup. You can find the command line options for an exe setup by calling the "/?" or "/help" command lines.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: VC++ Redist pre-req

Thanks...yes, before asking the question here I did try

Code: Select all

VC_2015u1_redist.x86.exe /? and 
VC_2015u1_redist.x86.exe -? and 
VC_2015u1_redist.x86.exe/help 
but none of these command line seemed to work. NOTE: These are the names of the files in the /Prerequisites folder. I'm assuming that AI is naming/renaming them when they are initially downloaded.

I just tried the

Code: Select all

 /install /passive
...but it doesn't do exactly what we want...because it includes the "Cancel" button.

We are looking for a dialog which shows the name of the VC++ runtime being installed, and a progress bar, but nothing else. The user should not be able to affect it's installation.

Basically, I'm looking for the current day equivalent of what the

Code: Select all

/qb!
did for the VC++ 2008 redistributables.

Best regards,
Kevin
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: VC++ Redist pre-req

Hello Kevin,

Attached you can see a screenshot with all the command line parameters available for the VC++ 2015 Redistributable setup.
screenshot.jpg
screenshot.jpg (59.54 KiB) Viewed 9876 times
I'm afraid I don't know any equivalent command line to the "/qb!" (unattended mode with "Cancel" button disabled") which could be used for VC++ 2015 Redistributable setup. From what I see it seems there is no such option. :|

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: VC++ Redist pre-req

Hi Daniel,
Thanks for your help. I discovered that I have to be Administrator in order for the /? to give me the list of available parameters. Thanks Microsoft! NOT!

It seems that the

Code: Select all

/qb!
is no longer available, what a shame, thanks again Microsoft! NOT!

Best regards,
Kevin
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: VC++ Redist pre-req

You're always welcome Kevin.

Thank you for your follow up too.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”