Download index.html from nitrolex/no-admin: direct link, hf CLI and curl.
- Browser
- Download file 1.84 kB
-
https://huggingface.co/spaces/nitrolex/no-admin/resolve/main/index.html
- Command line
-
hf download hf://spaces/nitrolex/no-admin/index.html
-
curl -L -o index.html https://huggingface.co/spaces/nitrolex/no-admin/resolve/main/index.html
1.84 kB
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>NO-ADMIN Utility</title> | |
| <link rel="stylesheet" href="style.css" /> | |
| </head> | |
| <body> | |
| <div class="card"> | |
| <h1>NO-ADMIN Utility</h1> | |
| <p>Select your installer or executable file below. We’ll generate a .bat script that runs the installer without requiring admin privileges.</p> | |
| <input type="file" id="fileInput" accept=".exe,.msi,.bat,.cmd" /> | |
| <button id="generateButton">Generate Script</button> | |
| <a id="downloadLink" style="display:none; margin-top:1rem;">Download your NO-ADMIN BAT file</a> | |
| <p style="margin-top:1rem;">Instructions: place this batch file in the same folder as your installer and double-click it to run. This uses the RunAsInvoker compatibility layer to bypass admin prompts.</p> | |
| </div> | |
| <script> | |
| const fileInput = document.getElementById('fileInput'); | |
| const generateButton = document.getElementById('generateButton'); | |
| const downloadLink = document.getElementById('downloadLink'); | |
| generateButton.addEventListener('click', () => { | |
| const file = fileInput.files[0]; | |
| if (!file) { | |
| alert('Please select a file to wrap.'); | |
| return; | |
| } | |
| const fileName = file.name; | |
| const scriptContent = '@echo off\r\n' + | |
| 'set __COMPAT_LAYER=RunAsInvoker\r\n' + | |
| 'start "' + fileName + '"\r\n'; | |
| const blob = new Blob([scriptContent], { type: 'text/plain' }); | |
| downloadLink.href = URL.createObjectURL(blob); | |
| const baseName = fileName.substring(0, fileName.lastIndexOf('.')) || fileName; | |
| downloadLink.download = baseName + '-no-admin.bat'; | |
| downloadLink.style.display = 'block'; | |
| downloadLink.textContent = 'Download ' + downloadLink.download; | |
| }); | |
| </script> | |
| </body> | |
| </html> |