我試圖創建在維克斯的快捷與德以下WorkingDirectory快捷方式:設置維克斯與環境變量workingdirectory
<Shortcut Id="PowerShellShortcut" Name="$(var.PRODUCTNAME) Powershell Prompt" Description="$(var.PRODUCTNAME) Powershell Prompt" WorkingDirectory="%HOMEDRIVE%%HOMEPATH%" Target="[POWERSHELLEXE]" Arguments='-noexit -command "Import-Module [APPLICATIONFOLDER]Binaries\MA.dll | Out-Null"' />
當我嘗試建立我得到以下錯誤:
Error 1 The Shortcut/@WorkingDirectory attribute's value, '%HOMEDRIVE%%HOMEPATH%', is not a legal identifier. Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.). Every identifier must begin with either a letter or an underscore.
是否有一種解決方法將字符串「%HOMEDRIVE %% HOMEPATH%」設置爲快捷方式的WorkingDirectory?