How to install mongoDB on windows?

Mongo Installation Process in Windows Are you ready for the installation … and use … Technically, it’s not an installation it’s just Downloading… I. Download the zip file http://www.mongodb.org/downloads II. Extract it and copy the files into your desired location. III. Start the DB engine. IV. Test the installation and use it. That’s it! So … Read more

How to install OpenJDK 11 on Windows?

Extract the zip file into a folder, e.g. C:\Program Files\Java\ and it will create a jdk-11 folder (where the bin folder is a direct sub-folder). You may need Administrator privileges to extract the zip file to this location. Set a PATH: Select Control Panel and then System. Click Advanced and then Environment Variables. Add the … Read more

How does PowerShell treat “.” in paths?

As js2010’s helpful answer states, it is the use of a .NET method that introduces the problem: .NET’s single, process-wide current directory typically and by design[1] differs from PowerShell’s runspace-specific one. This has the following implications: Since PowerShell itself does reliably interpret . as the current location (which is PowerShell’s generalization of the concept of … Read more

Microsoft SmartScreen – suspended using Inno Setup installer?

Nowadays, you have to use EV code signing certificates. See Transferring Microsoft SmartScreen reputation to renewed certificate. Below is the original answer, which addresses some specifics of the question. If you believe the problem is due to an unsigned uninstaller, make sure you set the SignTool directive of your Inno Setup project accordingly. And make … Read more

How to call LogonUser() to get a non-restricted full token inside a Windows Service with UAC enabled?

You can get an unfiltered token from LogonUser() by using the LOGON32_LOGON_BATCH option instead of the LOGON32_LOGON_INTERACTIVE option. There is some sample code in this answer which shows the use of LOGON32_LOGON_BATCH and the LogonUser() function to obtain an administrative token. Addendum: If you have SeTcbPrivilege, you have another option: you can use LOGON32_LOGON_INTERACTIVE when … Read more

Enumerating threads in Windows

Enumerating threads in a process at MSDN Blogs. Code snippet from there: #include <stdio.h> #include <windows.h> #include <tlhelp32.h> int __cdecl main(int argc, char **argv) { HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0); if (h != INVALID_HANDLE_VALUE) { THREADENTRY32 te; te.dwSize = sizeof(te); if (Thread32First(h, &te)) { do { if (te.dwSize >= FIELD_OFFSET(THREADENTRY32, th32OwnerProcessID) + sizeof(te.th32OwnerProcessID)) { printf(“Process … Read more