Elementary question re: pathing/$dirFiles/$dirSupportFiles not resolving

//Elementary question re: pathing/$dirFiles/$dirSupportFiles not resolving
Elementary question re: pathing/$dirFiles/$dirSupportFiles not resolving 2015-11-16T21:16:04+00:00

The Toolkit Forums General Elementary question re: pathing/$dirFiles/$dirSupportFiles not resolving

  • Author
    Posts
  • Dan
    Participant
    Post count: 13

    (Newbie here) So I’m just testing out this toolkit with a multiple part install. There are two prereqs (in the preinstallation section), the main install (in the installation section), and one update (in the post installation section.

    If I put everything in the files directory, the execute-msi and execute-process work great. But if I have them either in supportfiles or in a subfolder in files, I get errors saying it cannot file the file
    Execute-MSI -Action ‘Install’ -Path ‘SQL_AS_AMO.msi’
    Execute-Process -Path ‘$dirSupportFiles\ReportViewer.exe’ -Parameters ‘/q’

    I can’t seem to get the $dirSupportFiles variable to work in the -path

    Any thoughts?

    • This topic was modified 2 years, 6 months ago by  Dan.
    • This topic was modified 2 years, 6 months ago by  Dan.
  • Dan
    Participant
    Post count: 13

    Never mind, I figured it out.

    Execute-Process -Path ‘$dirSupportFiles\ReportViewer.exe’ -Parameters ‘/q’

    should be double quotes
    Execute-Process -Path “$dirSupportFiles\ReportViewer.exe” -Parameters ‘/q’

You must be logged in to reply to this topic.