Einzelnen Beitrag anzeigen

Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#6

AW: Innosetup: Windows-Laufwerk ermitteln

  Alt 14. Mär 2011, 10:28
tstststs

Nimm doch den direkten Weg
Code:
{%SYSTEMDRIVE}
Zitat von InnoSetup-Help:
Code:
{%NAME|DefaultValue}
Embeds the value of an environment variable.

•NAME specifies the name of the environment variable to use.
•DefaultValue determines the string to embed if the specified variable does not exist on the user's system.
•If you wish to include a comma, vertical bar ("|"), or closing brace ("}") inside the constant, you must escape it via "%-encoding." Replace the character with a "%" character, followed by its two-digit hex code. A comma is "%2c", a vertical bar is "%7c", and a closing brace is "%7d". If you want to include an actual "%" character, use "%25".
•NAME and DefaultValue may include constants. Note that you do not need to escape the closing brace of a constant as described above; that is only necessary when the closing brace is used elsewhere.
Examples:
Code:
{%COMSPEC}
{%PROMPT|$P$G}
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat