Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

n_and

2
Posts
A member registered Jan 08, 2023

Recent community posts

if you want to faster/better work around the uninstaller (which is still easy without) and auto restart the game you can use this (or a similar) batch:

=================

@echo do not click restart but press alt+F4

@pause

:start

"Game That Deletes Itself.exe"

goto start

===============

just copy everything within the ==== (without them!) lines into a text file and save it as restart.cmd or so inside the game dir, then when it quits it starts again and you dont have to do it manually, if you want to stop it just click the x on the console window fast enough before the game restarts...


have fun

(2 edits)

the game is grate, but the uninstaller is not, you should improve it. First of all it is able to make the game not working by deleting some .dll file, but it is not working entirely


G:\Downloads\Game That Deletes Itself\Uninstaller

System.Diagnostics.Process (Game That Deletes Itself)

Unhandled exception. System.UnauthorizedAccessException: Access to the path 'Uninstaller.dll' is denied.

   at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)

   at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)

   at Uninstaller.Program.Main(String[] args)

or:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


that is do to you are developing for windows (instead of a well designed os) that prevents software from deleting files that are currently opened in an easy way. So first you should do something like taskkill /im:"Game That Deletes Itself.exe" /f to kill your game, then when it is done (maybe try it anothertime and check the return value) you should kill the game. Secoundly you shouldn't design your uninstaller as a console application but rather as a windows application without a window, so it cant be quit that easy. And it should be moch faster, therefore you should use something that generates native code like c++ without .net or other runtime stuff (i suggest minGW or Lazarus )

and then you will get the stuff deleted in less then a secound without the user able to stop it without removing the installer before starting the game or running a infinite loop that kills all uninstaller.exe files.

And to dont allow unexpirenced users to delete the uninstaller you could just set the file attr as hidden so you need to show it (or even better hide the installer code in a dll that is requiered to run the game but thats to  mean i guess ) 

nice idea

happy hacking

n/and