Auto update an exe on failed version check
Posted: Tue Oct 01, 2019 3:54 pm
Hi,
Let's say I have a compiled PS exe stored on the user's C drive.
When they launch the exe, it first does a version check.
What I would like to do is automatically copy a newer version from a UNC path to replace the local exe if the version check fails.
However if I do the version check, I cannot automatically do a copy command if the version check fails because the exe is in use.
What's the best way to spawn a task that does the copy successfully please?
Thanks
David
Let's say I have a compiled PS exe stored on the user's C drive.
When they launch the exe, it first does a version check.
What I would like to do is automatically copy a newer version from a UNC path to replace the local exe if the version check fails.
However if I do the version check, I cannot automatically do a copy command if the version check fails because the exe is in use.
What's the best way to spawn a task that does the copy successfully please?
Thanks
David