While this isn’t difficult to do, it is more fiddly than I ideally want. There is, however, a command that can be run in a Command Prompt to set install mode and another one to switch it off.
I always forget what these commands are so figured by posting them here it would both give me easy access to remind myself, but also that I find posting here helps things stick in memory anyway.
So to set XenApp into install mode open a command prompt (Win + R followed by typing cmd) and type the following:
change user /install
Once the program has finished installing, switch the server back to normal by entering the following command:
change user /execute
One such client was recently installing some new XenAPp servers using Windows Server 2012; when they tried to open a window with a VBA customisation they received the following error:
A little checking round and this turned out to be a problem with the configuration of Citrix XenApp which is clearing down the user profiles each time the user logged off.
Management Reporter stores the users default company in a configuration file located in %LOCALAPPDATA%\Microsoft\Management Reporter\ and this data was being cleared down each time they logged off Citrix. What keyed me into this being the problem was when I got a user to close Management Reporter and reopen it without logging off Citrix and they did not then need to select the default company; they only needed to do this after logging all of the way out.
The solution to the problem is to change the configuration of Citrix so that the configuration file is not deleted when the user logs off. Once this is done, the Default Company will be remembered.