[SOLVED] Silent windows (de)installation
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 14
- Joined: Tue Apr 14, 2015 8:05 am
[SOLVED] Silent windows (de)installation
Hi,
for automatic deployment (e.g. OPSI) of freecad silent install and uninstall options are needed.
Silent installation with "FreeCAD-0.15.4671_x64_setup.exe /S" (NSIS Installer) does work as expected, but not uninstallation.
Execution of ""C:\Program Files\FreeCAD 0.15\uninstall.exe" /S" (according to 'QuietUninstallString' from registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FreeCAD 0.15) leads to a popup 'FreeCAD 0.15 Uninstall. Permanently remove FreeCAD' and waits for approval.
According to this hint the NSIS Installer lacks the possibility to uninstall silently by default.
Would it be possible to add this feature to the NSIS installer for FreeCAD?
For me it would be sufficient to have a portable stable version of FreeCAD too. But if I understand this right these 7-zip archives are only available for development versions.
Documentation regarding install on windows is outdated, because there is written about MSI packages. BTW these would be silently (un)installable by default
Regards
Thomas
for automatic deployment (e.g. OPSI) of freecad silent install and uninstall options are needed.
Silent installation with "FreeCAD-0.15.4671_x64_setup.exe /S" (NSIS Installer) does work as expected, but not uninstallation.
Execution of ""C:\Program Files\FreeCAD 0.15\uninstall.exe" /S" (according to 'QuietUninstallString' from registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FreeCAD 0.15) leads to a popup 'FreeCAD 0.15 Uninstall. Permanently remove FreeCAD' and waits for approval.
According to this hint the NSIS Installer lacks the possibility to uninstall silently by default.
Would it be possible to add this feature to the NSIS installer for FreeCAD?
For me it would be sufficient to have a portable stable version of FreeCAD too. But if I understand this right these 7-zip archives are only available for development versions.
Documentation regarding install on windows is outdated, because there is written about MSI packages. BTW these would be silently (un)installable by default
Regards
Thomas
Last edited by thomas.besser on Thu Apr 16, 2015 7:30 am, edited 1 time in total.
Re: Silent windows (de)installation
issue #2056Would it be possible to add this feature to the NSIS installer for FreeCAD?
You can easily create your own 7-zip archive from an NSIS installer. First run a normal installation, then make a 7-zip archive from the directory where you have installed it and afterwards uninstall it.For me it would be sufficient to have a portable stable version of FreeCAD too. But if I understand this right these 7-zip archives are only available for development versions.
-
- Posts: 14
- Joined: Tue Apr 14, 2015 8:05 am
Re: Silent windows (de)installation
Ok.wmayer wrote:issue #2056Would it be possible to add this feature to the NSIS installer for FreeCAD?
Great, thanks.You can easily create your own 7-zip archive from an NSIS installer. First run a normal installation, then make a 7-zip archive from the directory where you have installed it and afterwards uninstall it.For me it would be sufficient to have a portable stable version of FreeCAD too. But if I understand this right these 7-zip archives are only available for development versions.
-
- Posts: 14
- Joined: Tue Apr 14, 2015 8:05 am
Re: Silent windows (de)installation
Backuped the installed directory, resetted the virtual machine, copied back and installed 'vcredist_x64.exe' which was also in the installation directory, but executing 'freecad.exe' does make nothing. No process getting started, no error message on cmd.wmayer wrote:You can easily create your own 7-zip archive from an NSIS installer. First run a normal installation, then make a 7-zip archive from the directory where you have installed it and afterwards uninstall it.For me it would be sufficient to have a portable stable version of FreeCAD too. But if I understand this right these 7-zip archives are only available for development versions.
Am I missing something else?
Re: Silent windows (de)installation
freecad.exe doesn't write anything on cmd. Try freecadcmd.exe instead. You can also try freecad.exe --write-log which creates the file FreeCAD.log under %APPDATA%/FreeCAD. This might give you an idea.
-
- Posts: 14
- Joined: Tue Apr 14, 2015 8:05 am
Re: Silent windows (de)installation
freecadcmd.exe reports a python error, line 400 in 'bin\lib\os.py' on 'import UserDict':
"ImportError: No module named Userdict"
Found file 'userdict.py' in 'bin\lib' directory. So probably it could not be found!?
freecad.exe --write-log creates no output or file in %appdata%\freecad\freecad.log
Perhaps the error comes before it could be started...
"ImportError: No module named Userdict"
Found file 'userdict.py' in 'bin\lib' directory. So probably it could not be found!?
freecad.exe --write-log creates no output or file in %appdata%\freecad\freecad.log
Perhaps the error comes before it could be started...
Re: Silent windows (de)installation
Is this the directory structure of an *installed* FreeCAD? I ask this because you can open the NSIS installer with 7-zip and extract all files but AFAIK this won't be the correct directory structure.'bin\lib\os.py'
I would have expected that lib is not a sub-directory of bin but a sibling directory, i.e. they have the same parent directory.
Re: Silent windows (de)installation
OK, I just looked at an installed FreeCAD and the directory structure is correct but the directory must be "Lib" and not "lib".
-
- Posts: 14
- Joined: Tue Apr 14, 2015 8:05 am
Re: Silent windows (de)installation
Yes, was copied from an installation directory.
But IMO is windows case-insensitive?! So 'Lib' should be the same as 'lib'?
Perhaps something went wrong on copying, so I will retry the procedure...
But IMO is windows case-insensitive?! So 'Lib' should be the same as 'lib'?
Perhaps something went wrong on copying, so I will retry the procedure...
Re: Silent windows (de)installation
Sure, Windows or better NTFS is case-insensitive but Python is not. So, you should try if renaming it to "Lib" fixes the problem.