mardi 22 décembre 2020

dev C++ manifest

I want to make a program that require admin right to run. And I've heard that you can use manifest file to do that. But most of the guide are using linux and visual, but I am in windows 10 with Dev C++. Is there any way to do that?( not necessary to be manifest, as long as it can make compiled .exe request for admin)

makefile.win:

# Project: Xmas troll
# Makefile created by Dev-C++ 5.11

CPP      = g++.exe
CC       = gcc.exe
WINDRES  = windres.exe
OBJ      = "Xmas troll.o"
LINKOBJ  = "Xmas troll.o"
LIBS     = -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib"
INCS     = 
CXXINCS  = -I"C:/Program Files (x86)/Dev-Cpp/" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include"
BIN      = "Xmas troll.exe"
CXXFLAGS = $(CXXINCS) -std=c++11
CFLAGS   = $(INCS) -std=c++11
RM       = rm.exe -f

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after

clean: clean-custom
    ${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
    $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)

"Xmas troll.o": Xmas\ troll.cpp
    $(CPP) -c "Xmas troll.cpp" -o "Xmas troll.o" $(CXXFLAGS)

Yes, this is for christmas gift.

Aucun commentaire:

Enregistrer un commentaire