Program Files and Program Files (x86)
I am a novice when it comes to scripting and I am having the toughest time getting this to work.
Baisclly, I am trying to install a package silently and after the install, I need a .ini to be copied to the correct location in the program files folder. Our enviroment is 32 bit and 64 bit. I had a simple script that worked but I was copying to "C:\Program Files\App" worked good on everything expect 64 bit systems because the files are in Program Files (x86).
Tried using the script below, but I could not get it to work... anyone have any ideas? Would greatly appreictae it.
@ECHO OFF Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FolderExists("c:\program files (x86)") Then Session.Property("ProgramFiles") = "c:\program files (x86)" Else Session.Property("ProgramFiles") = "c:\program files" End If start /wait xcopy "Config.ini" “[ProgramFiles]\App\” /y