Why is Windows asking for system administrator privileges for running executables with “install” in their name?

后端 未结 3 2045
野性不改
野性不改 2020-12-10 04:50

I am building a tool which allows to install an application into our simulator and it is called \'cl-install.exe\'. It really doesn\'t need any administrator privileges to r

3条回答
  •  死守一世寂寞
    2020-12-10 05:35

    I've found a working solution here: https://github.com/bmatzelle/gow/issues/156

    Quote:

    The solution is to write a manifest file listed below for the executables, in order to persuade UAC that it does not require administrative privilege.

    
    
      
        
          
            
            
          
        
      
    
    

    The filenames of the manifest files should be install.exe.manifest and patch.exe.manifest, and then put them in the same folder as install.exe and patch.exe.

    If the UAC prompt still pops up, change the timestamp of install.exe and patch.exe to persuade Windows to pick up the new manifest file.

提交回复
热议问题