Unattended / silent installation of mBlock5 V5.1.0


#1

Hello all,

I encounter a problem during the silent installation of mBlock5.

What I want:
Unattended software distribution without any user action.

System: Win7 Pro x64

What happens:
At first everything runs fine, but after all files are copied to the harddrive the routine runs the driver installation and here is where the problem occurs.
While installing the ch341 driver Windows prompts a security dialogue because of untrusted certificates.
Unfortunately there is no “always trust…” checkbox, so no certificate will be added to the system, which later could be extracted to preinstall on another system to avoid this problem.

It is possible to choose “install this driver anyway” and the driver will be installed, but we don’t want any user action.

It is also possible to install the driver using the “Driver_for_Windows.exe” from …\mblock\drivers\ and execute this one before the common installation, but the setup routine will uninstall the previous installed driver and thereby destroys this action.

Dear @tech_support, would it be possible to execute the installation routine without installing the drivers automatically?

Looking forward for helpful answers,
HaFuDin


#2

Did you try to disable antivirus and firewall?


#3

Yes, I also tried this scenario.
Unfortunately same result.


#4

Also disabling UAC doesn’t help.


#5

That is strange, could you show us a video about that?
And same issue with another computer?
Any special program installed on the computer?


#6

Yes, same issue with another computer.
No, there are no special programs, like system tweaker utlities or any system monitoring programs installed.

I found out the certificate for “ch341ser.inf” given with the “ch341ser.cat” file isn’t valid anymore.
Validity ended on 29. May 2019.
The strange thing about this is, when I choose “install the driver anyway” during installation, Windows adds a property field to the certificate called “Erweiterte Fehlerinformation” (extended error information) where it grants validity, although it is outdated.

After exporting this certificate into a file and importing it manually to the “Trusted Publishers” the property field is lost and the certificate remains invalid.

Please see attached pictures.





#7

Hi HaFuDin,
Would you please still take a video to show the process? I also use windows 7 Pro 64 bits computer, I, and my colleague never encountered same or similar issue. I tried to check the ch340ser.cat, there is no information for its validity date information. Hope you can do me a video since you start to install the mBlock 5.1.
Thank you!


#8

There you are.

Please download the 9mb Video here:
https://www.magentacloud.de/lnk/U9D0xZ5G

or here:

Following the relevant excerpt of the installation log:

2019-07-31 11:57:35.286 Log opened. (Time zone: UTC+02:00)
2019-07-31 11:57:35.286 Setup version: Inno Setup version 5.5.9 (u)
2019-07-31 11:57:35.286 Original Setup EXE: C:\Users\Administrator.WIN-TESTCLIENT\Desktop\V5.1.0.exe
2019-07-31 11:57:35.286 Setup command line: /SL5="$D0264,157920132,485376,C:\Users\Administrator.WIN-TESTCLIENT\Desktop\V5.1.0.exe" /SILENT /LOG=c:\tmp\mblocklog.txt
2019-07-31 11:57:35.286 Windows version: 6.1.7601 SP1 (NT platform: Yes)
2019-07-31 11:57:35.286 64-bit Windows: Yes
2019-07-31 11:57:35.286 Processor architecture: x64
2019-07-31 11:57:35.286 User privileges: Administrative
2019-07-31 11:57:35.348 64-bit install mode: No
2019-07-31 11:57:35.351 Created temporary directory: C:\Users\ADMINI~1.WIN\AppData\Local\Temp\is-IEDAP.tmp
2019-07-31 11:57:35.981 Starting the installation process.
2019-07-31 11:57:35.985 Creating directory: C:\ProgramData\mBlock5
2019-07-31 11:57:35.986 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus
2019-07-31 11:57:35.986 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\app
2019-07-31 11:57:35.987 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\app\runtime
2019-07-31 11:57:35.987 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules
2019-07-31 11:57:35.988 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\resolve
2019-07-31 11:57:35.988 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\resolve\test
2019-07-31 11:57:35.988 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\resolve\test\resolver
2019-07-31 11:57:35.989 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\resolve\test\resolver\symlinked
2019-07-31 11:57:35.989 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\resolve\test\resolver\symlinked_
2019-07-31 11:57:35.990 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\resolve\test\resolver\symlinked_\symlink_target
2019-07-31 11:57:35.990 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\tar-fs
2019-07-31 11:57:35.990 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\tar-fs\test
2019-07-31 11:57:35.991 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\tar-fs\test\fixtures
2019-07-31 11:57:35.991 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\tar-fs\test\fixtures\e
2019-07-31 11:57:35.991 Creating directory: C:\ProgramData\mBlock5\IdeServicePlus\node_modules\tar-fs\test\fixtures\e\directory
2019-07-31 11:57:35.992 Directory for uninstall files: C:\ProgramData\mBlock5
2019-07-31 11:57:35.992 Creating new uninstall log: C:\ProgramData\mBlock5\unins000.dat
2019-07-31 11:57:35.995 – File entry –
2019-07-31 11:57:35.996 Dest filename: C:\ProgramData\mBlock5\unins000.exe
2019-07-31 11:57:35.997 Time stamp of our file: 2019-07-31 11:57:35.172
2019-07-31 11:57:35.997 Installing the file.
2019-07-31 11:57:36.002 Uninstaller requires administrator: Yes
2019-07-31 11:57:36.003 Successfully installed the file.
2019-07-31 11:57:36.003 – File entry –
2019-07-31 11:57:36.003 Dest filename: C:\ProgramData\mBlock5\IdeServicePlus\mnode.exe
2019-07-31 11:57:36.003 Time stamp of our file: 2019-07-03 22:03:22.000
2019-07-31 11:57:36.003 Installing the file.
2019-07-31 11:57:36.779 Successfully installed the file.
2019-07-31 11:57:36.779 Setting permissions on file: C:\ProgramData\mBlock5\IdeServicePlus\mnode.exe
2019-07-31 11:57:36.780 – File entry –
2019-07-31 11:57:36.780 Dest filename: C:\ProgramData\mBlock5\IdeServicePlus\app\app.js
2019-07-31 11:57:36.780 Time stamp of our file: 2019-07-03 22:02:10.000
2019-07-31 11:57:36.780 Installing the file.
2019-07-31 11:57:36.781 Successfully installed the file.
2019-07-31 11:57:36.781 Setting permissions on file: C:\ProgramData\mBlock5\IdeServicePlus\app\app.js
2019-07-31 11:57:36.782 – File entry –



2019-07-31 11:58:41.543 – File entry –
2019-07-31 11:58:41.543 Dest filename: C:\ProgramData\mBlock5\drivers\usbserial\x32\usbser.sys
2019-07-31 11:58:41.543 Time stamp of our file: 2018-04-19 18:03:32.000
2019-07-31 11:58:41.543 Installing the file.
2019-07-31 11:58:41.546 Successfully installed the file.
2019-07-31 11:58:41.546 – File entry –
2019-07-31 11:58:41.546 Dest filename: C:\ProgramData\mBlock5\drivers\usbserial\x64\mdmcpq.inf
2019-07-31 11:58:41.546 Time stamp of our file: 2018-04-19 18:03:32.000
2019-07-31 11:58:41.546 Installing the file.
2019-07-31 11:58:41.546 Creating directory: C:\ProgramData\mBlock5\drivers\usbserial\x64
2019-07-31 11:58:41.551 Successfully installed the file.
2019-07-31 11:58:41.551 – File entry –
2019-07-31 11:58:41.551 Dest filename: C:\ProgramData\mBlock5\drivers\usbserial\x64\mdmcpq.PNF
2019-07-31 11:58:41.551 Time stamp of our file: 2018-04-19 18:03:32.000
2019-07-31 11:58:41.551 Installing the file.
2019-07-31 11:58:41.557 Successfully installed the file.
2019-07-31 11:58:41.557 – File entry –
2019-07-31 11:58:41.558 Dest filename: C:\ProgramData\mBlock5\drivers\usbserial\x64\usbser.sys
2019-07-31 11:58:41.558 Time stamp of our file: 2018-04-19 18:03:32.000
2019-07-31 11:58:41.558 Installing the file.
2019-07-31 11:58:41.561 Successfully installed the file.
2019-07-31 11:58:41.561 – File entry –
2019-07-31 11:58:41.561 Dest filename: C:\Windows\inf\mdmcpq.inf
2019-07-31 11:58:41.574 Time stamp of our file: 2018-04-19 18:03:32.000
2019-07-31 11:58:41.574 Dest file exists.
2019-07-31 11:58:41.574 Skipping due to “onlyifdoesntexist” flag.
2019-07-31 11:58:41.574 – File entry –
2019-07-31 11:58:41.575 Dest filename: C:\Windows\system32\drivers\usbser.sys
2019-07-31 11:58:41.591 Time stamp of our file: 2018-04-19 18:03:32.000
2019-07-31 11:58:41.591 Dest file exists.
2019-07-31 11:58:41.591 Skipping due to “onlyifdoesntexist” flag.
2019-07-31 11:58:41.980 – Icon entry –
2019-07-31 11:58:41.981 Dest filename: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\mBlock5\mBlock.lnk
2019-07-31 11:58:41.981 Creating the icon.
2019-07-31 11:58:42.078 Successfully created the icon.
2019-07-31 11:58:42.150 – Icon entry –
2019-07-31 11:58:42.150 Dest filename: C:\Users\Administrator.WIN-TESTCLIENT\Desktop\mBlock.lnk
2019-07-31 11:58:42.150 Creating the icon.
2019-07-31 11:58:42.156 Successfully created the icon.
2019-07-31 11:58:42.930 Installation process succeeded.
2019-07-31 11:58:42.931 – Run entry –
2019-07-31 11:58:42.931 Run as: Current user
2019-07-31 11:58:42.931 Type: Exec
2019-07-31 11:58:42.932 Filename: C:\ProgramData\mBlock5\drivers\ch341\SETUP.EXE
2019-07-31 11:58:42.932 Parameters: /u
2019-07-31 11:58:44.298 Process exit code: 0
2019-07-31 11:58:44.298 – Run entry –
2019-07-31 11:58:44.298 Run as: Current user
2019-07-31 11:58:44.298 Type: Exec
2019-07-31 11:58:44.298 Filename: C:\ProgramData\mBlock5\drivers\ch341\SETUP.EXE
2019-07-31 11:58:44.298 Parameters: /s
2019-07-31 11:59:15.152 Process exit code: 0
2019-07-31 11:59:15.152 – Run entry –
2019-07-31 11:59:15.152 Run as: Current user
2019-07-31 11:59:15.152 Type: Exec
2019-07-31 11:59:15.152 Filename: C:\ProgramData\mBlock5\drivers\usbserial\dpinst-x86.exe
2019-07-31 11:59:15.152 Parameters: /sw /se
2019-07-31 11:59:15.765 Process exit code: 2147483648
2019-07-31 11:59:15.770 Need to restart Windows? No
2019-07-31 11:59:15.773 Deinitializing Setup.
2019-07-31 11:59:15.788 Log closed.


#9

Sorry the file you sent, I downloaded it but failed to open with an error.
With the error message copied, I am afraid I cannot tell the issue.
Could you send it again to my email stephanie.wu@makeblock.com?