Microsoft Developer Network > 포럼 홈 > MSBuild > ClickOnce bootstrapper files without installing Visual Studio?
질문하기질문하기
 

답변됨ClickOnce bootstrapper files without installing Visual Studio?

  • 2008년 10월 31일 금요일 오후 4:40kaffekop 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hello,

    I also asked this question here: http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=4065767&SiteID=1

    On a build server I want to deploy and publish a ClickOnce application. On the build server I want to prevent having Visual Studio installed.

    I installed the 6.1 SDK on the server, but there exists no bootstrapper files in C:\Program Files\Microsoft SDKs\Windows\v6.1. This causes my ClickOnce build to fail.

    Thanks in advance.

답변

  • 2008년 11월 12일 수요일 오전 6:20Rong-Chun ZhangMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨코드 있음

    Hi,

    Sorry for that doesn't work. The _DeploymentGenerateBootstrapper target use the task GenerateBootstrapper to generate a custom Setup.exe that can download and install the package that you choose as the prerequisite. The path attribute of the task GenerateBootstrapper indicates that where to find the bootstrapper packages. By default, if you didn't set the value, GenerateBootstrapper task will get value from the following registry (for .NET 3.5, more information, please see this page).

         HKLM\Software\Microsoft\GenericBootstrapper\3.5

    Please check if you have add the following registry

         Key Name:          HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\GenericBootstrapper\3.5

         Value 0
          Name:            Path
          Type:            REG_SZ
          Data:            c:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\

    Another workaround is that you can specify the Path attribute by overriding the _DeploymentGenerateBootstrapper target or write your own target to use the GenerateBootstrapper use to generator the bootstrapper. Here is a sample for overiding predefined target.

    http://blogs.msdn.com/msbuild/archive/2006/02/10/528822.aspx

    Let me know if this helps.

    Thanks,
    Rong-Chun Zhang


    Please mark the replies as answers if they help and unmark if they don't.

모든 응답

  • 2008년 11월 3일 월요일 오전 7:49marc_gsi 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Windows SDK? I think you'll need the .net SDK, at least version 2.0. Or is it included in the Windows SDK?
    http://blogoscoped.com/archive/2005-08-24-n14.html
  • 2008년 11월 3일 월요일 오전 7:51kaffekop 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I have both .NET SDK and Windows SDK installed. 
  • 2008년 11월 5일 수요일 오전 10:07Rong-Chun ZhangMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Hi,

    For Visual Studio 2008, the prerequisites package is stored in the following location:

       \Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages

    You can try to copy these file from the another computer which has Visual Studio 2008 installed, and put them to the same location on build server. More information, please check:

    http://msdn.microsoft.com/en-us/library/ms165429.aspx

    Let me know if this works.

    Thanks,
    Rong-Chun Zhang


    Please mark the replies as answers if they help and unmark if they don't.
    • 답변으로 표시됨Rong-Chun ZhangMSFT, 중재자2008년 11월 7일 금요일 오전 3:45
    • 답변으로 표시 취소됨kaffekop 2008년 11월 11일 화요일 오후 2:41
    • 답변으로 표시 취소됨kaffekop 2008년 11월 11일 화요일 오후 2:41
    • 답변으로 표시 취소됨kaffekop 2008년 11월 11일 화요일 오후 2:41
    •  
  • 2008년 11월 11일 화요일 오후 2:42kaffekop 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hello,

    Copying the files to the build server did not work. I am still getting (the same) errors from bootstrapping.

  • 2008년 11월 12일 수요일 오전 6:20Rong-Chun ZhangMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨코드 있음

    Hi,

    Sorry for that doesn't work. The _DeploymentGenerateBootstrapper target use the task GenerateBootstrapper to generate a custom Setup.exe that can download and install the package that you choose as the prerequisite. The path attribute of the task GenerateBootstrapper indicates that where to find the bootstrapper packages. By default, if you didn't set the value, GenerateBootstrapper task will get value from the following registry (for .NET 3.5, more information, please see this page).

         HKLM\Software\Microsoft\GenericBootstrapper\3.5

    Please check if you have add the following registry

         Key Name:          HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\GenericBootstrapper\3.5

         Value 0
          Name:            Path
          Type:            REG_SZ
          Data:            c:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\

    Another workaround is that you can specify the Path attribute by overriding the _DeploymentGenerateBootstrapper target or write your own target to use the GenerateBootstrapper use to generator the bootstrapper. Here is a sample for overiding predefined target.

    http://blogs.msdn.com/msbuild/archive/2006/02/10/528822.aspx

    Let me know if this helps.

    Thanks,
    Rong-Chun Zhang


    Please mark the replies as answers if they help and unmark if they don't.
  • 2008년 11월 14일 금요일 오전 8:03kaffekop 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Thanks. Adding the registry key made it work.
  • 2009년 5월 14일 목요일 오후 9:14Dan Morris 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    BTW, I had the same problem, and for me the issue was that somehow the Windows SDK had been _partially_ installed on one drive, but Visual Studio was looking on a different drive.  Re-installing the SDK didn't help, because I _did_ have the SDK installed.  So I just moved the entire contents of:

    C:\Program Files\Microsoft SDKs\Windows

    ...to:

    D:\Program Files\Microsoft SDKs\Windows

    And everything worked fine.

    Moral of the story: check for traces of multiple SDK installations if you're having this problem.

    -Dan