When I create self-extracting archive executables for Windows with 7zip, the .EXEs trigger UAC on Windows7. And frequently after unzipping, I get this:
I'm using commandline like: 7z a -sfx7z.sfx dir\
. Why are these things happening and can I fix them?
Best Answer
You may want to disable this warning, if so, follow the steps below.
+
R, typeservices.msc
and hit Enter).Program Compatibility Assistance Service
in the list.Stop
.Program Compatibility Assistance Service
and selectProperties
.General
tab in theStartup type
section, click on the drop-down menu and selectDisabled
.Apply
thenOK
.Note: Program Compatibility Assistance monitors programs for known compatibility issues and can be very beneficial for end users. This tip is aimed at power users.
Another
probable solution
is to embed a manifest file to avoid this alert. Something like this:How to embed the
application manifest
into my executable?You can use this utility(
mt.exe
- assuming you have the sdk installed) from Microsoft to do this. You would use a similar command like this:Other Considerations
7z SFX-Creator
), according to this page: self-extracting archives created will no longer cause alert PCA.