program files vs program files (x86)
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) ?
thanks!
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) ?
thanks!
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
kardock
13 years ago
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)"
Else
Session.Property("PROGRAMFILES") = "c:\program files"
End If
then i created a shortcut like this: [PROGRAMFILES]\....
it works.
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)"
Else
Session.Property("PROGRAMFILES") = "c:\program files"
End If
then i created a shortcut like this: [PROGRAMFILES]\....
it works.
Posted by:
rock_star
13 years ago
Posted by:
anonymous_9363
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.