Commit ab14909f authored by Gabriel Moreau's avatar Gabriel Moreau
Browse files

Try to use autodel config module

parent c7a6c1ca
......@@ -5,7 +5,7 @@
* The latest version of the SWMB **documentation** can be found [online](https://resinfo-gt.pages.in2p3.fr/swmb/resinfo-swmb/docs/).
* The latest version of the SWMB **setup installer** is available on the [download page](https://resinfo-gt.pages.in2p3.fr/swmb/resinfo-swmb/).
Main sub-menu:
**Main sub-menu**:
* [CONTRIBUTING](./CONTRIBUTING.md)
* [FAQ](./FAQ.md)
......
......@@ -10,22 +10,23 @@ $EncryptedPass = ConvertFrom-SecureString -SecureString $Password -Key $Key
Write-Output ""
Write-Output "# Lines to add in your configuration file Custom-VarOverload.psm1"
Write-Output "# or in the auto delete one Custom-VarAutodel.psm1"
Write-Output ""
Write-Output "`$Global:SWMB_Custom.KesSecureString = '$EncryptedPass'"
Write-Output "`$Global:SWMB_Custom.KesKeyFile = '$KeyFile'"
Write-Output ""
If (!(Test-Path -LiteralPath ".\Custom-VarOverload.psm1")) {
$Query = Read-Host -Prompt "Do you want to create a configration file in the current folder [Y|n]"
If (!(Test-Path -LiteralPath ".\Custom-VarAutodel.psm1")) {
$Query = Read-Host -Prompt "Do you want to create an auto-delete configuration file (Custom-VarAutodel) in the current folder [Y|n]"
If ($Query.ToLower() -ne "n") {
Write-Output "
# Configuration for Kaspersky Endpoint
`$Global:SWMB_Custom.KesSecureString = '$EncryptedPass'
`$Global:SWMB_Custom.KesKeyFile = '$KeyFile'
" | Out-File -FilePath ".\Custom-VarOverload.psm1" -NoClobber
" | Out-File -FilePath ".\Custom-VarAutodel.psm1" -NoClobber
}
} Else {
$Query = Read-Host -Prompt "Do you want to append theses parameters in your current configuration file [Y|n]"
} ElseIf (Test-Path -LiteralPath ".\Custom-VarOverload.psm1") {
$Query = Read-Host -Prompt "Do you want to append theses parameters in your current configuration file (Custom-VarOverload) [Y|n]"
If ($Query.ToLower() -ne "n") {
Write-Output "
# Configuration for Kaspersky Endpoint
......
......@@ -21,7 +21,7 @@ Unicode True
!insertmacro GetOptions
!define NAME "SWMB"
!define VERSION "3.13.83.1"
!define VERSION "3.13.83.2"
!define DESCRIPTION "Secure Windows Mode Batch"
!define PUBLISHER "CNRS France, RESINFO / GT SWMB"
!define PUBLISHERLIGHT "CNRS France"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment