-
Notifications
You must be signed in to change notification settings - Fork 0
/
postinstall.bat
43 lines (41 loc) · 1.37 KB
/
postinstall.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@ECHO OFF
ECHO Configuring Orange... Do not close command prompt.
IF "%PREFIX:users=%"=="%PREFIX%" (
REM systemwide installation
FOR /F "delims=" %%d IN ('dir /AD /B "%SYSTEMDRIVE%\Users"') DO (
IF /I "%%d" NEQ "All Users" (
IF /I "%%d" NEQ "Default User" (
IF /I "%%d" NEQ "Public" (
IF NOT EXIST "%SYSTEMDRIVE%\Users\%%d\AppData\Roaming\biolab.si\" (
MKDIR "%SYSTEMDRIVE%\Users\%%d\AppData\Roaming\biolab.si"
)
(
ECHO [notifications]
ECHO check-notifications=false
ECHO.
ECHO [reporting]
ECHO send-statistics=false
ECHO.
ECHO [startup]
ECHO check-updates=false
) > "%SYSTEMDRIVE%\Users\%%d\AppData\Roaming\biolab.si\orange.ini"
)
)
)
)
) ELSE (
REM single user installation
IF NOT EXIST "%APPDATA%\biolab.si\" (
MKDIR "%APPDATA%\biolab.si
)
(
ECHO [notifications]
ECHO check-notifications=false
ECHO.
ECHO [reporting]
ECHO send-statistics=false
ECHO.
ECHO [startup]
ECHO check-updates=false
) > "%APPDATA%\biolab.si\orange.ini"
)