How to tie a Hudson job to a user who has access to run MSIExec
I have a batch file that calls "MSIExec /X {MyGUID} /qn". This runs successfully when run with my admin user. When I run it as a Window Batch command from a Hudson job it fails with "T�h�e� �i�n�s�t�a�l�l�a�t�i�o�n� �s�o�u�r�c�e� �f�o�r� �t�h�i�s� �p�r�o�d�u�c�t� �i�s� �n�o�t� �a�v�a�i�l�a�b�l�e�.� � �V�e�r�i�f�y� �t�h�a�t� �t�h�e� �s�o�u�r�c�e� �e�x�i�s�t�s�开发者_如何学Go �a�n�d� �t�h�a�t� �y�o�u� �c�a�n� �a�c�c�e�s�s� �i�t�.� "
I am inclined to think that the issue is that the job is started by the "anonymous" user rather than my admin user.
How in hudson do I "tie" the job to be run under the admin user?
Thanks in advance.
Regards,
Andrew
You have two options, the first one is, running Hudson under an Admin user (usually a bad idea) or use the runas
command. To avoid entering a password you might need to use the /savecred
option.
BTW, did you read the error message? Here is the readable version of it:
"The installation source for this product is not available. Verify that the source exists and that you can access it. "
精彩评论