In Windows 7, not a separate service with instsrv.exe srvany.exe and are created by the Windows 2003 Resource Kit. First, I copy the files to the system32 directory instsrv.exe and srvany.exe. Then I enter the following into the command line: instsrv srvany.exe "Windows Packager" "% SystemRoot% \ System32 \" Then, the error message: "Unable to find the file at the given path" It is interesting that when I create the following script a different error message appears:
echo adding Windows Packager service
Add an echo service
After the third line, the error message that the service name is invalid. You can twist and turn the whole and how you want but it does not create a service. Hope this will work in your case.
copy "% ~ DP0 \ srvany.exe"% SystemRoot% \ System32
copy "% ~ DP0 \ instsrv.exe"% SystemRoot% \ System32
instsrv srvany.exe "Windows Packager" "% SystemRoot% \ System32 \"