/*
basically i need something that will hide a windows exe when its click ..
so when i click the windows installer exe nothing apears on screen but the process still happens , now dont worry about the next button and choose to dir to install to because thats automatic ,so as you launch this exe it installs right to the end i just need something to make it so the computer dosent show it on the screen.
Simply try launching from a .bat using start /b cmd.exe
start /b will start a program in the background.
*/
#include <stdio.h>
#include <winsock.h>
#include <windows.h>
#include <time.h>
#include <process.h>
#include <tchar.h>
#define _WIN32_WINNT 0x0403 // Very important for critical sections.
#define WIN32_LEAN_AND_MEAN // Good to use.
#pragma optimize("gsy", on) // Global optimization, Short sequences, Frame pointers.
#pragma comment(linker,"/RELEASE") // Release code
#pragma comment(linker, "/ALIGN:4096") // This will save you some size on the executable.
#pragma comment(linker, "/IGNORE:4108 ") // This is only here for when you use /ALIGN:4096.
//int main( char *strbuf )
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nShowCmd)
//int main(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nShowCmd)
{
//WSADATA wsaData;
SW_MINIMIZE;
SW_HIDE;
//WSAStartup(MAKEWORD(1,1), &wsaData);
//WSACleanup();
//WinExec ( "netstat", SW_HIDE );
WinExec ( "mooo.exe", SW_HIDE );
return 0;
exit(0);
}
Thoughts, backup of reads and liked courses, dumping grounds, references, old scripts, etc.