Hi
I am building an installer for our software.
I have two requirements for it:
1) Install in Program Files Directory if "All Users" Mode is selected else install in Local AppData folder if For current user.
2) I have two properties in Searches page. I would like to install Application in Program Files x86 folder if one property is found, otherwise install in Program Files 64 folder.
So, basically if "All Users" mode, install application in proper Program Files folder depending on the property in Searches page.
So far I have tried following:
Set Application Folder = [AppData][ProductName] or [ProgramFilesFolder][ProductName] or [AI_ProgramFiles]\[ProductName]
and make a custom action which does something like:
////Script Sample
AllUsers = Session.Property("AllUsers")
If AllUsers = false
Session.Property("AppDir") = [LocalAppDataFolder][ProductName]
end if
If AllUsers = true and Install_32 then
Session.Property("AppDir") = [ProgramFilesFolder][ProductName]
end if
If AllUsers = true and Install_64 then
Session.Property("AppDir") = [ProgramFiles64Folder][ProductName]
end if
///////
But the path is not setting as desired after user chooses the installation type (i.e. All users/Current User) and installation path always sets to one specified in Application Folder text box in Install parameters page.
So, kindly give valuable suggestion so I can make it work.
Thanks & Regards
Rohit Garg
rohit.aggrawal90@gmail.com
FOLLOW US
Get the latest news in Application Packaging