Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control requestedExecutionLevel 'in manifest of executable output #5431

Closed
NN--- opened this issue Nov 1, 2016 · 10 comments
Closed

Control requestedExecutionLevel 'in manifest of executable output #5431

NN--- opened this issue Nov 1, 2016 · 10 comments
Labels

Comments

@NN---
Copy link

NN--- commented Nov 1, 2016

Currently using WiX it is possible to make executable with the manifest requiring default execution level:

<processorArchitecture="x86" type="win32"/>
...		<security>
			<requestedPrivileges>
				<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
			</requestedPrivileges>
		</security>
	...

In order to run your executable as administrator it is needed to make an additional runner which will ask for elevation and run the installation file.
We have a workaround by changing the manifest after WiX build to .

It would be nice if it was a configurable feature in WiX.

Thanks.

@robmen
Copy link
Member

robmen commented Nov 1, 2016

That goes against the design of Burn and the security boundaries put in place. We purposefully do not allow this and do not recommend hacking Burn's manifest.

@robmen robmen added the wontfix label Nov 1, 2016
@robmen robmen closed this as completed Nov 1, 2016
@rseanhall
Copy link
Contributor

Rob beat me to it, but this is also a duplicate of #4972.

@NN---
Copy link
Author

NN--- commented Nov 1, 2016

@robmen I fully understand the security considerations but it is much nicer to have one executable you download and not zip with multiple files.

@robmen
Copy link
Member

robmen commented Nov 1, 2016

For support please contact the wix-users mailing list.

It is possible through discussion a specific bug in the WiX Toolset will be uncovered but usually someone can help you find the error in your .wxs code.

@NN---
Copy link
Author

NN--- commented Nov 1, 2016

@robmen I know exactly why I need it.
I need to access some OS parts which require administrator prior running the installation process.
It is essential part of my installer by product requirements.

Currently I hack it with changing a manifest. but I prefer to do it in a standard way while staying with one executable.

Thanks.

@mzayarnyuk
Copy link

you must add it, for complex changes that need admin is must be added; is stupid to add own manifest for that or custom bootstraper app if default UI is fine ....

@robmen
Copy link
Member

robmen commented Aug 2, 2023

@mzayarnyuk calling features (or people) names (like "stupid") is extremely unprofessional and will cause your point to be summarily ignored. If the behavior is repeated, you can be blocked from the community.

Please remember that this is an Open Source project built by people for people and behave professionally.

@mzayarnyuk
Copy link

good found elegant solution with wix3 (without res-hacks) - hope with v4 will work similar

@mzayarnyuk
Copy link

@mzayarnyuk calling features (or people) names (like "stupid") is extremely unprofessional and will cause your point to be summarily ignored. If the behavior is repeated, you can be blocked from the community.

Please remember that this is an Open Source project built by people for people and behave professionally.

maybe you have bad day - is possible always.....
or maybe you undestood me bad .... (I am not native speaker)

I never said any bad words about you as developer or about you like man or woman....

@mzayarnyuk
Copy link

7 years ago .... and 3 years ago...
so that - 'runasadmin' where published to production or not ? - will be good to add doc sample etc;
nirbar/wix3@86c9148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants