Skip to content

Commit d4261c4

Browse files
updates!
1 parent 6b6a8ac commit d4261c4

File tree

6 files changed

+79
-83
lines changed

6 files changed

+79
-83
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog:
22

3+
v.1.6.2 (16 April 2017)
4+
* Some general improvements to the updater and installer.
5+
* Fixes.
6+
37
v.1.6.1 (12 December 2016)
48
* The comments were rewritten completely.
59
* Some visual changes to the installer and updater.

installer/fake-sandbox-installer.bat

Lines changed: 37 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,32 @@ SET @proc="WinDbg.exe","idaq.exe","wireshark.exe","vmacthlp.exe","VBoxService.ex
1919
:: Title and Version code
2020
TITLE Fake Sandbox Processes Installer
2121
COLOR 0F
22-
SET @v=1.6.1
22+
SET @v=1.6.2
2323
SET path=%~dp0
2424

2525
:: Just some nice user interface things
2626
cls
27-
echo Fake-Sandbox installation script. Version %@v%, 2016.
27+
echo Fake-Sandbox-Processes installation script. Version %@v%, 2017.
2828
echo Visit https://www.github.com/aperture-diversion/fake-sandbox/ for updates and fixes.
2929
echo.
3030
echo.
31-
echo You are about to install the fake-sandbox script to your computer (autostart).
32-
SET /P ANSWER=Would you like to continue? (y/n):
33-
31+
echo Firstly, thanks for your interest in FSP! Let's get started now.
32+
echo.
33+
echo.
34+
echo.
35+
echo # You are about to install the FSP scripts on your computer (autostart).
36+
SET /P ANSWER=# Would you like to continue? (y/n):
3437
if /i %ANSWER%==y (goto install)
3538
if /i %ANSWER%==n (goto no)
3639
goto unrecog
3740

3841
:: Creation of the fake-sandbox.ps1 script in the new directory %appdata%\Fake-SanboxProcesses\
3942
:install
43+
if not exist %appdata%\Fake-SandboxProcesses\ (md "%appdata%\Fake-SandboxProcesses\")
4044
del "%appdata%\Fake-SandboxProcesses\fake-sandbox.ps1"
4145
del "%appdata%\Fake-SandboxProcesses\current_version.txt"
42-
if not exist %appdata%\Fake-SandboxProcesses\ (md "%appdata%\Fake-SandboxProcesses\")
4346

44-
echo # This file is part of Fake Sandbox Processes (Version %@v%)>"%appdata%\Fake-SandboxProcesses\fake-sandbox.ps1"
45-
echo # available on https://www.github.com/aperture-diversion/fake-sandbox/ .>>"%appdata%\Fake-SandboxProcesses\fake-sandbox.ps1"
47+
echo # This file is part of Fake Sandbox Processes (Version %@v%) available on https://www.github.com/aperture-diversion/fake-sandbox/>"%appdata%\Fake-SandboxProcesses\fake-sandbox.ps1"
4648
echo.>>"%appdata%\Fake-SandboxProcesses\fake-sandbox.ps1"
4749
echo $fakeProcesses = @(%@proc%)>>"%appdata%\Fake-SandboxProcesses\fake-sandbox.ps1"
4850
echo.>>"%appdata%\Fake-SandboxProcesses\fake-sandbox.ps1"
@@ -66,14 +68,12 @@ echo Set-Location $oldpwd>>"%appdata%\Fake-SandboxProcesses\fake-sandbox.ps1
6668
del "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
6769

6870
echo @echo off>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
69-
echo :: This file is part of Fake Sandbox Processes (Version %@v%)>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
70-
echo :: available on https://www.github.com/aperture-diversion/fake-sandbox/ .>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
71-
echo TITLE Fake-Sandbox is starting...>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
71+
echo :: This file is part of Fake Sandbox Processes (Version %@v%) available on https://www.github.com/aperture-diversion/fake-sandbox/>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
72+
echo COLOR 0F>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
73+
echo TITLE FSP is starting...>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
7274
echo.>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
73-
echo.>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
74-
echo echo [*] Starting FSP script....>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
75+
echo echo [*] Starting FSP script...>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
7576
echo start /MIN powershell -executionpolicy remotesigned -WindowStyle Hidden -File "C:\Users\Matthias\AppData\Roaming\Fake-SandboxProcesses\fake-sandbox.ps1">>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
76-
echo.>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
7777

7878
cls
7979
echo.
@@ -82,29 +82,23 @@ echo Would you like to enable the auto-updater to search and install updates reg
8282
SET /p asw=Choose (y/n):
8383
COLOR 0F
8484
if /i %asw%==y (goto updater)
85-
if /i %asw%==n (
86-
echo exit>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
87-
goto done
88-
)
85+
if /i %asw%==n (goto done)
8986
goto unrecog
9087

91-
:: This writes some stuff to the execution file and the FSP directory to allow auto-updates
88+
:: This writes additional code to the execution file and the FSP directory to allow auto-updates
9289
:updater
9390
echo %@v%>"%appdata%\Fake-SandboxProcesses\current_version.txt"
94-
91+
echo.>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
9592
echo echo [*] Starting updater....>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
9693
echo start /MIN %appdata%\Fake-SandboxProcesses\updater.bat>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
97-
echo exit>>"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
9894

9995
:: Creation of the updater-updater (lol) script in the same directory
100-
echo :: This file is part of Fake Sandbox Processes (Version %@v%)>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
101-
echo :: available on https://www.github.com/aperture-diversion/fake-sandbox/ .>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
96+
echo :: This file is part of Fake Sandbox Processes (Version %@v%) available on https://www.github.com/aperture-diversion/fake-sandbox/>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
10297
echo @echo off>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
103-
echo.>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
98+
echo COLOR 0F>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
10499
echo TITLE Installing latest version of FSP updater...>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
105100
echo.>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
106101
echo ping -n 1 127.0.0.1^>NUL>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
107-
echo.>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
108102
echo del %appdata%\Fake-SandboxProcesses\uversion.txt>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
109103
echo move /y %appdata%\Fake-SandboxProcesses\updater_new.bat %appdata%\Fake-SandboxProcesses\updater.bat>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
110104
echo ping -n 1 127.0.0.1^>NUL>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
@@ -114,29 +108,33 @@ echo exit>>"%appdata%\Fake-SandboxProcesses\update-installer.bat"
114108

115109
:: Creation of the updater.bat script in the install directory
116110
echo @echo off>"%appdata%\Fake-SandboxProcesses\updater.bat"
117-
echo echo [*] Downloading new updater...>>"%appdata%\Fake-SandboxProcesses\updater.bat"
111+
echo COLOR 0F>>"%appdata%\Fake-SandboxProcesses\updater.bat"
112+
echo echo [*] First install of FSP updater...>>"%appdata%\Fake-SandboxProcesses\updater.bat"
113+
echo echo [*] Downloading...>>"%appdata%\Fake-SandboxProcesses\updater.bat"
118114
echo start /wait /MIN powershell -executionpolicy remotesigned -WindowStyle Hidden -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Aperture-Diversion/fake-sandbox/master/updater/updater.bat', '%appdata%\Fake-SandboxProcesses\updater_new.bat')">>"%appdata%\Fake-SandboxProcesses\updater.bat"
119-
echo ping -n 1 127.0.0.1^>NUL>>"%appdata%\Fake-SandboxProcesses\updater.bat">>"%appdata%\Fake-SandboxProcesses\updater.bat"
115+
echo ping -n 2 127.0.0.1^>NUL>>"%appdata%\Fake-SandboxProcesses\updater.bat">>"%appdata%\Fake-SandboxProcesses\updater.bat"
120116
echo if exist %appdata%\Fake-SandboxProcesses\updater_new.bat (>>"%appdata%\Fake-SandboxProcesses\updater.bat"
121117
echo start /min %appdata%\Fake-SandboxProcesses\update-installer.bat>>"%appdata%\Fake-SandboxProcesses\updater.bat"
122118
echo exit>>"%appdata%\Fake-SandboxProcesses\updater.bat"
123119
echo )>>"%appdata%\Fake-SandboxProcesses\updater.bat"
124120
echo exit>>"%appdata%\Fake-SandboxProcesses\updater.bat"
125121

126-
:: -------------------------------------------------------------------------------------------------------------------------------
127-
:: End of file installation
128-
:: ##>>DEBUGGING<<##
129-
:: <---- delete this line and add "pause" instead to enable debugging.
130-
:: -------------------------------------------------------------------------------------------------------------------------------
122+
:: -------------------------------------------------------------------------------------::
123+
:: End of file installation ::
124+
:: ##>>DEBUGGING<<## ::
125+
:: <---- delete this line and add "pause" instead to enable debugging. ::
126+
:: -------------------------------------------------------------------------------------::
131127

132-
:: Look for any error
128+
:: Look for any errors
133129
:done
134130
if errorlevel 1 goto error
135131
COLOR 0A
136132
cls
137133
echo.
138-
echo Done, all files have been created. This should work after you relogin. Press any key to exit...
139-
echo.
134+
echo Done, all files have been created. This should work after you relogin.
135+
echo Thanks for installing this script!
136+
echo.
137+
echo Press any key to exit...
140138
pause>NUL
141139
exit
142140

@@ -147,22 +145,20 @@ cls
147145
echo.
148146
echo An error occured!
149147
echo If you already had a previous version installed and tried to update it, ignore this error - everything went fine.
150-
echo If this is your first installation, please try it again or enable debugging in this script.
148+
echo If this is your first installation, please try again or enable debugging in this script.
151149
echo.
152150
echo The file can be found here:
153151
echo %path:~0,-1%
154152
echo.
155153
echo Press any key to exit...
156-
echo.
157154
pause>NUL
158155
exit
159156

160157
:: If you chose not to install this will execute
161158
:no
162159
cls
163160
echo.
164-
echo You chose not to install fake-sandbox processes. Press any key to exit...
165-
echo.
161+
echo You chose not to install FSP. Press any key to exit...
166162
pause>NUL
167163
exit
168164

@@ -172,9 +168,8 @@ COLOR 0C
172168
cls
173169
echo.
174170
echo An error occured!
175-
echo Unrecognized command. You have to choose 'y' for yes and 'n' for no.
171+
echo Unrecognized command. You have to choose 'y' for yes or 'n' for no.
176172
echo.
177173
echo Press any key to restart...
178-
echo.
179174
pause>NUL
180-
goto start
175+
goto start

installer/uninstall.bat

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,34 @@ COLOR 0F
1010
:start
1111
cls
1212
echo.
13-
echo You are about to uninstall Fake Sandbox Processes from your computer.
14-
SET /P ANSWER=Are you sure you want to continue? (y/n):
13+
echo # You are about to uninstall Fake Sandbox Processes from your computer.
14+
SET /P ANSWER=# Are you sure you want to continue? (y/n):
1515
if /i %ANSWER%==y goto uninstall
1616
if /i %ANSWER%==n goto no
1717
goto unrecog
1818

19-
:: Delete the autostart file and the whole "Fake-SandboxProcesses" directory
19+
:: Delete the autostart script and the whole "Fake-SandboxProcesses" directory
2020
:uninstall
2121
del "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\fake-sandbox.bat"
2222
rmdir /s /q "%appdata%\Fake-SandboxProcesses\"
2323
cls
2424

25-
:: -------------------------------------------------------------------------------------------------------------------------------
26-
:: ##>>DEBUGGING<<##
27-
:: <---- delete this line and add "pause" instead to enable debugging.
28-
:: -------------------------------------------------------------------------------------------------------------------------------
25+
:: -------------------------------------------------------------------------::
26+
:: ##>>DEBUGGING<<## ::
27+
:: <---- delete this line and add "pause" instead to enable debugging. ::
28+
:: -------------------------------------------------------------------------::
2929

3030
:: Look for any error
3131
if errorlevel 1 goto error
3232
COLOR 0A
3333
echo.
34-
echo Successfully removed FSP. Please relogin to make sure there aren't any processes left running.
35-
echo They will be gone whenever you restart anyways. Press any key to exit...
34+
echo Successfully removed FSP. All remaining processes will be gone once you relogin or reboot your PC.
3635
echo.
36+
echo # Sorry to see you go. Got any feedback? Please submit it here:
37+
echo # https://github.com/aperture-diversion/fake-sandbox/issues
38+
echo.
39+
echo.
40+
echo Press any key to exit...
3741
pause>NUL
3842
exit
3943

@@ -46,16 +50,14 @@ echo The uninstaller encountered a strange, unknown error. Please enable debuggi
4650
echo %path:~0,-1%
4751
echo.
4852
echo Press any key to exit...
49-
echo.
5053
pause>NUL
5154
exit
5255

5356
:: If you chose not to uninstall this will execute
5457
:no
5558
cls
5659
echo.
57-
echo You chose not to uninstall Fake Sandbox Processes. Press any key to exit...
58-
echo.
60+
echo You chose not to uninstall Fake-Sandbox-Processes. Press any key to exit...
5961
pause>NUL
6062
exit
6163

@@ -65,9 +67,8 @@ COLOR 0C
6567
cls
6668
echo.
6769
echo An error occured!
68-
echo Unrecognized command. You have to choose 'y' for yes and 'n' for no.
70+
echo Unrecognized command. You have to choose 'y' for yes or 'n' for no.
6971
echo.
7072
echo Press any key to restart...
71-
echo.
7273
pause>NUL
7374
goto start

updater/updater.bat

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
11
@echo off
22

33
:: Start by setting some version numbers and the title
4+
COLOR 0F
45
SET /p v=<"%appdata%\Fake-SandboxProcesses\current_version.txt"
5-
SET uversion=7
6+
SET uversion=8
67
TITLE FSP Updater v%uversion%
78
ping -n 5 127.0.0.1>NUL
89

910
:: Download updater version number
1011
echo [*] Getting latest updater version number...
1112
start /wait /MIN powershell -executionpolicy remotesigned -WindowStyle Hidden -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Aperture-Diversion/fake-sandbox/master/updater/uversion', '%appdata%\Fake-SandboxProcesses\uversion.txt')"
12-
ping -n 1 127.0.0.1>NUL
13+
ping -n 2 127.0.0.1>NUL
1314

14-
:: Look if the version code has changed
15+
:: Has the version code changed?
1516
SET /p nuv=<"%appdata%\Fake-SandboxProcesses\uversion.txt"
1617
if not "%nuv%"=="%uversion%" goto new_updater
1718
del %appdata%\Fake-SandboxProcesses\uversion.txt
1819

1920
:: Download FSP version number
20-
echo [*] Getting latest FSP version...
21+
echo [*] Getting latest FSP version number...
2122
start /wait /MIN powershell -executionpolicy remotesigned -WindowStyle Hidden -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Aperture-Diversion/fake-sandbox/master/updater/version', '%appdata%\Fake-SandboxProcesses\version.txt')"
22-
ping -n 1 127.0.0.1>NUL
23+
ping -n 2 127.0.0.1>NUL
2324

24-
:: Look if the version code has changed
25+
:: Has the version code changed?
2526
SET /p nv=<"%appdata%\Fake-SandboxProcesses\version.txt"
2627
if "%nv%"=="%v%" goto ok
2728

2829
:: Ask to install the new version
2930
SET /p version=<"%appdata%\Fake-SandboxProcesses\version.txt"
3031
del "%appdata%\Fake-SandboxProcesses\version.txt"
31-
msg * A new version (v%version%) of Fake Sandbox Processes is available!
32+
msg * A new version (v%version%) of Fake-Sandbox-Processes is available!
3233
cls
3334
echo.
34-
echo Version %version% is now available. Changelog: https://github.com/Aperture-Diversion/fake-sandbox/blob/master/Changelog.md
35+
echo Version %version% is now available!
36+
echo Changelog: https://github.com/Aperture-Diversion/fake-sandbox/blob/master/Changelog.md
3537
echo.
36-
SET /P ANSWER=Would you like to download and install the update? (y/n):
38+
SET /P ANSWER=# Would you like to download and install the update? (y/n):
3739
if /i %ANSWER%==y goto install
3840
if /i %ANSWER%==n goto no
3941
goto unrecog
@@ -45,20 +47,15 @@ cls
4547
echo.
4648
echo [*] Downloading...
4749
start /wait /MIN powershell -executionpolicy remotesigned -WindowStyle Hidden -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Aperture-Diversion/fake-sandbox/master/installer/fake-sandbox-installer.bat', '%appdata%\Fake-SandboxProcesses\fsp-installer_update.bat')"
48-
echo Installing new files...
49-
ping -n 1 127.0.0.1>NUL
50-
50+
ping -n 2 127.0.0.1>NUL
5151
if exist %appdata%\Fake-SandboxProcesses\fsp-installer_update.bat goto continue
5252
goto dlerror
5353

5454
:: If everything went fine this will execute
5555
:continue
56-
cls
57-
echo.
58-
echo Download successful!
59-
echo Starting installer now...
56+
echo [*] Download successful!
57+
echo [*] Starting installer...
6058
echo.
61-
timeout 2
6259
CALL %appdata%\Fake-SandboxProcesses\fsp-installer_update.bat
6360
ping -n 1 127.0.0.1>NUL
6461
del %appdata%\Fake-SandboxProcesses\fsp-installer_update.bat
@@ -69,11 +66,10 @@ exit
6966
cls
7067
COLOR 0C
7168
echo.
72-
echo An error occured while downloading the new update!
73-
echo Please try again later.
69+
echo An error occured while downloading the update!
70+
echo Please try to download the new version manually.
7471
echo.
7572
echo Press any key to exit...
76-
echo.
7773
pause>NUL
7874
exit
7975

@@ -82,7 +78,6 @@ exit
8278
cls
8379
echo.
8480
echo You chose not to install the update. Press any key to exit...
85-
echo.
8681
pause>NUL
8782
exit
8883

@@ -99,20 +94,21 @@ COLOR 0C
9994
cls
10095
echo.
10196
echo An error occured!
102-
echo Unrecognized command. You have to choose 'y' for yes and 'n' for no.
97+
echo Unrecognized command. You have to choose 'y' for yes or 'n' for no.
10398
echo.
10499
echo Press any key to exit...
105-
echo.
106100
pause>NUL
107101
exit
108102

109103
:new_updater
110104
cls
111-
echo New updater version found!
105+
echo [*] New updater version found!
112106
echo [*] Downloading new updater...
113107
start /MIN powershell -executionpolicy remotesigned -WindowStyle Hidden -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Aperture-Diversion/fake-sandbox/master/updater/updater.bat', '%appdata%\Fake-SandboxProcesses\updater_new.bat')"
114108
ping -n 2 127.0.0.1>NUL
115109
if exist %appdata%\Fake-SandboxProcesses\updater_new.bat (
116110
start /min %appdata%\Fake-SandboxProcesses\update-installer.bat
117111
exit
118-
)
112+
)
113+
echo ERROR downloading the new updater. Closing...
114+
exit

updater/uversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7
1+
8

updater/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.1
1+
1.6.2

0 commit comments

Comments
 (0)