Announcement

Collapse
No announcement yet.

Copy File and Rename in Setup Factury

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

  • Copy File and Rename in Setup Factury

    I need help with :

    File.Copy(SessionVar.Expand(_SourceFolder .. "\\%ProductVer%.exe"), _SourceFolder .. "\\ABC\\Bkup.exe", false);
    This works, however the setup.exe needs to be in the very folder that is being created during setup - cumbersome.

    File.Copy(SessionVar.Expand("%AppFolder%\\%Product Ver%.exe"), "%AppFolder%\\ABC\\Bkup.exe", false);
    This would be great - but it does not work. What am I doing wrong?

    Thx for the help

  • #2
    You are not expanding the session variables properly:
    Code:
    File.Copy(SessionVar.Expand("%AppFolder%\\%Product Ver%.exe"), SessionVar.Expand("%AppFolder%\\ABC\\Bkup.exe"), false);
    Ulrich

    Comment


    • #3
      Great , thank You

      Comment

      Working...
      X