hi all,

i have a package that is installed either to windows XP or windows 7. the package is only a shortcut to a file in program files.

windows 7 is new here, and i have no experience packaging on this.

how can i tell my shortcut that if the OS is windows 7, the file is in folder program files (x86) ?

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


ok i got it.

i created a property called PROGRAMFILES.

i created a CA with this code:

Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists("c:\program files (x86)") Then
Session.Property("PROGRAMFILES") = "c:\program files (x86)"
Session.Property("PROGRAMFILES") = "c:\program files"
End If

then i created a shortcut like this: [PROGRAMFILES]\....

it works.
Answered 10/24/2011 by: kardock
Second Degree Green Belt

Please log in to comment
Windows any OS with 64 bit have "program files" n "program files (x86)".
Answered 10/24/2011 by: rock_star
Second Degree Black Belt

Please log in to comment
i created a CA Why? Why not simply use the environment variable which points to the appropriate location, [%ProgramFiles]?
Answered 10/31/2011 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity