安装程序因应用程序路径中的空格字符而崩溃? [英] Installer crashes due to space character in application path?

查看:111
本文介绍了安装程序因应用程序路径中的空格字符而崩溃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.

我已经在VB .NET VS2005,.NET2.0中开发了Windows服务.我创建了一个非常简单的安装项目,以简化安装过程.但是安装失败,因为安装路径中有空格!
例如"C:\ Program Files(x86)\ blabla \ blabla"

如果我删除了,请更改路径,例如"C:\ DATA \ Service"一切正常.但是我不想暴露给客户的挫败感.因此,我需要解决这个问题.

有谁遇到过同样的问题并设法解决了吗?


更清楚地说:这是一个在VS2005中从向导"(或单击几下即可启动并运行项目的时候要调用的名称)创建的安装项目.没有与安装项目相关的自定义代码.

Hi.

I have developed a windows service in VB .NET VS2005, .NET2.0. I created a very simple setup project to make the installation easier. But the installation fails because I have spaces in the installation path!!??

e.g. "C:\Program Files (x86)\blabla\blabla"

If I remove change the path to e.g. "C:\DATA\Service" all is ok. But I do not want to be exposed to my customer''s frustration. Therefore I need to solve this issue.

Has anyone had the same problem and also managed to solve it?


To be clearer: This is a setup project created from the "wizard" (or what you want to call it when it is just a few clicks away to get a project up and running) in VS2005. There is no custom code related to the setup project.

推荐答案

您确定这是由于空间而引起的问题,而不是权限问题("Program Files(x86 )"可能已设置了一些权限)?尝试安装到"C:\ Data with Space \ Service".如果有效,则是权限问题.
You sure it''s a problem due to the space and not a permission issue ("Program Files (x86)" probably has some permissions set on it)? Try installing to "C:\Data With Space\Service". If it works, then it''s a permission issue.


似乎与权限无关.我也无法安装到类似"C:\ Data With Space \ Service"的路径?!?!
It does not seem to be an issue with permissions. I can''t install to a path like "C:\Data With Space\Service" either?!?!


请确保您的程序在x86或AnyCPU下编译,
可能是因为您的程序是使用x32位处理器编译的..
Make Sure , your Program complied under x86 or AnyCPU,
may be the problem because of your program compiled with x32 bit processor..


这篇关于安装程序因应用程序路径中的空格字符而崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆