I have a program that has a strange situation. When you install the MSI, which is an upgrade, it pulls the location paths of local resources and shared (network mapped drive) from the computer. The install fails (error 1327, invalid drive) because it seems to be attempting to verify the shared mapped drive (it doesn't actually install anything to that path), which is not there until the user logs in, and some users do not have access to that drive. So, it seems the only fix I can find is a subst command, which works, but that drive letter is needed when the user logs in, so what I need is a way, preferably in the same gpo that:
1. runs the batch file (or just run the command itself)
2. Installs the software package
3. runs the other batch file (that deletes the virtual drive)
I was thinking just running it all in a batch file, but I don't want the msi to run everytime someone restarts the computer, as the install tags a few minutes on bootup time.
Windows Server 2k8 R2
Windows xp, windows 7