diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2017-02-05 08:35:34 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2017-02-05 08:35:34 +0100 |
commit | e1470cca15e29b8ba5962b2632618c20c33053d3 (patch) | |
tree | 13dbc93a8ee30edf45c2898d6a6cbbe5f9fd0357 | |
parent | Improved compatibility with non-Kindle devices (diff) | |
download | kcc-e1470cca15e29b8ba5962b2632618c20c33053d3.tar.gz kcc-e1470cca15e29b8ba5962b2632618c20c33053d3.tar.bz2 kcc-e1470cca15e29b8ba5962b2632618c20c33053d3.zip |
Force admin rights for Windows version
-rw-r--r-- | kcc.iss | 3 | ||||
-rw-r--r-- | other/windows/KCC.exe.manifest | 26 |
2 files changed, 28 insertions, 1 deletions
diff --git a/kcc.iss b/kcc.iss index b001db0..476b97c 100644 --- a/kcc.iss +++ b/kcc.iss @@ -46,6 +46,7 @@ Name: "CB7association"; Description: "CB7"; GroupDescription: "File associations [Files] Source: "dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion Source: "LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion solidbreak +Source: "other\windows\KCC.exe.manifest"; DestDir: "{app}"; Flags: ignoreversion Source: "other\windows\Additional-LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion Source: "other\windows\UnRAR.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "other\windows\7za.exe"; DestDir: "{app}"; Flags: ignoreversion @@ -58,7 +59,7 @@ Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: [Run] Filename: "{tmp}\vc_redist.x64.exe"; Parameters: "/install /passive /norestart"; StatusMsg: "Installing Microsoft Visual C++ 2015 Redistributable Package..." -Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall shellexec [Messages] WelcomeLabel1=Welcome to the KCC Setup Wizard diff --git a/other/windows/KCC.exe.manifest b/other/windows/KCC.exe.manifest new file mode 100644 index 0000000..360eea0 --- /dev/null +++ b/other/windows/KCC.exe.manifest @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> + <assemblyIdentity name="KCC" processorArchitecture="amd64" type="win32" version="1.0.0.0"/> + <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> + <security> + <requestedPrivileges> + <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> + </requestedPrivileges> + </security> + </trustInfo> + <dependency> + <dependentAssembly> + <assemblyIdentity language="*" name="Microsoft.Windows.Common-Controls" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" type="win32" version="6.0.0.0"/> + <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"/> + </dependentAssembly> + </dependency> + <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> + <application> + <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> + <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> + <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/> + <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> + <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> + </application> + </compatibility> +</assembly> \ No newline at end of file |