I'd like to add psexec type functionality to an application, but I'd like to have it in native Delphi. Ultimately my goal is to remotely execute a process as SYSTEM, which will require installing a service on the remote machine.
I'm familiar with the XCmd project, which is written in Visual C++. If there already exists a Delphi clone of this program/functionality that would be great. If not, I'll work to convert the XCmd project's logic to Delphi.
Does anyone know of a psexec or xcmd clone for Delphi?
RunAsSys comes close (doesn't work remotely though), it enables you to run something as system, my RunInSession tool has the ability to start a process in any session and remotely
Related
I have a private server that I've been slowly setting up for personal projects, but I've run into a bit of a roadblock. My server is running Arch linux [I like bleeding edge and minimalistic installs in situations like this] and I have Jenkins running on it so that I can have it automatically build projects. I have a project that I've been working on that is currently targeting the Win32/64 platform using MSVC, but I can't seem to find any info anywhere about setting up a job on Jenkins for this situation. I was hoping that I could maybe setup a Docker instance that would be able to provide the MSVC toolchain, especially since Visual Studio Code is available for Linux, and that I could use that as part of my Jenkins setup to generate Win binaries for me to test on my main machine. I mention this because naturally, Visual Studio is not a command line utility, and currently my server is a pure headless setup that only provides cli interaction, so if possible, I would like to avoid directly adding GUI packages to the server, but if it is the only way, I'd be willing to do so. Is there really no way to achieve what I'm going for with this?
Sorry if this lacks important details or is formatted poorly, this is my first time asking a question here as it's very rare for me to not be able to find the info I'm looking for in an already existing question.
After research, this is not currently possible as it stems from a misunderstanding of exactly what docker provides. Docker simply uses the underlying OS to provide everything and does not provide any virtualization of foreign OSs. Without a version of the MSVC toolchain that can run on linux, or possibly the use of WINE, there is not a way to achieve this short of a VM. Since WINE is not perfect, the most reliable solution as it appears to me is the VM, but YMMV. The other advantage to using a VM is that I can keep the server headless.
I can't answer this question completely, but this topic is interesting to me too.
Note: Visual Studio Code is open-source, but that's an Electron-based editor. Visual Studio IDE and MSVC are proprietary Windows-only apps.
The website https://blog.sixeyed.com/how-to-dockerize-windows-applications/ suggests it's possible to dockerize Windows apps, including Visual Studio.
Docker images for Windows apps need to be based on microsoft/nanoserver or microsoft/windowsservercore, or on another image based on one of those.
Once you get that working, I'd use Visual Studio command-line builds, like devenv /build file.sln [optionally /project file.vcxproj ]. (https://learn.microsoft.com/en-us/visualstudio/ide/reference/devenv-command-line-switches?view=vs-2017 ).
Note that the VS2017 installer does not function on Wine. I recently filed a bug for this (https://bugs.winehq.org/show_bug.cgi?id=45749 followed by https://bugs.winehq.org/show_bug.cgi?id=45757 ).
I personally use Appveyor for auto-building MSVC apps. Appveyor is a Windows-based centralized cloud service, not a self-hosted CI system.
I just wanted to know if there is or will be a standalone installer for fsi.exe to run on machines (Windows) that are not connected to the internet?
I have managed to get fsi working by downloading the nuget package, unzipping and then manually adding the "tools" folder to the PATH environment variable.
This seems to work because I can get into the repl, but I was wondering if there is a better way to do this.
This is a client server that we access over a tightly controlled VPN and it is not an option to do a full Visual Studio installation.
I am very new with electron application. I need some help with election installation.
I have an Electron desktop application and a windows service.
I can start and stop my pre installed services by using sudo-prompt package.
I am creating windows installer by using electron-winstaller package.
But I want to bundle my windows service along with my electron application. My requirement is when I install my electron package then it should install my service also, when I uninstall my package then that service should be uninstalled.
Please help me out. Any clue, Any suggestions will be appreciated.
If you think this should be achieved with something else then please do suggest me.
Electron's windows installer packager strikes me a specific case tool that would likely hit limitations in scenarios like this. I would use a general case tool instead such as the Free and Open Source Windows Installer XML Toolset aka WiX. I would also use with that another FOSS application called Industrial Strength Windows Installer XML aka IsWiX.
WiX allows you to describe and build MSI databases using an XML/XSD domain specific language. It supports MSBuild for easy integration with your CI/CD pipeline. IsWiX* is a set of project templates and graphical designers that provide an opinionated project structuring (scaffolding) and greatly speeds up the learning curve and implementation. For example, this installer you describe could be done without writing a single line of XML.
For more information see: https://github.com/iswix-llc/iswix-tutorials
The desktop-application and windows-service tutorials should** show you everything you need to know to author this installer. Basically follow the desktop-application all the way through and then skip to the final portion of the windows-service tutorial where you define the windows service.
I'm the maintainer of IsWiX
** This assumes your service exe is a proper Windows service that interfaces with the windows service control manager. If it's really just a console app that runs as a service you will need to include a program such as srvany.exe. This will require one line of hand crafted XML to extended the service definition in the registry with the proper command line value to be passed to your exe. An example can be found here: Wix installer to replace INSTSRV and SRVANY for user defined service installation
In the past I have used environment modules extensively in Unix based systems. The tool proved very usefull since we had many different projects each of them using a potentially different set of tools.
I am now however stuck with a windows machine and need to make the most of it. Does anybody know of a good alternative to environment modules for windows? I am basically looking for a tool that let's me manipulate the PATH (or $env:PATH in windows powershell) environment variable without having to touch it directly.
You can install environment modules on windows as well. The instructions are in the repository https://github.com/cea-hpc/modules/blob/master/INSTALL-win.txt
Basically you have to install active state tcl and copy the source files.
I use this and it works quite well.
There is any documentation on how to install and setup and SubVersion server? And use it with Delphi XE over a network.
To say otherwise: I have installed Delphi XE, Subversion Client and Server. Now what? I don't understand how they work.
I suggest installing VisualSVN Server, which is a complete installation of the latest Subversion server plus Apache, with a nice control panel to configure stuff. It integrates with Windows authentication, or you can have it use Subversion authentication. It's fantastic.
http://www.visualsvn.com/server/
You only need to install a Subversion server if you need networked access to the repository. If you only need local access, you can use a local repository. You can create it using a subversion client, like TortoiseSVN, and it is accessed using the file:/// protocol.
Delphi XE has an integrated SVN client, so it's not mandatory to install an external Subversion client, though it's really helpful as are many tasks that can't be made with the integrated client. TortoiseSVN is superb and integrates seamlessly with Windows explorer.
Thanks Chris. I will take a look because this CollabNet package is a nightmare. So, I install Visual SVN as server and Colabnet Client as client?
You can use almost any subversion client with almost any subversion server. Subversion has a well defined API that both clients and servers can follow. The only problem is that some clients are incompatible with each other. For example, VisualStudio's AnkhSVN client can create _svn directories instead of .svn which can make it incompatible with the standard command line client.
If you don't mind using svnserve as the server, you can download the SlikSVN. The svnserve server is fairly straight forward and quick to setup and install. It isn't as flexible as the Apache server (which can have more than one repository served under the same httpd instant) but it's nice to use for your own personal self or for a small group.
I looked at the licensing of VisualSVN, and it looks like its zero cost as long as you don't need the advanced features.