开发者

Installing service with command script fails in Windows 7

I need to automate the installation of a service so i wrote a simple command script. My command script copies two executables and runs an install command on the service executable. It works fine in XP but fails to install in windows7.

The contents of setup.cmd:

xcopy udpclient_service.exe C:\Services 
xcopy udpclient_userapp.exe C:\Services

C:\Services\udpclient_service.exe install

The execu开发者_StackOverflow社区tables get copied but the install command fails. No idea why. Any help will be appreciated.

Thanks


Run your script elevated - either right-click, run as administrator, or launch it from a command prompt that you ran elevated. Installing a service is an administrative task - you need to indicate in advance that you plan to use your powers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜