Running the installer on Vista without turning off UAC

My MSI installer cannot be installed on a Vista machine without turning off UAC. Since my application will be distributed among my clients, there are about 20 machines, and they do not want to disable UAC, is there a way that I can set some property that will allow my installer to work without any user interaction, when UAC, which enabled, a popup appears

+3
source share
5 answers

The best resources I found to get my head around UAC is Robert Flaming's blog , he got a series of about 25 posts that explain how Vista, UAC and MSI interact.

Vista will always ask as soon as it gets into InstallExecuteSequence if you are installing on a machine (ALLUSERS = 1), however, if you have an installer that requires upgrading beyond this sequence, then the best solution would be to use a bootable EXE instance with a manifest indicating that elevation is required when starting exe.

Indigo Rose ( , MSI Factory), NSIS, Visual Studio one, SDK Windows

+4

UAC , , , Program Files, , ? Vista - c:\Users\Username, , C:\Users\Username\AppData\Local\Apps.

+2

20 . ( shortuct, COM, ..), ​​ .

, :

msiexec.exe -jm c:\\mypackage.msi

MSDN: http://msdn.microsoft.com/en-us/library/aa367548(VS.85).aspx

+1

.

: . , , , / script ( , ).

Vista ( UAC, ).

, .

0

Vista / UAC should ask for confirmation to continue with the installation, and not to completely block it. What is the name of your MSI? For example, does it magically work if you rename it to setup.msi ?

0
source

Source: https://habr.com/ru/post/1707255/


All Articles