Evan,
Some progress. I made the changes listed below and still the same error.
What I've checked and changed:
- Moved the vSphere AAC VM from a folder to the root
- Granted the vSphere AAC VM the "Administrators" role for full permissions
- Downgraded VIX to version 1.10.3.16210
- Checked and configured group policy; ensured the "interactive logon message" isn't presented, there's no screen saver and that no other policies are in play
- Double-checked that RDP to the client
- Double-checked that when the VM starts, Windows starts without any user interaction and that the "Repackager" window starts up
I've found that the problem is down to the "Virtual Machine Server" credentials. If I use those that have been granted the relevant permissions for the VM, which do allow me to browse and add to the VMs, then the error appears. If I use my own credentials (VMware administrator across everything) then the VM control works and the repackager kicks into life.
I can look to see why the permissions on the account used on the VMs doesn't work, I suspect it needs some additional access at the very top level. For now I can live with that as the guys that will run this process are VM administrators and can use their own credentials when configuring projects.
Notes:One other issue I had was with the "Windows Shutdown Event Tracker". By default it needs a reason to shutdown the machine so when I was watching the VM console I could see it stuck there whilst AAC was "waiting for the VM to reboot". This was because the VM was already started which it normally won't be but just in case I've disable the event tracker in Windows so that the VM can reapply the base snapshot and reboot unprompted.
Another thought was that this is a domain member server and as we're using a snapshot I've made sure that it is configured to not use machine account password changes.
One other thing is that I found the VM control/repackaging process also works with the machine back in the vSphere "AdminStudio" folder.
Now the key VM part of the process works but the repackager is failing. The extract from the log is attached. Now it may simply be that this isn't a suitable virtualisation candidate, should the process be to test that first?
I've checked the VM; the MSI is being copied down to the correct local folder and the InstallShield project has started to be built in it's own folder.
Looking at the command-line for the repackager there are a couple of trailing backslashes in there that I thought might be a problem but that's probably what repackager expects. Watching the VM console, the MSIEXEC definitely starts (quiet with the basic dialog) but bombs out almost instantly.
I'll try another application or too, something simpler and report back but I thought the information of progress so far might be useful.
Thanks