So far, we've been able to work around these issues by using junctions or setting the PVAD to the folder as the PVAD acts literally on the value specified, essentially becoming a hard coded, custom, token.
But now we have an application with THREE folders that are installed on the root of the C:\ and the application is hard-coded to look for two of them.
|Hello my nemesis's|
If we do nothing this is the error we get after attempting to login to the program:
Looking at the appvve we can see the D:\ is coming up with those folders.
So this isn't going to work. How can we make it work?
After publishing this application on the server, we install ACT on the Citrix server.
Launch the "Compatibility Administrator (32-bit)"
Right-click on "New Database" and select "Create New > Application Fix"
Enter the details and browse to the application and click "Next"
Click 'Next' on the Compatibility Mode screen
Select 'CorrectFilePaths' and then click 'Parameters'
In command line, enter the path that should exist, then a semi-colon divider ";" and then the target path:
and click "OK"
Try a Test Run.
And the application launches without any error messages!
Click 'Save' then name your database and click "OK":
Save your fix now:
At this stage you now need to put your SDB file somewhere accessible for when the package is published. We put it on a fileshare.
Now, all we need to is install the fix.
Since we publish our application globally, I added the fix to the DeploymentConfig.xml: