2

I saw here how to add a run-as-admin registry key to a program installed by an installer made with Innno-Setup, but it only worked on Windows 7. I need it to work on Windows 8.1, both 32- and 64-bit.

(The program im installing is a 32-bit .exe. The Installer.exe is also 32-bit AFAIK)

Can someone show me the right registry instruction for windows 8.1? and also how to check if its a windows 7 or 8 machine before executing the registry instruction? Thanks.

Community
  • 1
  • 1
DrZ214
  • 486
  • 5
  • 19
  • 1
    That was a different case when the OP wanted to create a shortcut that will run a foreign application elevated. If your application is always supposed to run elevated, use the application manifest. As a bonus, here are [`the functions`](http://pastebin.com/R9H6fYtF) to determine those Windows versions, but I believe you won't need them. In any case, I'm not considering that registry solution to be a good way. – TLama May 12 '15 at 00:52
  • Well I followed that solution and it worked just fine on Windows 7. I'd love to try the manifest way too, but could you tell me where that is? My game is made in MonoGame using Visual Studio 2010 and there's nothing in the solution tree named 'manifest'. – DrZ214 May 12 '15 at 00:54
  • 2
    [`Try this`](http://stackoverflow.com/a/4084620/960757) (that is the generic way for embedding application manifests into the VS projects; just please note, that I know nothing about MonoGame, so don't forget to make backups ;) – TLama May 12 '15 at 01:01
  • 1
    Thanks, the manifest solution worked perfectly on Win 7 and Win 8.1. – DrZ214 May 12 '15 at 02:27

0 Answers0