VS MSI 安装程序项目在安装后查找 ASP.NET

发布于 2025-01-05 18:31:51 字数 7087 浏览 0 评论 0原文

我有这个项目,我正在为其创建安装程序。它遇到一个错误,提示 ASP.NET 2 未安装,但它已经安装了,有什么想法吗?这是错误日志的最后一点:

    Action 15:07:20: WEBCA_ApplyWebFolderProperties. 
    Action 15:07:20: WEBCA_RollbackApplyWebFolderProperties. 
    Action 15:07:20: WEBCA_RegisterAspNet. 
    INFO   : [02/15/2012 15:07:20:505] [RegisterAspNet                          ]: Custom Action is starting...
    INFO   : [02/15/2012 15:07:20:505] [RegisterAspNet                          ]: CoInitializeEx - COM initialization Apartment Threaded...
    INFO   : [02/15/2012 15:07:20:505] [RegisterAspNet                          ]: MsiGetPropertyW - Determine size of property 'CustomActionData'
    INFO   : [02/15/2012 15:07:20:505] [RegisterAspNet                          ]: Allocating space...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: MsiGetPropertyW - Getting Property 'CustomActionData'...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Property 'CustomActionData'  retrieved with value '2.0.50727.0"W3SVC/1/Root/MyProject"'.
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Getting web folder property token...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Token is '2.0.50727.0'.
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Getting web folder property token...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Token is 'W3SVC/1/Root/MyProject'.
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Reading registry value Path from key 'HKLM\Software\Microsoft\ASP.NET\2.0.50727.0'...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: RESULT   Path = 
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Running process 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe' with parameters ' -norestart -sn "W3SVC/1/Root/MyProject"' silently...
    INFO   : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: Process Call Result Code: '0'        Process Exit Code: '3'.
    ERROR  : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: The error indicates that this version of ASP.NET must first be registered on the machine.
    ERROR  : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: FAILED:  -2147024893
    ERROR  : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: Custom Action failed with code: '0'
    INFO   : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: Custom Action completed with return code: '3'
    Action ended 15:07:20: InstallExecute. Return value 3.
    Action 15:07:20: Rollback. Rolling back action:
    Rollback: WEBCA_RegisterAspNet
    Rollback: WEBCA_RollbackApplyWebFolderProperties
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Custom Action is starting...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: CoInitializeEx - COM initialization Apartment Threaded.
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: MsiGetPropertyW - Determine size of property 'CustomActionData'
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Allocating space...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: MsiGetPropertyW - Getting Property 'CustomActionData'...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Property 'CustomActionData'  retrieved with value '/LM/W3SVC/1/ROOT/MyProject/MyProject/bin"/LM/W3SVC/1/ROOT/MyProject/MyProject"/LM/W3SVC/1/ROOT/MyProject/MyProject/includes"/LM/W3SVC/1/ROOT/MyProject/MyProject/includes/jsTree"/LM/W3SVC/1/ROOT/MyProject/MyProject/includes/jsTree/themes"/LM/W3SVC/1/ROOT/MyProject/MyProject/includes/jsTree/themes/classic"/LM/W3SVC/1/ROOT/
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Creating metabase object...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Getting web folder property token...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Token is '/LM/W3SVC/1/ROOT/MyProject/MyProject/bin'.
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Opening key '/LM/W3SVC/1/ROOT/MyProject/MyProject/bin' to see if it can be deleted...
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: FAILED:  -2147024893
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: FAILED:  -2147024893
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: FAILED:  -2147024893
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Custom Action failed with code: '3'
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Custom Action failed with code: '3'
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Custom Action completed with return code: '3'
    Rollback: WEBCA_ApplyWebFolderProperties
    Rollback: Creating folders
    Rollback: Removing ODBC components
    Rollback: Updating component registration
    Action ended 15:07:22: INSTALL. Return value 3.
    Action ended 15:07:22: ExecuteAction. Return value 3.
    Action 15:07:22: FatalErrorForm. 
    Action start 15:07:22: FatalErrorForm.
    DEBUG: Error 2826:  Control Line1 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 4 pixels
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line1, to the right
    DEBUG: Error 2826:  Control Line2 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 4 pixels
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line2, to the right
    DEBUG: Error 2826:  Control BannerBmp on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 4 pixels
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, BannerBmp, to the right
    Action 15:07:22: FatalErrorForm. Dialog created
    Action ended 15:07:23: FatalErrorForm. Return value 1.
    Action ended 15:07:23: INSTALL. Return value 3.
    === Logging stopped: 2/15/2012  15:07:23 ===
    MSI (c) (34:70) [15:07:23:584]: Product: MyProject -- Installation failed.

    MSI (c) (34:70) [15:07:23:584]: Windows Installer installed the product. Product Name: MyProject. Product Version: 1.0.0. Product Language: 1033. Installation success or error status: 1603.

I have this project which I am creating an installer for. It's hitting an error saying ASP.NET 2 isn't installed but it already is, any ideas? Here is the last bit of the error log:

    Action 15:07:20: WEBCA_ApplyWebFolderProperties. 
    Action 15:07:20: WEBCA_RollbackApplyWebFolderProperties. 
    Action 15:07:20: WEBCA_RegisterAspNet. 
    INFO   : [02/15/2012 15:07:20:505] [RegisterAspNet                          ]: Custom Action is starting...
    INFO   : [02/15/2012 15:07:20:505] [RegisterAspNet                          ]: CoInitializeEx - COM initialization Apartment Threaded...
    INFO   : [02/15/2012 15:07:20:505] [RegisterAspNet                          ]: MsiGetPropertyW - Determine size of property 'CustomActionData'
    INFO   : [02/15/2012 15:07:20:505] [RegisterAspNet                          ]: Allocating space...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: MsiGetPropertyW - Getting Property 'CustomActionData'...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Property 'CustomActionData'  retrieved with value '2.0.50727.0"W3SVC/1/Root/MyProject"'.
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Getting web folder property token...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Token is '2.0.50727.0'.
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Getting web folder property token...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Token is 'W3SVC/1/Root/MyProject'.
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Reading registry value Path from key 'HKLM\Software\Microsoft\ASP.NET\2.0.50727.0'...
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: RESULT   Path = 
    INFO   : [02/15/2012 15:07:20:521] [RegisterAspNet                          ]: Running process 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe' with parameters ' -norestart -sn "W3SVC/1/Root/MyProject"' silently...
    INFO   : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: Process Call Result Code: '0'        Process Exit Code: '3'.
    ERROR  : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: The error indicates that this version of ASP.NET must first be registered on the machine.
    ERROR  : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: FAILED:  -2147024893
    ERROR  : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: Custom Action failed with code: '0'
    INFO   : [02/15/2012 15:07:20:614] [RegisterAspNet                          ]: Custom Action completed with return code: '3'
    Action ended 15:07:20: InstallExecute. Return value 3.
    Action 15:07:20: Rollback. Rolling back action:
    Rollback: WEBCA_RegisterAspNet
    Rollback: WEBCA_RollbackApplyWebFolderProperties
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Custom Action is starting...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: CoInitializeEx - COM initialization Apartment Threaded.
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: MsiGetPropertyW - Determine size of property 'CustomActionData'
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Allocating space...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: MsiGetPropertyW - Getting Property 'CustomActionData'...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Property 'CustomActionData'  retrieved with value '/LM/W3SVC/1/ROOT/MyProject/MyProject/bin"/LM/W3SVC/1/ROOT/MyProject/MyProject"/LM/W3SVC/1/ROOT/MyProject/MyProject/includes"/LM/W3SVC/1/ROOT/MyProject/MyProject/includes/jsTree"/LM/W3SVC/1/ROOT/MyProject/MyProject/includes/jsTree/themes"/LM/W3SVC/1/ROOT/MyProject/MyProject/includes/jsTree/themes/classic"/LM/W3SVC/1/ROOT/
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Creating metabase object...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Getting web folder property token...
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Token is '/LM/W3SVC/1/ROOT/MyProject/MyProject/bin'.
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Opening key '/LM/W3SVC/1/ROOT/MyProject/MyProject/bin' to see if it can be deleted...
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: FAILED:  -2147024893
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: FAILED:  -2147024893
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: FAILED:  -2147024893
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Custom Action failed with code: '3'
    ERROR  : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Custom Action failed with code: '3'
    INFO   : [02/15/2012 15:07:20:708] [RollbackApplyWebFolderProperties        ]: Custom Action completed with return code: '3'
    Rollback: WEBCA_ApplyWebFolderProperties
    Rollback: Creating folders
    Rollback: Removing ODBC components
    Rollback: Updating component registration
    Action ended 15:07:22: INSTALL. Return value 3.
    Action ended 15:07:22: ExecuteAction. Return value 3.
    Action 15:07:22: FatalErrorForm. 
    Action start 15:07:22: FatalErrorForm.
    DEBUG: Error 2826:  Control Line1 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 4 pixels
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line1, to the right
    DEBUG: Error 2826:  Control Line2 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 4 pixels
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line2, to the right
    DEBUG: Error 2826:  Control BannerBmp on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 4 pixels
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, BannerBmp, to the right
    Action 15:07:22: FatalErrorForm. Dialog created
    Action ended 15:07:23: FatalErrorForm. Return value 1.
    Action ended 15:07:23: INSTALL. Return value 3.
    === Logging stopped: 2/15/2012  15:07:23 ===
    MSI (c) (34:70) [15:07:23:584]: Product: MyProject -- Installation failed.

    MSI (c) (34:70) [15:07:23:584]: Windows Installer installed the product. Product Name: MyProject. Product Version: 1.0.0. Product Language: 1033. Installation success or error status: 1603.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

牵你手 2025-01-12 18:31:51

VDPROJ 已宣布在 Visual Studio 的下一版本中打折。 Microsoft 已向 VS2010 用户免费提供 InstallShield Limited Edition,并公开推荐它作为升级路径。我不会浪费你的时间用这个历史上很糟糕的工具进行新的开发。

此外,自定义操作( RegisterAspNet )是闭源的,无论如何您都无法修复它。

VDPROJ has been announced discountinued in the next release of Visual Studio. Microsoft has made InstallShield Limited Edition available for free to VS2010 users and publically reccomended it as the upgrade path. I wouldn't waste your time doing new development with this tool that has historically, well, sucked.

Also that custom action ( RegisterAspNet ) is closed source and there's nothing you could do to fix it anyways.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文