marine2026
Posts: 19
Joined: Sat May 15, 2010 8:59 pm

unresolved %USERNAME%

I had to recreate my project.

Now when the installer runs it creates an unresolved path:

C:\Users\%USERNAME%\Desktop

What must I do to make %USERNAME% resolve?

[img]
CCNI_Properties.JPG
CCNI_Properties.JPG (11.29 KiB) Viewed 2303 times
CCNI_CustomActions.JPG
CCNI_CustomActions.JPG (78.19 KiB) Viewed 2303 times
CCNI_UnresolvedPath.JPG
CCNI_UnresolvedPath.JPG (27.26 KiB) Viewed 2303 times
[/img]
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: unresolved %USERNAME%

Hello,

Please note that references embedded in a Formatted string must respect the following syntax:
  • [propertyname]
  • [%environmentvariable]
  • [#filekey]
  • [&temporaryfile]
  • [folderkey]
For details, please check the Windows Installer Formatted Type article.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”