DavidXanatos / DiskCryptor

A fork of the DiskCryptor full disk encryption tool
https://www.diskcryptor.org/
431 stars 100 forks source link

Headless installation #66

Open myCrack opened 1 year ago

myCrack commented 1 year ago

I was trying to install diskcryptor on remote windows server w/o desktop experience, like this:

> cd /D c:/apps
> curl -LOs https://github.com/DavidXanatos/DiskCryptor/releases/download/v1.2.3/dcrypt_setup_1.2_beta_3_signed.exe
> dcrypt_setup_1.2_beta_3_signed.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /ALLUSERS /LOG=log /DIR="c:\apps\dcrypt"

But in the end, the software is not installed, and the installer process is still running.

Here is the installation log:

> type log
29.580   Log opened. (Time zone: UTC+00:00)
29.580   Setup version: Inno Setup version 5.5.8 (u)
29.580   Original Setup EXE: c:\apps\dcrypt_setup_1.2_beta_3_signed.exe
29.580   Setup command line: /SL5="$5DA0092,1206527,119296,c:\apps\dcrypt_setup_1.2_beta_3_signed.exe" /SP- /VERYSILENT /SUPPRESSMSGBOXES /ALLUSERS /LOG=log /DIR="c:\apps\dcrypt"
29.580   Windows version: 10.0.20348  (NT platform: Yes)
29.580   64-bit Windows: Yes
29.580   Processor architecture: x64
29.580   User privileges: Administrative
29.581   64-bit install mode: Yes
29.592   Created temporary directory: C:\Users\Administrator\AppData\Local\Temp\is-096C9.tmp
29.636   Message box (OK):
         This is a BETA release, use it at your own risk!
         This tool is provided on an "as is" basis, with no warranty of any kind, express or implied.

From *.iss file, i figured out how to install it in manual mode - just use dcinst -setup and restart the system. But to do this, first i have to extract the program files from the installer - and to do that i just installed it on a system with desktop experience and then put extracted files to the server.

So, please, either make silent installation to be possible, or include a *.7z archive to the release page.

systracer commented 1 year ago

MsgBox -> SuppressibleMsgBox

myCrack commented 8 months ago

Cool! Thanks.

I will wait new release, and after that i'll close issue if everything will be as expected.

myCrack commented 8 months ago

With 1.3 - the same as before, in the end, the software is not installed, and the installer process is still running. So, #76 is not a solution.

Here is the installation log:

> type log
20.441   Log opened. (Time zone: UTC+00:00)
20.441   Setup version: Inno Setup version 6.2.2
20.441   Original Setup EXE: c:\apps\dcrypt_setup_1.3_beta.exe
20.441   Setup command line: /SL5="$3002C,1994106,832512,c:\apps\dcrypt_setup_1.3_beta.exe" /SP- /VERYSILENT /SUPPRESSMSGBOXES /ALLUSERS /LOG=log /DIR="c:\apps\dcrypt"
20.441   Windows version: 10.0.20348  (NT platform: Yes)
20.441   64-bit Windows: Yes
20.441   Processor architecture: x64
20.441   User privileges: Administrative
20.457   Administrative install mode: Yes
20.457   Install mode root key: HKEY_LOCAL_MACHINE
20.457   64-bit install mode: Yes
20.520   Created temporary directory: C:\Users\Administrator\AppData\Local\Temp\is-D6DR2.tmp 2023-10-28 04:00:20.614   Message box (OK):
         This is a BETA release, use it at your own risk!
         This tool is provided on an "as is" basis, with no warranty of any kind, express or implied.