/build/static/layout/Breadcrumb_cap_w.png

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!

0 Comments   [ + ] Show comments

Answers (3)

Posted by: kardock 13 years ago
Second Degree Green Belt
0
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.
Posted by: rock_star 13 years ago
4th Degree Black Belt
0
Windows any OS with 64 bit have "program files" n "program files (x86)".
Posted by: anonymous_9363 13 years ago
Red Belt
0
i created a CA Why? Why not simply use the environment variable which points to the appropriate location, [%ProgramFiles]?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ