Posted: 14 Aug 2017 22:50 EDT Last activity: 6 Nov 2018 20:02 EST
RDA - Windows adapter start path in 32 bit/64 bit ProgramFiles
If same windows application has to be launched on 32 bit and 64 bit machines, is there any way to make one solution work for both? We need to select absolute path during design time on developer machine pointing to C:\Program Files (x86)\<Folder>\executable.exe but on a 32 bit user machine it is C:\Program Files\<Folder>\executable.exe. I cant save adapter rule with environment variables like %programfiles%", "%programfiles(x86)%", "%ProgramFiles%", "%commonprogramfiles%", "%COMMONPROGRAMFILES%. The Folder option in Path property points to standard system folders like Program Files, Desktop etc but at runtime the executable is looked up directly as C:\Program Files\executable.exe.
Is there any solution other than creating 2 versions of the deployment package ?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
You can use a project configuration to set the values for each environment. This would create multiple deployment packages whenever you deploy, so you could gibe the 64 bit users one and the 32 bit users the other (or one for UAT, DEV, PROD, etc...). If you use Project configurations, make sure you keep them in the root of your project and not in a sub-folder.
Another way would be to detect that path on project startup and set that value prior to starting the adapter. My recommendation would be to go with project configurations.