This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This demo shows a method for elevating to an Admin on Windows and running | |
* a command in cmd.exe, from a PHP script. It demonstrates how Composer can | |
* self-update to an Admin location. | |
* | |
* Note that it creates composer-phar.txt file in the current directory. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This demo shows a method for elevating to an Admin on Windows and running | |
* a command in cmd.exe, from a PHP script. It demonstrates how Composer can | |
* self-update to an Admin location. | |
* | |
* Powershell (available on Windows 7 upwards) is used to invoke the UAC prompt, | |
* because it returns a value from the result of the prompt so we can see if the | |
* user cancelled. Note that it is impossible to obtain the exit code from the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; -- inno6-resize.iss -- | |
; Demonstrates TNewStaticText not resizing when set dynamically | |
[Setup] | |
AppName=Composer | |
AppVersion=5.0 | |
WizardStyle=modern | |
CreateAppDir=no | |
DisableProgramGroupPage=yes | |
OutputDir=userdocs:Inno Setup Examples Output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!getenv('RESTART_TEST')) { | |
showExtensionInfo(); | |
putenv('RESTART_TEST=1'); | |
putenv('PHP_INI_SCAN_DIR='); | |
$iniFiles = getIniFiles(); | |
$tmpIni = writeTmpIni($iniFiles); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Classes to modify User environment variables in the Windows registry | |
* | |
* Warning: | |
* Use at your own discretion and with care. It would be quite easy to | |
* make a system unstable by adding or modifying certain values. | |
* | |
* Ensure that this code works for you by testing it first (create a | |
* Restore Point or backup your HKCU\Environment key beforehand). |