Announcement

Collapse
No announcement yet.

Install to %public% folder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Install to %public% folder

    Hi

    I need to install my application to the %public% folder. Bute the %public% variable does not work when i set it in the "Session Variables" for %AppFolder%.
    Is there a way to make it work?

  • #2
    Click image for larger version  Name:	SCRN-2022-11-25-01.png Views:	0 Size:	7.2 KB ID:	309601

    Set the session variable in the On Startup event script:
    Code:
    -- https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid
    -- %PUBLIC% = %SystemDrive%\Users\Public
    SessionVar.Set("%Public%", "%SystemDrive%\\Users\\Public");
    -- just a debug
    Dialog.Message("Info", "%Public% = " .. SessionVar.Expand("%Public%"), MB_OK, MB_ICONINFORMATION);
    ​​​Click image for larger version  Name:	SCRN-2022-11-25-03.png Views:	3 Size:	4.5 KB ID:	309605

    Ulrich

    Comment


    • #3
      Thank you very much!

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎