Silent install problems with vcredist
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Silent install problems with vcredist
Hello,
I need to deploy FreeCAD 0.16 via wpkg on x86 and x64 windows clients.
First question : x86 version seems to include 2008 Visual C++, and x64 include 2013 Visual C++. Why ?
My problem : I can do a silent install of FreeCAD with /S switch, but the included vcredist install is not silent if a previous version is installed on the client. It shows a window to choose repair/remove buttons.
I tested to pre-install the needed vcredist version with /install /silent switches, it's working completely silent, but the following FreeCAD silent install still ask the repair/remove choice.
How can I have a complete silent install in this case ?
Thanks
I need to deploy FreeCAD 0.16 via wpkg on x86 and x64 windows clients.
First question : x86 version seems to include 2008 Visual C++, and x64 include 2013 Visual C++. Why ?
My problem : I can do a silent install of FreeCAD with /S switch, but the included vcredist install is not silent if a previous version is installed on the client. It shows a window to choose repair/remove buttons.
I tested to pre-install the needed vcredist version with /install /silent switches, it's working completely silent, but the following FreeCAD silent install still ask the repair/remove choice.
How can I have a complete silent install in this case ?
Thanks
Re: Silent install problems with vcredist
Because on systems where the runtime dlls are not installed the vcredist does this automatically. If we leave out the vcredist completely a FreeCAD installation may not work and an average user won't know how to fix it.First question : x86 version seems to include 2008 Visual C++, and x64 include 2013 Visual C++. Why ?
When I tested an installer a few weeks ago I also saw the vcredist installer but it was only flashing without popping up a dialog. I don't know if there is also a way to make the vcredist completely silent.My problem : I can do a silent install of FreeCAD with /S switch, but the included vcredist install is not silent if a previous version is installed on the client. It shows a window to choose repair/remove buttons.
In case vcredist doesn't support a silent mode we can just skip its installation when the FreeCAD installer is running in silent mode. In this case it's up to the user then to check if vcredist must be manually installed, too.
Re: Silent install problems with vcredist
I think it is possible.When I tested an installer a few weeks ago I also saw the vcredist installer but it was only flashing without popping up a dialog. I don't know if there is also a way to make the vcredist completely silent.My problem : I can do a silent install of FreeCAD with /S switch, but the included vcredist install is not silent if a previous version is installed on the client. It shows a window to choose repair/remove buttons.
I tested with /install /silent and it worked.
I founded too /q or /quiet /norestart
https://social.technet.microsoft.com/Fo ... ?forum=mdt
/? shows the correct parameters.
Why not, it could be a solution, but whitch vcredist version should we install ?In case vcredist doesn't support a silent mode we can just skip its installation when the FreeCAD installer is running in silent mode. In this case it's up to the user then to check if vcredist must be manually installed, too.
Re: Silent install problems with vcredist
Releated to this I guess. viewtopic.php?f=3&t=15645&start=10#p125002ljoets wrote: Why not, it could be a solution, but whitch vcredist version should we install ?
Is this problem only with the x86 version or both?
x86 was compiled with VS2008 to support XP for as long as possible, x64 was compiled with VS2013.
"fight the good fight"
Re: Silent install problems with vcredist
The problem appears with x86 ans x64 versions.sgrogan wrote: Is this problem only with the x86 version or both?
x86 was compiled with VS2008 to support XP for as long as possible, x64 was compiled with VS2013.
Re: Silent install problems with vcredist
Note:
See here: viewtopic.php?t=15244#p121364
and here: http://asawicki.info/news_1597_installi ... _line.html
I'll fix this.
See here: viewtopic.php?t=15244#p121364
and here: http://asawicki.info/news_1597_installi ... _line.html
I'll fix this.
"fight the good fight"
Re: Silent install problems with vcredist
I have created new installers for the recent backport fix 0.16.6704ljoets wrote: The problem appears with x86 ans x64 versions.
https://github.com/FreeCAD/FreeCAD/releases/tag/0.16
https://sourceforge.net/projects/free-c ... AD%200.16/
They should install the appropriate VS redistributable silently now.
"fight the good fight"
Re: Silent install problems with vcredist
Great thanks, it seems to work, but...
- On the download page, x86 filename uses an upper "I" for "Installer", and x64 filename uses a dot between "FreeCAD" and "0.16" So it is difficult to write a generic wpkg xml for both of architectures. In the future, could it be possible to correct these details ? But it's now ok for this version
- Uninstalling FreeCAD seems to not uninstall vcredist. Is it possible to include vcredit uninstall in FreeCAD uninstall ?
Thanks
- On the download page, x86 filename uses an upper "I" for "Installer", and x64 filename uses a dot between "FreeCAD" and "0.16" So it is difficult to write a generic wpkg xml for both of architectures. In the future, could it be possible to correct these details ? But it's now ok for this version
- Uninstalling FreeCAD seems to not uninstall vcredist. Is it possible to include vcredit uninstall in FreeCAD uninstall ?
Thanks
Re: Silent install problems with vcredist
Wouldn't this be evil? Just imagine you have installed another application before or after FreeCAD that needs exactly the same vcredist version. If the uninstallation of FreeCAD removed it too then the other application suddenly won't run any more.- Uninstalling FreeCAD seems to not uninstall vcredist. Is it possible to include vcredit uninstall in FreeCAD uninstall ?
Re: Silent install problems with vcredist
Sure it's a by product of the different versions using a different compiler. Not fundamentally, just my build processljoets wrote:- On the download page, x86 filename uses an upper "I" for "Installer", and x64 filename uses a dot between "FreeCAD" and "0.16" So it is difficult to write a generic wpkg xml for both of architectures. In the future, could it be possible to correct these details ? But it's now ok for this version
Maybe we could add a command line only switch? Presumably sys admins would be using this, and they would know what they are doing?wmayer wrote:Wouldn't this be evil? Just imagine you have installed another application before or after FreeCAD that needs exactly the same vcredist version. If the uninstallation of FreeCAD removed it too then the other application suddenly won't run any more.- Uninstalling FreeCAD seems to not uninstall vcredist. Is it possible to include vcredit uninstall in FreeCAD uninstall ?
I've seen issue 2516 as well. I think we could check if the redist is installed and not run the redist.exe. I'm personally against being online for an install a requirement, so what's the point?
@mayer, you can assign this issue to me but I'd like your opinion on what the compromise solution might be.
Maybe we offer a .7z of the release, then anyone can do anything they want, FreeCAD on Win is portable. And offer an installer for the typical Windows user that just wants to double click and be done with it?
"fight the good fight"